You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
fromtorch._siximportstring_classes, int_classes
and, instead, declaring int_classes = int.
The text was updated successfully, but these errors were encountered:
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:
I've found that this can be fixed by removing int_classes in the following line in datasets.py:
and, instead, declaring int_classes = int.
The text was updated successfully, but these errors were encountered: