XLabs-AI / x-flux-comfyui

Apache License 2.0
1.11k stars 73 forks source link

if encode a image to be the latent of the ksampler, reports:" !!! Exception during processing !!! list index out of range" #88

Open metsweet999 opened 2 months ago

metsweet999 commented 2 months ago

the workflow that can generate this error: Untitled222.json

console info: " !!! Exception during processing !!! list index out of range

Traceback (most recent call last): File "E:\ComfyUI_Mini-1\ComfyUI\execution.py", line 317, 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 "E:\ComfyUI_Mini-1\ComfyUI\execution.py", line 192, 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 "E:\ComfyUI_Mini-1\ComfyUI\execution.py", line 169, in _map_node_over_list process_inputs(input_dict, i) File "E:\ComfyUI_Mini-1\ComfyUI\execution.py", line 158, in process_inputs results.append(getattr(obj, func)(**inputs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\ComfyUI_Mini-1\ComfyUI\custom_nodes\x-flux-comfyui\nodes.py", line 352, in sampling x = denoise( ^^^^^^^^ File "E:\ComfyUI_Mini-1\ComfyUI\custom_nodes\x-flux-comfyui\sampling.py", line 178, in denoise t = timesteps[t_idx]


IndexError: list index out of range

 Prompt executed in 14.96 seconds
 "
metsweet999 commented 2 months ago

thanks for ur help!! but, fix.zip this file been detected as includes virus automatically, i trust xlabs of course, but the data in PC is too important for me to dare risk that. would u like to just update a new version of the extension's source code to fix this error?

PancakeAwesome commented 2 months ago

how to fix it?

807502278 commented 2 months ago

I also encountered this problem