Black preview and error when saving video
Greetings,
I was hoping you can help. I get black vae preview and error when saving video with your workflow using your inter checkpoint and gemma. I installed quant ops with comfy manager beforehand. I am using a 3090ti. Error below. Also I tried bypassing all the patch nodes and it just generates noise in the preview and video and and noisy audio. I also tried the transformer only with the the quant ops diffusion loader and had same issues, so it isn't just a VAE/Gemma issue as when I did that I used the LTX2 VAEs and usual gemma fp8 scaled. I use other diffusion models and unsloth gguf without an issue.
!! Exception during processing !!! [Errno 22] Invalid argument: 'avcodec_send_frame()'; last error log: [aac] Input contains (near) NaN/+-Inf
Traceback (most recent call last):
File "C:\ComfyUI_windows_portable\ComfyUI-Easy-Install\ComfyUI\execution.py", line 525, in execute
output_data, output_ui, has_subgraph, has_pending_tasks = await get_output_data(prompt_id, unique_id, obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb, v3_data=v3_data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\ComfyUI_windows_portable\ComfyUI-Easy-Install\ComfyUI\execution.py", line 334, in get_output_data
return_values = await _async_map_node_over_list(prompt_id, unique_id, obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb, v3_data=v3_data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\ComfyUI_windows_portable\ComfyUI-Easy-Install\ComfyUI\custom_nodes\comfyui-lora-manager\py\metadata_collector\metadata_hook.py", line 168, in async_map_node_over_list_with_metadata
results = await original_map_node_over_list(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\ComfyUI_windows_portable\ComfyUI-Easy-Install\ComfyUI\execution.py", line 308, in async_map_node_over_list
await process_inputs(input_dict, i)
File "C:\ComfyUI_windows_portable\ComfyUI-Easy-Install\ComfyUI\execution.py", line 296, in process_inputs
result = f(**inputs)
^^^^^^^^^^^
File "C:\ComfyUI_windows_portable\ComfyUI-Easy-Install\ComfyUI\comfy_api\internal_init.py", line 149, in wrapped_func
return method(locked_class, **inputs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\ComfyUI_windows_portable\ComfyUI-Easy-Install\ComfyUI\comfy_api\latest_io.py", line 1764, in EXECUTE_NORMALIZED
to_return = cls.execute(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\ComfyUI_windows_portable\ComfyUI-Easy-Install\ComfyUI\comfy_extras\nodes_video.py", line 107, in execute
video.save_to(
File "C:\ComfyUI_windows_portable\ComfyUI-Easy-Install\ComfyUI\comfy_api\latest_input_impl\video_types.py", line 455, in save_to
output.mux(audio_stream.encode(frame))
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "av/audio/stream.py", line 18, in av.audio.stream.AudioStream.encode
File "av/audio/stream.py", line 28, in av.audio.stream.AudioStream.encode
File "av/codec/context.pyx", line 411, in av.codec.context.CodecContext.encode
File "av/codec/context.pyx", line 326, in _send_frame_and_recv
File "av/error.pyx", line 424, in av.error.err_check
av.error.ValueError: [Errno 22] Invalid argument: 'avcodec_send_frame()'; last error log: [aac] Input contains (near) NaN/+-Inf
Make sure you have Pytorch 2.10 and your python should be 3.10 or higher (like 3.11 or 3.12). You need to install Comfy Quant and Comfy Kitchen in your virtual environment. Then install the wheels. You should not be getting a black screen, even with Sageattention. I'm sure it has to do with your setup.