TypeError: setup() got an unexpected keyword argument 'stage' #16031
Unanswered
YijiaZhao
asked this question in
Lightning Trainer API: Trainer, LightningModule, LightningDataModule
Replies: 1 comment 4 replies
-
Hi @YijiaZhao! If you'd like to use PL in master, set this env var:
|
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I use pytorch_lightning '1.8.4.post0' (pip install --upgrade pytorch_lightning ) and get this error:
TypeError: setup() got an unexpected keyword argument 'stage'
in pytorch_lightning/trainer/trainer.py. I saw you have fixed this #12801, but what's the version should I use? I use "pip install . " in latest github repo to update the lightning, it uses lightning instead of pytorch_lightning, however, when I replace "from pytorch_lightning.callbacks import EarlyStopping, ModelCheckpoint" with "from lightning.callbacks import EarlyStopping" , then I got ModuleNotFoundError: No module named 'lightning.callbacks.
Beta Was this translation helpful? Give feedback.
All reactions