ComfyUI-fastblend icon indicating copy to clipboard operation
ComfyUI-fastblend copied to clipboard

TypeError: Cannot handle this data type: (1, 1, 576, 3), |u1

Open mikeyimer opened this issue 1 year ago • 5 comments

I got this error at the video-combine item 图片

mikeyimer avatar Jan 30 '24 14:01 mikeyimer

It seems that the resolution of the output image sequence is 1x576, and the VHS video combine node can't handle this. you may check the resolution of empty latent node.

AInseven avatar Feb 01 '24 00:02 AInseven

Loading 3 new models
100%|████████████████████████████████████████████████████████████████████████████████████| 6/6 [00:23<00:00,  3.87s/it]
!!! Exception during processing!!! Cannot handle this data type: (1, 1, 608, 3), |u1
Traceback (most recent call last):
  File "D:\+AI\ComfyUI\ComfyUI_windows_portable\python_embeded\Lib\site-packages\PIL\Image.py", line 3089, in fromarray
    mode, rawmode = _fromarray_typemap[typekey]
                    ~~~~~~~~~~~~~~~~~~^^^^^^^^^
KeyError: ((1, 1, 608, 3), '|u1')

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "D:\+AI\ComfyUI\ComfyUI_windows_portable\ComfyUI\execution.py", line 151, in recursive_execute
    output_data, output_ui = get_output_data(obj, input_data_all)
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\+AI\ComfyUI\ComfyUI_windows_portable\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:\+AI\ComfyUI\ComfyUI_windows_portable\ComfyUI\execution.py", line 74, in map_node_over_list
    results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\+AI\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-VideoHelperSuite\videohelpersuite\nodes.py", line 266, in combine_video
    Image.fromarray(tensor_to_bytes(images[0])).save(
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\+AI\ComfyUI\ComfyUI_windows_portable\python_embeded\Lib\site-packages\PIL\Image.py", line 3092, in fromarray
    raise TypeError(msg) from e
TypeError: Cannot handle this data type: (1, 1, 608, 3), |u1

Prompt executed in 50.17 seconds

My video is 608x1080, and Empty Latent Image: 608x1080

aswordok avatar Jun 28 '24 10:06 aswordok

@aswordok There is a dubug node that can check the tensor size,you can use it to find where the img size goes to 1,1,n,3

AInseven avatar Jun 28 '24 11:06 AInseven

Can you say clear. use this node?: https://github.com/liusida/ComfyUI-Debug @AInseven

aswordok avatar Jun 28 '24 15:06 aswordok

我发现在Merge image List节点哪怕我连一个图像,都会显示TypeError:无法处理此数据类型:(1,1,576,3),|u1

52Hz-p avatar May 09 '25 07:05 52Hz-p