Skip to content

Commit

Permalink
change runs dir
Browse files Browse the repository at this point in the history
  • Loading branch information
TheoLisin committed Sep 14, 2023
1 parent d1c7323 commit 621d31c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions supervisely/train/src/sly_train_globals.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,10 @@
finetune_str = file.read() # yaml.safe_load(


runs_dir = os.path.join(my_app.data_dir, 'runs')
runs_dir = os.path.join(sly.app.get_data_dir(), 'runs')
sly.fs.mkdir(runs_dir, remove_content_if_exists=True) # for debug, does nothing in production
experiment_name = str(task_id)
# local_artifacts_dir = os.path.join(runs_dir, experiment_name)
local_artifacts_dir = sly.app.get_data_dir()
local_artifacts_dir = os.path.join(runs_dir, experiment_name)
sly.logger.info(f"All training artifacts will be saved to local directory {local_artifacts_dir}")
remote_artifacts_dir = os.path.join("/yolov5_train", project_info.name, experiment_name)
remote_artifacts_dir = api.file.get_free_dir_name(team_id, remote_artifacts_dir)
Expand Down

0 comments on commit 621d31c

Please sign in to comment.