From 1c7f721a579c61826b9d1ad376abdcef520ecb12 Mon Sep 17 00:00:00 2001 From: Ayush Chaurasia Date: Thu, 3 Feb 2022 15:59:52 +0530 Subject: [PATCH] W&B: Remember batchsize on resuming (#6512) * log best.pt metrics at train end * update * Update __init__.py * flush callbacks when using evolve * remember batch size on resuming * Update train.py Co-authored-by: Glenn Jocher --- train.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/train.py b/train.py index 510377e1178e..2a973fb7164b 100644 --- a/train.py +++ b/train.py @@ -96,7 +96,7 @@ def train(hyp, # path/to/hyp.yaml or hyp dictionary if loggers.wandb: data_dict = loggers.wandb.data_dict if resume: - weights, epochs, hyp = opt.weights, opt.epochs, opt.hyp + weights, epochs, hyp, batch_size = opt.weights, opt.epochs, opt.hyp, opt.batch_size # Register actions for k in methods(loggers):