ModuleNotFoundError: No module named 'alt_diffusion'
Error while loading model using StableDiffusionPipeline
pipe = StableDiffusionPipeline.from_pretrained("BAAI/AltDiffusion", torch_type=torch.float16, revision="fp16")
The error message is:
File "", line 1050, in _gcd_import
File "", line 1027, in _find_and_load
File "", line 1004, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'alt_diffusion'
I have not reproduced this error yet. Maybe you try to find the model_index.json and change the "text_encoder" item to
"text_encoder": [
"transformers",
"CLIPTextModel"
],
to see if it works
you can try this
pip install git+https://github.com/huggingface/diffusers.git torch transformers accelerate sentencepiece
you can try this
pip install git+https://github.com/huggingface/diffusers.git torch transformers accelerate sentencepiece
Yes, I have installed these packages.
you can try this
pip install git+https://github.com/huggingface/diffusers.git torch transformers accelerate sentencepieceYes, I have installed these packages.
You may run "pip uninstall diffusers" to uninstall the diffusers before run this "pip install git+https://github.com/huggingface/diffusers.git"
Sorry, I realized I should have used AltDiffusionPipeline instead of StableDiffusionPipeline.