Parcourir la source

Fix: evolve with wandb (#2634)

5.0
Ayush Chaurasia GitHub il y a 3 ans
Parent
révision
dc51e80b00
Aucune clé connue n'a été trouvée dans la base pour cette signature ID de la clé GPG: 4AEE18F83AFDEB23
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. +1
    -1
      train.py

+ 1
- 1
train.py Voir le fichier

@@ -439,7 +439,7 @@ def train(hyp, opt, device, tb_writer=None):
strip_optimizer(f) # strip optimizers
if opt.bucket:
os.system(f'gsutil cp {final} gs://{opt.bucket}/weights') # upload
if wandb_logger.wandb: # Log the stripped model
if wandb_logger.wandb and not opt.evolve: # Log the stripped model
wandb_logger.wandb.log_artifact(str(final), type='model',
name='run_' + wandb_logger.wandb_run.id + '_model',
aliases=['last', 'best', 'stripped'])

Chargement…
Annuler
Enregistrer