TMElyralab / Comfyui-MusePose

Other
287 stars 28 forks source link

import failed - not showing up #6

Open aifuzz59 opened 1 month ago

aifuzz59 commented 1 month ago

here is the error Cannot import D:\ComfyUI_Animate\ComfyUI_windows_portable_nvidia_cu121_or_cpu (5)\ComfyUI_windows_portable\ComfyUI\custom_nodes\Comfyui-MusePose module for custom nodes: cannot import name 'PositionNet' from 'diffusers.models.embeddings' (D:\ComfyUI_Animate\ComfyUI_windows_portable_nvidia_cu121_or_cpu (5)\ComfyUI_windows_portable\python_embeded\Lib\site-packages\diffusers\models\embeddings.py)

lulu-xiao commented 1 month ago

here is the error Cannot import D:\ComfyUI_Animate\ComfyUI_windows_portable_nvidia_cu121_or_cpu (5)\ComfyUI_windows_portable\ComfyUI\custom_nodes\Comfyui-MusePose module for custom nodes: cannot import name 'PositionNet' from 'diffusers.models.embeddings' (D:\ComfyUI_Animate\ComfyUI_windows_portable_nvidia_cu121_or_cpu (5)\ComfyUI_windows_portable\python_embeded\Lib\site-packages\diffusers\models\embeddings.py)

diffusers need 0.24.0 version

Quasimondo commented 1 month ago

You only need to patch two files (transformer_2d.py and unet_2d_condition.py) to make it work with your diffusers version - you can check out my fork to see how I fixed it: https://github.com/Quasimondo/Comfyui-MusePose/tree/main/musepose/models