Skip to content

Commit f007c91

Browse files
author
marked23
committed
make run_path dir if perfect test
1 parent de34149 commit f007c91

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

main.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ def main():
147147
print(f"Epoch {epoch:>5} val: {test_correct:>3} / 100")
148148

149149
if test_correct == 100:
150+
os.makedirs(run_path, exist_ok=True)
150151
torch.save(obj=model.state_dict(), f=f'{run_path}/model.pth')
151152
print("WIN!... Model saved")
152153
else:

0 commit comments

Comments
 (0)