Mojo commited on
Commit
afe80de
·
1 Parent(s): 88c2580

Added files

Browse files
Files changed (2) hide show
  1. modules/trainer.py +1 -0
  2. modules/utils.py +1 -0
modules/trainer.py CHANGED
@@ -103,6 +103,7 @@ def train_and_test_model(
103
 
104
  # Save the model using torch save as backup
105
  print("Saving the model.")
 
106
  create_folder_if_not_exists(config.MODEL_PATH)
107
  torch.save(model.state_dict(), config.MODEL_PATH)
108
 
 
103
 
104
  # Save the model using torch save as backup
105
  print("Saving the model.")
106
+ print(f"Model saved to {config.MODEL_PATH}")
107
  create_folder_if_not_exists(config.MODEL_PATH)
108
  torch.save(model.state_dict(), config.MODEL_PATH)
109
 
modules/utils.py CHANGED
@@ -63,6 +63,7 @@ def create_folder_if_not_exists(file_path):
63
  """
64
  # Extract the folder path
65
  folder_path = os.path.dirname(file_path)
 
66
 
67
  # Create the folder if it does not exist
68
  if not os.path.exists(folder_path):
 
63
  """
64
  # Extract the folder path
65
  folder_path = os.path.dirname(file_path)
66
+ print(f"Folder path: {folder_path}")
67
 
68
  # Create the folder if it does not exist
69
  if not os.path.exists(folder_path):