I want to eval model performance every 5 epochs to reduce training time, I find the eval_every variable in the config.yaml is used to control this event. However, if I change it from 1 to 5, the following error raises:
Error:
UnboundLocalError: local variable 'val_scalar_metrics' referenced before assignment
This error comes from:
self.scheduler.step(float(val_scalar_metrics["Loss/Validation"]))
in the base_trainer.py
I want to eval model performance every 5 epochs to reduce training time, I find the eval_every variable in the config.yaml is used to control this event. However, if I change it from 1 to 5, the following error raises:
Error: UnboundLocalError: local variable 'val_scalar_metrics' referenced before assignment
This error comes from: self.scheduler.step(float(val_scalar_metrics["Loss/Validation"])) in the base_trainer.py