Skip to content

Import Errors in Datasets Class #44

@Ian-VA

Description

@Ian-VA

Hi,

When using the latest version of medicaltorch (or at least, the one installed by pip), importing the datasets class into the program raises the following error:

from torch._six import string_classes, int_classes                                   
ImportError: cannot import name 'int_classes' from 'torch._six'

I've found that this can be fixed by removing int_classes in the following line in datasets.py:

from torch._six import string_classes, int_classes

and, instead, declaring int_classes = int.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions