Hello I am a newbie
Wouldn't really appreciate anyone answering the question
Forgive me, my native language is not English. I can only use translation to explain the problem.
I have two versions and the installation was unsuccessful.
I'm wondering if it's a version issue and whether I need to upgrade
pytorch version: 2.1.1+cu121
Error occurred when executing BMAB Openpose Hand Detailer:
No module named 'controlnet_aux'
File "C:\testAI\test01\ComfyUI_windows_portable\ComfyUI\execution.py", line 316, in execute
output_data, output_ui, has_subgraph = get_output_data(obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\testAI\test01\ComfyUI_windows_portable\ComfyUI\execution.py", line 191, in get_output_data
return_values = _map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\testAI\test01\ComfyUI_windows_portable\ComfyUI\execution.py", line 168, in _map_node_over_list
process_inputs(input_dict, i)
File "C:\testAI\test01\ComfyUI_windows_portable\ComfyUI\execution.py", line 157, in process_inputs
results.append(getattr(obj, func)(**inputs))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\testAI\test01\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui_bmab\bmab\nodes\detailers.py", line 701, in process
result, bbox_result = self.process_image(bind, bgimg, squeeze, box_threshold, text_threshold, img2img)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\testAI\test01\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui_bmab\bmab\nodes\detailers.py", line 663, in process_image
bgimg, bounding_box, cbx = self.process_person(bind, bgimg, bounding_box, person, person_hand, squeeze, img2img)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\testAI\test01\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui_bmab\bmab\nodes\detailers.py", line 601, in process_person
posed = self.process_openpose(resized)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\testAI\test01\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui_bmab\bmab\nodes\detailers.py", line 572, in process_openpose
out = self.get_pose(tensor)
^^^^^^^^^^^^^^^^^^^^^
File "C:\testAI\test01\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui_bmab\bmab\nodes\detailers.py", line 547, in get_pose
from controlnet_aux.open_pose import OpenposeDetector
pytorch version: 2.1.0+cu121
Error occurred when executing BMAB Openpose Hand Detailer:
cannot import name 'packaging' from 'pkg_resources' (C:\testAI\test004\ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\python_embeded\Lib\site-packages\pkg_resources__init__.py)
File "C:\testAI\test004\ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\ComfyUI\execution.py", line 316, in execute
output_data, output_ui, has_subgraph = get_output_data(obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\testAI\test004\ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\ComfyUI\execution.py", line 191, in get_output_data
return_values = _map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\testAI\test004\ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\ComfyUI\execution.py", line 168, in _map_node_over_list
process_inputs(input_dict, i)
File "C:\testAI\test004\ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\ComfyUI\execution.py", line 157, in process_inputs
results.append(getattr(obj, func)(inputs))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\testAI\test004\ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui_bmab\bmab\nodes\detailers.py", line 701, in process
result, bbox_result = self.process_image(bind, bgimg, squeeze, box_threshold, text_threshold, img2img)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\testAI\test004\ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui_bmab\bmab\nodes\detailers.py", line 663, in process_image
bgimg, bounding_box, cbx = self.process_person(bind, bgimg, bounding_box, person, person_hand, squeeze, img2img)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\testAI\test004\ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui_bmab\bmab\nodes\detailers.py", line 601, in process_person
posed = self.process_openpose(resized)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\testAI\test004\ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui_bmab\bmab\nodes\detailers.py", line 572, in process_openpose
out = self.get_pose(tensor)
^^^^^^^^^^^^^^^^^^^^^
File "C:\testAI\test004\ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui_bmab\bmab\nodes\detailers.py", line 566, in get_pose
out = dwpose.common_annotator_call(func, image, include_hand=True, include_face=True, include_body=True, image_and_json=True, resolution=1024)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\testAI\test004\ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui_controlnet_aux\utils.py", line 85, in common_annotator_call
np_result = model(np_image, output_type="np", detect_resolution=detect_resolution, kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\testAI\test004\ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui_bmab\bmab\nodes\detailers.py", line 562, in func
pose_img, openpose_dict = model(image, *kwargs)
^^^^^^^^^^^^^^^^^^^^^^
File "C:\testAI\test004\ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui_controlnet_aux\src\controlnet_aux\dwpose__init.py", line 262, in call
poses = self.detect_poses(input_image)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\testAI\test004\ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui_controlnet_aux\src\controlnet_aux\dwpose\init.py", line 252, in detect_poses
keypoints_info = self.dw_pose_estimation(oriImg.copy())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\testAI\test004\ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui_controlnet_aux\src\controlnet_aux\dwpose\wholebody.py", line 80, in call
import torch.utils.benchmark.utils.timer as torch_timer
File "C:\testAI\test004\ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\utils\benchmark\init__.py", line 2, in
from torch.utils.benchmark.utils.timer import # noqa: F403
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\testAI\test004\ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\utils\benchmark\utils\timer.py", line 8, in
from torch.utils.benchmark.utils import common, cpp_jit
File "C:\testAI\test004\ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\utils\benchmark\utils\cpp_jit.py", line 13, in
from torch.utils import cpp_extension
File "C:\testAI\test004\ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\utils\cpp_extension.py", line 28, in
from pkg_resources import packaging # type: ignore[attr-defined]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Hello I am a newbie Wouldn't really appreciate anyone answering the question Forgive me, my native language is not English. I can only use translation to explain the problem.
I have two versions and the installation was unsuccessful. I'm wondering if it's a version issue and whether I need to upgrade
pytorch version: 2.1.1+cu121 Error occurred when executing BMAB Openpose Hand Detailer:
No module named 'controlnet_aux'
File "C:\testAI\test01\ComfyUI_windows_portable\ComfyUI\execution.py", line 316, in execute output_data, output_ui, has_subgraph = get_output_data(obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\testAI\test01\ComfyUI_windows_portable\ComfyUI\execution.py", line 191, in get_output_data return_values = _map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\testAI\test01\ComfyUI_windows_portable\ComfyUI\execution.py", line 168, in _map_node_over_list process_inputs(input_dict, i) File "C:\testAI\test01\ComfyUI_windows_portable\ComfyUI\execution.py", line 157, in process_inputs results.append(getattr(obj, func)(**inputs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\testAI\test01\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui_bmab\bmab\nodes\detailers.py", line 701, in process result, bbox_result = self.process_image(bind, bgimg, squeeze, box_threshold, text_threshold, img2img) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\testAI\test01\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui_bmab\bmab\nodes\detailers.py", line 663, in process_image bgimg, bounding_box, cbx = self.process_person(bind, bgimg, bounding_box, person, person_hand, squeeze, img2img) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\testAI\test01\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui_bmab\bmab\nodes\detailers.py", line 601, in process_person posed = self.process_openpose(resized) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\testAI\test01\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui_bmab\bmab\nodes\detailers.py", line 572, in process_openpose out = self.get_pose(tensor) ^^^^^^^^^^^^^^^^^^^^^ File "C:\testAI\test01\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui_bmab\bmab\nodes\detailers.py", line 547, in get_pose from controlnet_aux.open_pose import OpenposeDetector
pytorch version: 2.1.0+cu121
Error occurred when executing BMAB Openpose Hand Detailer:
cannot import name 'packaging' from 'pkg_resources' (C:\testAI\test004\ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\python_embeded\Lib\site-packages\pkg_resources__init__.py)
File "C:\testAI\test004\ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\ComfyUI\execution.py", line 316, in execute output_data, output_ui, has_subgraph = get_output_data(obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\testAI\test004\ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\ComfyUI\execution.py", line 191, in get_output_data return_values = _map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\testAI\test004\ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\ComfyUI\execution.py", line 168, in _map_node_over_list process_inputs(input_dict, i) File "C:\testAI\test004\ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\ComfyUI\execution.py", line 157, in process_inputs results.append(getattr(obj, func)(inputs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\testAI\test004\ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui_bmab\bmab\nodes\detailers.py", line 701, in process result, bbox_result = self.process_image(bind, bgimg, squeeze, box_threshold, text_threshold, img2img) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\testAI\test004\ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui_bmab\bmab\nodes\detailers.py", line 663, in process_image bgimg, bounding_box, cbx = self.process_person(bind, bgimg, bounding_box, person, person_hand, squeeze, img2img) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\testAI\test004\ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui_bmab\bmab\nodes\detailers.py", line 601, in process_person posed = self.process_openpose(resized) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\testAI\test004\ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui_bmab\bmab\nodes\detailers.py", line 572, in process_openpose out = self.get_pose(tensor) ^^^^^^^^^^^^^^^^^^^^^ File "C:\testAI\test004\ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui_bmab\bmab\nodes\detailers.py", line 566, in get_pose out = dwpose.common_annotator_call(func, image, include_hand=True, include_face=True, include_body=True, image_and_json=True, resolution=1024) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\testAI\test004\ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui_controlnet_aux\utils.py", line 85, in common_annotator_call np_result = model(np_image, output_type="np", detect_resolution=detect_resolution, kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\testAI\test004\ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui_bmab\bmab\nodes\detailers.py", line 562, in func pose_img, openpose_dict = model(image, *kwargs) ^^^^^^^^^^^^^^^^^^^^^^ File "C:\testAI\test004\ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui_controlnet_aux\src\controlnet_aux\dwpose__init.py", line 262, in call poses = self.detect_poses(input_image) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\testAI\test004\ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui_controlnet_aux\src\controlnet_aux\dwpose\init.py", line 252, in detect_poses keypoints_info = self.dw_pose_estimation(oriImg.copy()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\testAI\test004\ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui_controlnet_aux\src\controlnet_aux\dwpose\wholebody.py", line 80, in call import torch.utils.benchmark.utils.timer as torch_timer File "C:\testAI\test004\ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\utils\benchmark\init__.py", line 2, in from torch.utils.benchmark.utils.timer import # noqa: F403 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\testAI\test004\ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\utils\benchmark\utils\timer.py", line 8, in from torch.utils.benchmark.utils import common, cpp_jit File "C:\testAI\test004\ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\utils\benchmark\utils\cpp_jit.py", line 13, in from torch.utils import cpp_extension File "C:\testAI\test004\ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\utils\cpp_extension.py", line 28, in from pkg_resources import packaging # type: ignore[attr-defined] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^