chaojie / ComfyUI-Moore-AnimateAnyone

Apache License 2.0
206 stars 20 forks source link

ImportError: cannot import name 'CaptionProjection' from 'diffusers.models.embeddings' #3

Closed levicn closed 7 months ago

levicn commented 7 months ago

My diffusers version:

Name: diffusers
Version: 0.25.1
Summary: State-of-the-art diffusion in PyTorch and JAX.
Home-page: https://github.com/huggingface/diffusers
Author: The Hugging Face team (past and future) with the help of all our contributors (https://github.com/huggingface/diffusers/graphs/contributors)
Author-email: patrick@huggingface.co
License: Apache 2.0 License
Location: /root/miniconda3/envs/comfy/lib/python3.10/site-packages
Requires: filelock, huggingface-hub, importlib-metadata, numpy, Pillow, regex, requests, safetensors
Required-by: compel, lama-cleaner, lycoris-lora
chaojie commented 7 months ago

https://github.com/MooreThreads/Moore-AnimateAnyone/issues/13

You have this error because you are using newest diffusers library

To fix, in transformer_2d.py:

Replace CaptionProjection with PixArtAlphaTextProjection