[BUG] Training job cannot resume if LR scheduler is Plateau.
Author: wuye9036Created Sep 16, 2021Updated Aug 1, 2026
Labelsbug
File "Trainer.py", line 233, in main lr_scheduler.step(start_epoch) File "/multimedia-nfs/wuye/libs/miniconda3/envs/py38/lib/python3.8/site-packages/timm/scheduler/plateau_lr.py", line 83, in step self.lr_scheduler.step(metric, epoch) # step the base scheduler File "/multimedia-nfs/wuye/libs/miniconda3/envs/py38/lib/python3.8/site-packages/torch/optim/lr_scheduler.py", line 624, in step current = float(metrics) TypeError: float() argument must be a string or a number, not 'NoneType'
Trainer.py is just renamed from official training script.
Source: huggingface/pytorch-image-models