TMElyralab / Comfyui-MusePose

Other
371 stars 39 forks source link

Problems installing the custom nodes #1

Open FreezaSama opened 6 months ago

FreezaSama commented 6 months ago

When loading the graph, the following node types were not found: filenamestring museposealign musepose Nodes that have failed to load will show as red on the graph.

Tried to install and uninstall, fix and whatnot via comfyui manager to no success, the nodes are still red

fusillustrator commented 6 months ago

same here

lulu-xiao commented 6 months ago

When loading the graph, the following node types were not found: filenamestring museposealign musepose Nodes that have failed to load will show as red on the graph.

Tried to install and uninstall, fix and whatnot via comfyui manager to no success, the nodes are still red

Can you post the error message of the installation?

lulu-xiao commented 6 months ago

same here

企业微信截图_8ab886cd-06f6-4c3f-9af0-62ef553a86ae

try this?

rethink-studios commented 6 months ago

Yes, tried the above and here are the errors:

COMFY log: Traceback (most recent call last): File "D:\COMFYUI_BETA\ComfyUI\nodes.py", line 1879, in load_custom_node module_spec.loader.exec_module(module) File "", line 940, in exec_module File "", line 241, in _call_with_frames_removed File "D:\COMFYUI_BETA\ComfyUI\custom_nodes\Comfyui-MusePose__init__.py", line 1, in from .nodes import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS File "D:\COMFYUI_BETA\ComfyUI\custom_nodes\Comfyui-MusePose\nodes.py", line 30, in from musepose.models.unet_2d_condition import UNet2DConditionModel File "D:\COMFYUI_BETA\ComfyUI\custom_nodes\Comfyui-MusePose\musepose\models\unet_2d_condition.py", line 18, in from diffusers.models.embeddings import ( ImportError: cannot import name 'PositionNet' from 'diffusers.models.embeddings' (D:\COMFYUI_BETA\python_embeded\Lib\site-packages\diffusers\models\embeddings.py)

Cannot import D:\COMFYUI_BETA\ComfyUI\custom_nodes\Comfyui-MusePose module for custom nodes: cannot import name 'PositionNet' from 'diffusers.models.embeddings' (D:\COMFYUI_BETA\python_embeded\Lib\site-packages\diffusers\models\embeddings.py)

log: image

GUI: image

Any idea on how to fix?

Win11, python embedded..

Thanks!

lulu-xiao commented 6 months ago

Yes, tried the above and here are the errors:

COMFY log: Traceback (most recent call last): File "D:\COMFYUI_BETA\ComfyUI\nodes.py", line 1879, in load_custom_node module_spec.loader.exec_module(module) File "", line 940, in exec_module File "", line 241, in _call_with_frames_removed File "D:\COMFYUI_BETA\ComfyUI\custom_nodes\Comfyui-MusePoseinit.py", line 1, in from .nodes import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS File "D:\COMFYUI_BETA\ComfyUI\custom_nodes\Comfyui-MusePose\nodes.py", line 30, in from musepose.models.unet_2d_condition import UNet2DConditionModel File "D:\COMFYUI_BETA\ComfyUI\custom_nodes\Comfyui-MusePose\musepose\models\unet_2d_condition.py", line 18, in from diffusers.models.embeddings import ( ImportError: cannot import name 'PositionNet' from 'diffusers.models.embeddings' (D:\COMFYUI_BETA\python_embeded\Lib\site-packages\diffusers\models\embeddings.py)

Cannot import D:\COMFYUI_BETA\ComfyUI\custom_nodes\Comfyui-MusePose module for custom nodes: cannot import name 'PositionNet' from 'diffusers.models.embeddings' (D:\COMFYUI_BETA\python_embeded\Lib\site-packages\diffusers\models\embeddings.py)

log: image

GUI: image

Any idea on how to fix?

Win11, python embedded..

Thanks!

requirement.txt is updated, you can try it again

rethink-studios commented 6 months ago

Thanks for the update!!

The error I get now is in the muse_pose_align node:

image

Error occurred when executing museposealign:

name 'init_detector' is not defined

File "D:\COMFYUI_BETA\ComfyUI\execution.py", line 151, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\COMFYUI_BETA\ComfyUI\execution.py", line 81, in get_output_data return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\COMFYUI_BETA\ComfyUI\execution.py", line 74, in map_node_over_list results.append(getattr(obj, func)(**slice_dict(input_data_all, i))) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\COMFYUI_BETA\ComfyUI\custom_nodes\Comfyui-MusePose\nodes.py", line 554, in posealign_func return run_align_video_with_filterPose_translate_smooth(args) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\COMFYUI_BETA\ComfyUI\custom_nodes\Comfyui-MusePose\nodes.py", line 276, in run_align_video_with_filterPose_translate_smooth detector = DWposeDetector( ^^^^^^^^^^^^^^^ File "D:\COMFYUI_BETA\ComfyUI\custom_nodes\Comfyui-MusePose\pose\script\dwpose.py", line 74, in init self.pose_estimation = Wholebody(det_config, det_ckpt, pose_config, pose_ckpt, device) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\COMFYUI_BETA\ComfyUI\custom_nodes\Comfyui-MusePose\pose\script\wholebody.py", line 51, in init self.detector = init_detector(det_config, det_ckpt, device=device) ^^^^^^^^^^^^^

Tophness commented 5 months ago

Solution @ #26