ArtBot2023 / CharacterFaceSwap

56 stars 6 forks source link

Error occurred when executing Uncrop Face: #6

Open xueqing0622 opened 5 months ago

xueqing0622 commented 5 months ago

image

Error occurred when executing Uncrop Face:

permute(sparse_coo): number of dimensions in the tensor input does not match the length of the desired ordering of dimensions i.e. input.dim() = 4 is not equal to len(dims) = 3

File "F:\ComfyUI\ComfyUI\execution.py", line 154, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "F:\ComfyUI\ComfyUI\execution.py", line 84, in get_output_data return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "F:\ComfyUI\ComfyUI\execution.py", line 77, in map_node_over_list results.append(getattr(obj, func)(**slice_dict(input_data_all, i))) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "F:\ComfyUI\ComfyUI\custom_nodes\CharacterFaceSwap\nodes.py", line 220, in uncrop bbox_face, bbox_mask = self.scale_face(face.squeeze(), mask, bbox[2]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "F:\ComfyUI\ComfyUI\custom_nodes\CharacterFaceSwap\nodes.py", line 234, in scale_face face = face.permute(2, 0, 1).unsqueeze(0) ^^^^^^^^^^^^^^^^^^^^^

usaking12 commented 5 months ago

same problem

soyatlas commented 4 months ago

me too

yangnt commented 2 months ago

同樣的問題