We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c9e2c71 commit b30377eCopy full SHA for b30377e
train.py
@@ -71,10 +71,6 @@
71
writer.add_scalar('lr', optimizer.param_groups[0]['lr'], epoch)
72
scheduler.step(val_loss)
73
74
- # 가장 마지막 epoch의 모델을 저장
75
- os.makedirs('weights', exist_ok=True)
76
- torch.save(model.state_dict(), os.path.join('weights', '{}_last.pth'.format(config['model'])))
77
-
78
# Best mIoU를 가진 모델을 저장
79
if miou > prev_miou:
80
torch.save(model.state_dict(), os.path.join('weights', '{}_best.pth'.format(config['model'])))
0 commit comments