Update app.py
Browse files
app.py
CHANGED
@@ -40,8 +40,8 @@ print(checkpoint.keys())
|
|
40 |
model.load_state_dict(checkpoint['model'], strict=False)
|
41 |
|
42 |
# If you need to resume training, load optimizer and scheduler states
|
43 |
-
optimizer.load_state_dict(checkpoint['optimizer_state_dict'])
|
44 |
-
scheduler.load_state_dict(checkpoint['scheduler_state_dict'])
|
45 |
|
46 |
# If you want to resume from a specific epoch
|
47 |
epoch = checkpoint['epoch']
|
|
|
40 |
model.load_state_dict(checkpoint['model'], strict=False)
|
41 |
|
42 |
# If you need to resume training, load optimizer and scheduler states
|
43 |
+
# optimizer.load_state_dict(checkpoint['optimizer_state_dict'])
|
44 |
+
# scheduler.load_state_dict(checkpoint['scheduler_state_dict'])
|
45 |
|
46 |
# If you want to resume from a specific epoch
|
47 |
epoch = checkpoint['epoch']
|