ViTASD icon indicating copy to clipboard operation
ViTASD copied to clipboard

ImportError: cannot import name 'EPOCH_OUTPUT' from 'pytorch_lightning.utilities.types'

Open nanshanvv opened this issue 1 year ago • 2 comments

When I run the code I get the following error, how do I fix it? image

nanshanvv avatar Apr 26 '23 03:04 nanshanvv

I believe this was trained perhaps on a previous version of lightning? But I'm not sure which one. That epoch_output doesnt exist now

J4k3j4k3 avatar Apr 28 '23 14:04 J4k3j4k3

Downgrading to pytorch-lightning v1.9,4 fixed that issue for me: pip install pytorch-lightning==1.9.4

J4k3j4k3 avatar Apr 28 '23 14:04 J4k3j4k3