Skip to content

Commit 949b1ee

Browse files
committed
train: Fix missing code
1 parent 82291a1 commit 949b1ee

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

train.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@
7272
scheduler.step(val_loss)
7373

7474
# Best mIoU를 가진 모델을 저장
75+
os.makedirs('weights', exist_ok=True)
7576
if miou > prev_miou:
7677
torch.save(model.state_dict(), os.path.join('weights', '{}_best.pth'.format(config['model'])))
7778
prev_miou = miou

0 commit comments

Comments
 (0)