smthemex / ComfyUI_EchoMimic

You can using EchoMimic in ComfyUI
Apache License 2.0
276 stars 31 forks source link

Issue in file EchoMimic_node.py #34

Open vineet18iitr opened 3 months ago

vineet18iitr commented 3 months ago

_upsample_nearest_exact2d() received an invalid combination of arguments - got (Tensor, tuple, NoneType), but expected one of:

File "/data/ComfyUI/execution.py", line 152, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) File "/data/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 "/data/ComfyUI/execution.py", line 75, in map_node_over_list results.append(getattr(obj, func)(**slice_dict(input_data_all, i))) File "/data/ComfyUI/custom_nodes/ComfyUI_EchoMimic/EchoMimic_node.py", line 631, in em_main image=nomarl_upscale(image,width, height) File "/data/ComfyUI/custom_nodes/ComfyUI_EchoMimic/EchoMimic_node.py", line 314, in nomarl_upscale img = common_upscale(samples, width, height, "nearest-exact", "center") File "/data/ComfyUI/comfy/utils.py", line 575, in common_upscale return torch.nn.functional.interpolate(s, size=(height, width), mode=upscale_method) File "/root/anaconda3/lib/python3.10/site-packages/torch/nn/functional.py", line 4008, in interpolate return torch._C._nn._upsample_nearest_exact2d(input, output_size, scale_factors) ![Uploading Screenshot 2024-07-26 at 2.12.16 PM.png…]()

smthemex commented 3 months ago

I am modifying the code, please try the latest version

vineet18iitr commented 3 months ago

Thanks, sure will update !!

smthemex commented 3 months ago

I can't see the image you sent, but the error message you submitted shows that the image was cropped incorrectly. What is the size setting for your image

vineet18iitr commented 3 months ago

It worked, thanks. I have one more query. Right now face is getting cropped and output is that cropped face. What are the parameters which needs to be cahnged to get it applied on complete input image. Turning face-crop dont work.

smthemex commented 3 months ago

"crop_face" turn on and " crop_face_ratio "to 0.99, if using pose ,motion_sync 's base video also need a half body