anjikum commited on
Commit
fbfc508
·
verified ·
1 Parent(s): 238f695

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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']