Skip to content

Commit

Permalink
Merge pull request #205 from supervisely-ecosystem/artifacts-dir
Browse files Browse the repository at this point in the history
Correct artifacts dir
  • Loading branch information
TheoLisin committed Sep 15, 2023
2 parents 9ab387e + 621d31c commit 05de51f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion supervisely/train/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
supervisely==6.72.112
supervisely==6.72.128
8 changes: 4 additions & 4 deletions supervisely/train/src/sly_train_globals.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@
python_path = os.environ.get("PYTHONPATH", "/app/repo").replace(":", "")
sys.path.insert(0, python_path)


load_dotenv(os.path.join(root_source_dir, "supervisely", "train", "debug.env"))
load_dotenv(os.path.join(root_source_dir, "supervisely", "train", "secret_debug.env"), override=True)
if not sly.is_production():
load_dotenv(os.path.join(root_source_dir, "supervisely", "train", "debug.env"))
load_dotenv(os.path.join(root_source_dir, "supervisely", "train", "secret_debug.env"), override=True)

my_app = AppService()
my_app._ignore_stop_for_debug = True
Expand All @@ -48,7 +48,7 @@
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)
Expand Down

0 comments on commit 05de51f

Please sign in to comment.