mirror of
https://github.com/THU-MIG/yolov10.git
synced 2025-05-24 06:14:55 +08:00
Add alias "best"
for the model checkpoint artifact (#3558)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
parent
ad99246ff1
commit
3821d4a72c
@ -50,7 +50,7 @@ def on_train_end(trainer):
|
||||
art = wb.Artifact(type='model', name=f'run_{wb.run.id}_model')
|
||||
if trainer.best.exists():
|
||||
art.add_file(trainer.best)
|
||||
wb.run.log_artifact(art)
|
||||
wb.run.log_artifact(art, aliases=['best'])
|
||||
|
||||
|
||||
callbacks = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user