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

KeyError: 'lat_h' How to solve this problem?

Open zhangfeifei0907 opened this issue 1 year ago • 2 comments

Traceback (most recent call last): File "G:\comfyui\v0.3.15ComfyUI_windows_portable_nvidia\ComfyUI\execution.py", line 327, 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 "G:\comfyui\v0.3.15ComfyUI_windows_portable_nvidia\ComfyUI\execution.py", line 202, 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 "G:\comfyui\v0.3.15ComfyUI_windows_portable_nvidia\ComfyUI\execution.py", line 174, in _map_node_over_list process_inputs(input_dict, i) File "G:\comfyui\v0.3.15ComfyUI_windows_portable_nvidia\ComfyUI\execution.py", line 163, in process_inputs results.append(getattr(obj, func)(**inputs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "G:\comfyui\v0.3.15ComfyUI_windows_portable_nvidia\ComfyUI\custom_nodes\ComfyUI-WanVideoWrapper\nodes.py", line 788, in process image_embeds["lat_h"], ~~~~~~~~~~~~^^^^^^^^^ KeyError: 'lat_h'

Image

zhangfeifei0907 avatar Feb 26 '25 06:02 zhangfeifei0907

That workflow is wrong, you need to use the clip image encode node, check the example I2V workflow.

kijai avatar Feb 26 '25 06:02 kijai

Thanks, it works, it's really great

zhangfeifei0907 avatar Feb 26 '25 08:02 zhangfeifei0907