Skip to content

Commit 51f7750

Browse files
W&B: Improve resume stability (#6611)
* log best.pt metrics at train end * update * Update __init__.py * flush callbacks when using evolve * remember batch size on resuming * Update train.py * improve stability of resume Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
1 parent 3eef804 commit 51f7750

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

utils/loggers/wandb/wandb_utils.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -225,9 +225,9 @@ def setup_training(self, opt):
225225
if modeldir:
226226
self.weights = Path(modeldir) / "last.pt"
227227
config = self.wandb_run.config
228-
opt.weights, opt.save_period, opt.batch_size, opt.bbox_interval, opt.epochs, opt.hyp = str(
229-
self.weights), config.save_period, config.batch_size, config.bbox_interval, config.epochs, \
230-
config.hyp
228+
opt.weights, opt.save_period, opt.batch_size, opt.bbox_interval, opt.epochs, opt.hyp, opt.imgsz = str(
229+
self.weights), config.save_period, config.batch_size, config.bbox_interval, config.epochs,\
230+
config.hyp, config.imgsz
231231
data_dict = self.data_dict
232232
if self.val_artifact is None: # If --upload_dataset is set, use the existing artifact, don't download
233233
self.train_artifact_path, self.train_artifact = self.download_dataset_artifact(data_dict.get('train'),

0 commit comments

Comments
 (0)