Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No module named diffusers.models.dual_transformer_2d #26

Open
Aljnk opened this issue Jul 14, 2024 · 2 comments
Open

No module named diffusers.models.dual_transformer_2d #26

Aljnk opened this issue Jul 14, 2024 · 2 comments

Comments

@Aljnk
Copy link

Aljnk commented Jul 14, 2024

File: ...\ComfyUI\custom_nodes\ComfyUI-AniPortrait\src\models\unet_2d_blocks.py
Line 9: from diffusers.models.dual_transformer_2d import DualTransformer2DModel

Throw Exception: No module named 'diffusers.models.dual_transformer_2d'

I see this model inside diffusers\models\transformers folder

from diffusers.models.TRANSFORMERS.dual_transformer_2d... - works

@bluevisor
Copy link

downgrade diffusers to 0.28.2 should fix it.

@JoeAu
Copy link

JoeAu commented Jul 27, 2024

Importing DualTransformer2DModel from diffusers.models.dual_transformer_2d is deprecated and this will be removed in a future version. Please use from diffusers.models.transformers.dual_transformer_2d import DualTransformer2DModel

Mikerhinos added a commit to Mikerhinos/ComfyUI-V-Express that referenced this issue Nov 5, 2024
Importing DualTransformer2DModel has changed as stated in this comment from another ComfyUI custom node repository chaojie/ComfyUI-AniPortrait#26 (comment)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants