Comfy-Org / Comfy-Org/ComfyUI

SDPoseDrawKeypoints ValueError: cannot convert float NaN to integer

Open
#13,149 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
133k
Forks
15.7k
Avg merge
1d 7h
Merged PRs (30d)
158

Description

When I try to use the official sdpose node, I get the following error

`ValueError: cannot convert float NaN to integer

File "D:\APP\AI_ComfyUI\ComfyUI-aki-v3\ComfyUI\execution.py", line 525, in execute
output_data, output_ui, has_subgraph, has_pending_tasks = await get_output_data(prompt_id, unique_id, obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb, v3_data=v3_data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "D:\APP\AI_ComfyUI\ComfyUI-aki-v3\ComfyUI\execution.py", line 334, in get_output_data
return_values = await _async_map_node_over_list(prompt_id, unique_id, obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb, v3_data=v3_data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "D:\APP\AI_ComfyUI\ComfyUI-aki-v3\ComfyUI\execution.py", line 308, in _async_map_node_over_list
await process_inputs(input_dict, i)

File "D:\APP\AI_ComfyUI\ComfyUI-aki-v3\ComfyUI\execution.py", line 296, in process_inputs
result = f(**inputs)

File "D:\APP\AI_ComfyUI\ComfyUI-aki-v3\ComfyUI\comfy_api\internal\__init__.py", line 149, in wrapped_func
return method(locked_class, **inputs)

File "D:\APP\AI_ComfyUI\ComfyUI-aki-v3\ComfyUI\comfy_api\latest\_io.py", line 1764, in EXECUTE_NORMALIZED
to_return = cls.execute(*args, **kwargs)

File "D:\APP\AI_ComfyUI\ComfyUI-aki-v3\ComfyUI\comfy_extras\nodes_sdpose.py", line 403, in execute
canvas = drawer.draw_wholebody_keypoints(
canvas, kp, sc,
...<3 lines>...
stick_width=stick_width, face_point_size=face_point_size,
)

File "D:\APP\AI_ComfyUI\ComfyUI-aki-v3\ComfyUI\comfy_extras\nodes_sdpose.py", line 262, in draw_wholebody_keypoints
polygon = self.draw.ellipse2Poly((int(mY), int(mX)), (int(length / 2), stick_width), int(angle), 0, 360, 1)
~~~^^^^
`

SDPoseDrawKeypoints
进入子图

ValueError: cannot convert float NaN to integer

Image

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.