chaojie/ComfyUI-DragNUWA

workflow_InstantMotionBrush.json报错: Specify the reduction dim with the 'dim' argument

shirubei opened this issue · 0 comments

执行第二个工作流 workflow_InstantMotionBrush.json 的时候报错

ERROR:root:Traceback (most recent call last):
File "D:\Python310\stable\ComfyUI\ComfyUI\execution.py", line 152, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Python310\stable\ComfyUI\ComfyUI\execution.py", line 82, in get_output_data
return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Python310\stable\ComfyUI\ComfyUI\execution.py", line 75, in map_node_over_list
results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Python310\stable\ComfyUI\ComfyUI\custom_nodes\ComfyUI-DragNUWA\nodes.py", line 600, in run_inference
boxes = masks_to_boxes(brush_mask)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Python310\stable\ComfyUI\python_embeded\Lib\site-packages\torchvision\ops\boxes.py", line 412, in masks_to_boxes
bounding_boxes[index, 0] = torch.min(x)
^^^^^^^^^^^^
RuntimeError: min(): Expected reduction dim to be specified for input.numel() == 0. Specify the reduction dim with the 'dim' argument.