XLabs-AI / x-flux-comfyui

Apache License 2.0
787 stars 56 forks source link

Unreasonable error.I just changed an input picture,then it turns wrong. #66

Open fanvy0119 opened 3 weeks ago

fanvy0119 commented 3 weeks ago

Snipaste_2024-08-21_19-22-46

Error occurred when executing XlabsSampler:

Error while processing rearrange-reduction pattern "b c (h ph) (w pw) -> b (h w) (c ph pw)". Input tensor shape: torch.Size([1, 16, 200, 143]). Additional info: {'ph': 2, 'pw': 2}. Shape mismatch, can't divide axis of length 143 in chunks of 2

File "D:\ComfyUI-aki-v1.3\execution.py", line 316, in execute output_data, output_ui, has_subgraph = get_output_data(obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb) File "D:\ComfyUI-aki-v1.3\execution.py", line 191, in get_output_data return_values = _map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb) File "D:\ComfyUI-aki-v1.3\execution.py", line 168, in _map_node_over_list process_inputs(input_dict, i) File "D:\ComfyUI-aki-v1.3\execution.py", line 157, in process_inputs results.append(getattr(obj, func)(inputs)) File "D:\ComfyUI-aki-v1.3\custom_nodes\x-flux-comfyui\nodes.py", line 368, in sampling x = denoise_controlnet( File "D:\ComfyUI-aki-v1.3\custom_nodes\x-flux-comfyui\sampling.py", line 250, in denoise_controlnet orig_image = rearrange(orig_image, "b c (h ph) (w pw) -> b (h w) (c ph pw)", ph=2, pw=2).to(img.device, dtype = img.dtype) File "D:\ComfyUI-aki-v1.3\python\lib\site-packages\einops\einops.py", line 591, in rearrange return reduce(tensor, pattern, reduction="rearrange", axes_lengths) File "D:\ComfyUI-aki-v1.3\python\lib\site-packages\einops\einops.py", line 533, in reduce raise EinopsError(message + "\n {}".format(e))

Is that means that I should use specific size when I use flux controlnet?