Browse Source

W&B evolution bug fix (#1373)

5.0
Glenn Jocher GitHub 4 years ago
parent
commit
ce3872f86c
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      train.py

+ 1
- 2
train.py View File

@@ -323,7 +323,7 @@ def train(hyp, opt, device, tb_writer=None, wandb=None):
dataloader=testloader,
save_dir=log_dir,
plots=epoch == 0 or final_epoch, # plot first and last
log_imgs=opt.log_imgs)
log_imgs=opt.log_imgs if wandb else 0)

# Write
with open(results_file, 'a') as f:
@@ -475,7 +475,6 @@ if __name__ == '__main__':

assert os.environ.get('WANDB_DISABLED') != 'true'
except (ImportError, AssertionError):
opt.log_imgs = 0
logger.info("Install Weights & Biases for experiment logging via 'pip install wandb' (recommended)")

train(hyp, opt, device, tb_writer, wandb)

Loading…
Cancel
Save