Reputation: 19
I have a problem with the import of a libraries from a github.
First, I install the github with this:
!pip install git+https://github.com/CompVis/taming-transformers
Then I want to import the cond_transformer module from \taming\models\cond_transformer.py with this:
from taming.models import cond_transformer, vqgan
But he doesn't find taming:
----> 8 import taming
ModuleNotFoundError: No module named 'taming'
Upvotes: 1
Views: 3253
Reputation: 371
I had the same problem. This fixed it for me.
!pip install taming-transformers-rom1504
Upvotes: 2