Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError: cannot import name 'container_abcs' from 'torch._six' #56

Open
MatCorr opened this issue Mar 17, 2023 · 0 comments
Open

ImportError: cannot import name 'container_abcs' from 'torch._six' #56

MatCorr opened this issue Mar 17, 2023 · 0 comments

Comments

@MatCorr
Copy link

MatCorr commented Mar 17, 2023

I am trying to run a basic training script with the ADE20K dataset via the following command:

python tools/train.py configs/SETR/SETR_PUP_DeiT_512x512_160k_ade20k_bs_16_MS.py

And I am running into this error:

ImportError: cannot import name 'container_abcs' from 'torch._six'

Here are the versions of the main components of the environment I am running this on:

I am sure this has something to do with version conflicts, but I have tried other combinations and none of them seem to work, usually leading to different errors.

Can anyone shed some light on which versions to use in order to make it work? I am reluctant to downgrade Python and Torch due to GPU-related reasons, but I think I could go as low as Python 3.9 here if necessary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant