Skip to content

Commit

Permalink
fix path
Browse files Browse the repository at this point in the history
  • Loading branch information
almazgimaev committed Dec 13, 2024
1 parent 1435e4a commit 9904353
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion train/src/ui/monitoring.py
Original file line number Diff line number Diff line change
Expand Up @@ -667,7 +667,7 @@ def train(api: sly.Api, task_id, context, state, app_logger):
g.api.app.set_fields(g.task_id, fields)

if state["saveLast"] is False:
for root, _, files in os.walk(cfg.work_dir):
for root, _, files in os.walk(g.checkpoints_dir):
for file in files:
if file == "latest.pth":
sly.fs.silent_remove(os.path.join(root, file))
Expand Down

0 comments on commit 9904353

Please sign in to comment.