Skip to content

Commit 3acdfc4

Browse files
committed
Create folder for model
1 parent 950bf63 commit 3acdfc4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

main_miniimagenet.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,8 @@ def main(args):
165165
# Slurm
166166
if 'SLURM_JOB_ID' in os.environ:
167167
args.output_folder += '-{0}'.format(os.environ['SLURM_JOB_ID'])
168+
if not os.path.exists('./models/{0}'.format(args.output_folder)):
169+
os.makedirs('./models/{0}'.format(args.output_folder))
168170
args.steps = 0
169171

170172
main(args)

0 commit comments

Comments
 (0)