Skip to content

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

@MatCorr

Description

@MatCorr

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions