瀏覽代碼

Update of resuming computation

Jérôme BUISINE 4 年之前
父節點
當前提交
1339e90bb1
共有 1 個文件被更改,包括 4 次插入2 次删除
  1. 4 2
      train_model.py

+ 4 - 2
train_model.py

@@ -167,8 +167,10 @@ def main():
         last_backup = backups[-1]
         last_epoch = int(last_backup.split('__')[1].replace('.hdf5', ''))
         initial_epoch = last_epoch
-        print("Previous backup model found.. ")
-        print("Restart from epoch ", last_epoch)
+        print("-------------------------------------------------")
+        print("Previous backup model found with already", last_epoch, "done...")
+        print("Resuming from epoch", str(last_epoch + 1))
+        print("-------------------------------------------------")
 
     # concatenate train and validation data (`validation_split` param will do the separation into keras model)
     y_data = np.concatenate([y_dataset_train.values, y_dataset_val.values])