chaojie / ComfyUI-AniPortrait

Apache License 2.0
249 stars 21 forks source link

No module named diffusers.models.dual_transformer_2d #26

Open Aljnk opened 4 months ago

Aljnk commented 4 months ago

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 commented 4 months ago

downgrade diffusers to 0.28.2 should fix it.

JoeAu commented 3 months ago

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