ModuleNotFoundError: No module named 'alt_diffusion'

#5
by feisan - opened

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'

Beijing Academy of Artificial Intelligence org

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

Beijing Academy of Artificial Intelligence org

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.

Beijing Academy of Artificial Intelligence org

you can try this
pip install git+https://github.com/huggingface/diffusers.git torch transformers accelerate sentencepiece

Yes, 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.

feisan changed discussion status to closed

Sign up or log in to comment