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 b5d5e74 commit ccd4b37Copy full SHA for ccd4b37
plasma/models/builder.py
@@ -124,7 +124,7 @@ def load_model_weights(self,model):
124
print('no previous checkpoint found')
125
return -1
126
else:
127
- max_epoch = min(self.conf['training']['num_epochs']-1,max(epochs))
+ max_epoch = max(epochs)
128
print('loading from epoch {}'.format(max_epoch))
129
model.load_weights(self.get_save_path(max_epoch))
130
return max_epoch
@@ -135,7 +135,7 @@ def get_latest_save_path(self):
135
136
return ''
137
138
- max_epoch = min(self.conf['training']['num_epochs'],max(epochs))
139
140
return self.get_save_path(max_epoch)
141
0 commit comments