出现No module named 'alt_diffusion'的错误

#11
by Kasezl - opened

下载模型文件到服务器,且安装了依赖,但是报错No module named 'alt_diffusion',请问这是什么原因呢?

Same question. ValueError: text_encoder/alt_diffusion.py as defined in model_index.json does not exist in BAAI/AltDiffusion-m9 and is not a module in 'diffusers/pipelines'.

Same question, did anyone solve this?
text_encoder/alt_diffusion.py as defined in model_index.json does not exist in BAAI/AltDiffusion and is not a module in 'diffusers/pipelines'.

Beijing Academy of Artificial Intelligence org

Hello, could you please provide a screenshot of the specific error message and the version number of diffusers, perhaps due to version issues. Thank you.

Hi,

I receive the same error for both models when loading them like this:
DiffusionPipeline.from_pretrained("BAAI/AltDiffusion-m18", cache_dir=cache_dir)
AltDiffusionPipeline.from_pretrained("BAAI/AltDiffusion-m9", cache_dir=cache_dir)

The error looks like this:

Screenshot 2024-06-26 at 08.20.04.png

Beijing Academy of Artificial Intelligence org

try use diffusers==0.9.0

I use transformers==4.25.1 and diffusers==0.9.0, then it works, but took me hours to figure it out

Sign up or log in to comment