Pass callback instances to the `callbacks` argument in the Trainer constructor instead.
Closed this issue · 0 comments
File "c:\Users\user1\Documents\repo\DAC\main.py", line 54, in
trainer = pl.Trainer(
File "C:\Users\user1\AppData\Local\Programs\Python\Python39\lib\site-packages\pytorch_lightning\trainer\connectors\env_vars_connector.py", line 40, in insert_env_defaults
return fn(self, **kwargs)
File "C:\Users\user1\AppData\Local\Programs\Python\Python39\lib\site-packages\pytorch_lightning\trainer\trainer.py", line 413, in init
self.callback_connector.on_trainer_init(
File "C:\Users\user1\AppData\Local\Programs\Python\Python39\lib\site-packages\pytorch_lightning\trainer\connectors\callback_connector.py", line 52, in on_trainer_init
self._configure_checkpoint_callbacks(checkpoint_callback)
File "C:\Users\user1\AppData\Local\Programs\Python\Python39\lib\site-packages\pytorch_lightning\trainer\connectors\callback_connector.py", line 77, in _configure_checkpoint_callbacks
raise MisconfigurationException(error_msg)
pytorch_lightning.utilities.exceptions.MisconfigurationException: Invalid type provided for checkpoint_callback: Expected bool but received <class 'pytorch_lightning.callbacks.model_checkpoint.ModelCheckpoint'>. Pass callback instances to the callbacks
argument in the Trainer constructor instead.
PS C:\Users\user1\Documents\repo\DAC>