A-Hackers-AI-Voice-Assistant
A-Hackers-AI-Voice-Assistant copied to clipboard
ReduceLROnPlateau problem.
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 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