Closed MjdMahasneh closed 2 months ago
To address the ModuleNotFoundError in your Google Colab code for the taming-transformers library I updated the problematic import to ensure compatibility with current PyTorch installation:
Install the six library
!pip install six
In the /content/taming-transformers/taming/data/utils.py file or wherever the error occurs, replace:
from torch._six import string_classes
with:
from six import string_types as string_classes
This solved it for me using Google Collab, hope this helps.
Error message: