A-Hackers-AI-Voice-Assistant icon indicating copy to clipboard operation
A-Hackers-AI-Voice-Assistant copied to clipboard

ReduceLROnPlateau problem.

Open samano99 opened this issue 4 years ago • 1 comments

File "/home/User/anaconda3/envs/User/lib/python3.7/site-packages/pytorch_lightning/trainer/connectors/optimizer_connector.py", line 47, in update_learning_rates monitor_key = lr_scheduler['monitor'] KeyError: 'monitor'

pytorch_lightning.utilities.exceptions.MisconfigurationException: ReduceLROnPlateau requires returning a dict from configure_optimizers with the keyword monitor=. For example:return {'optimizer': optimizer, 'lr_scheduler': scheduler, 'monitor': 'your_loss'}

Any suggestion on solving this?

samano99 avatar Oct 27 '20 04:10 samano99

@samano99 I don't know whether you still have this issue, but a possible solution would be here: https://github.com/LearnedVector/A-Hackers-AI-Voice-Assistant/issues/54

Jochen-sys avatar May 11 '21 15:05 Jochen-sys