Allow users to specify how to override a ClearML Task (#10363)

* Added basic flag to enable reusing last task clearml

* Added option to provide task ID to override

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Use exist_ok argument instead

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
This commit is contained in:
authored and GitHub committed 2022-12-05 12:12:19 -08:00
1 parent 5dc1ce4e86
commit f8539a6800
1 file changed
+1
+1
View File
@@ -89,6 +89,7 @@ class ClearmlLogger:
task_name=opt.name if opt.name != 'exp' else 'Training',
tags=['YOLOv5'],
output_uri=True,
reuse_last_task_id=opt.exist_ok,
auto_connect_frameworks={'pytorch': False}
# We disconnect pytorch auto-detection, because we added manual model save points in the code
)