Open welkin159 opened 3 weeks ago
Same problem. Error occurred when executing D_HalloNode:
F:\ComfyUI\temp\hallo_ohove.mp4 could not be loaded with cv.
File "F:\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 "F:\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 "F:\comfyui\execution.py", line 169, in _map_node_over_list process_inputs(input_dict, i) File "F:\comfyui\execution.py", line 158, in process_inputs results.append(getattr(obj, func)(**inputs)) File "F:\ComfyUI\custom_nodes\ComfyUI_Hallo\nodes.py", line 174, in inference (width, height, target_frame_time) = next(gen) File "F:\ComfyUI\custom_nodes\ComfyUI_Hallo\nodes.py", line 36, in cv_frame_generator raise ValueError(f"{video} could not be loaded with cv.")
Same issue:
Exception Message: D:\ComfyUI-aki-v1.1\temp\hallo_tzlet.mp4 could not be loaded with cv.
File "D:\ComfyUI-aki-v1.1\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 "D:\ComfyUI-aki-v1.1\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 "D:\ComfyUI-aki-v1.1\execution.py", line 169, in _map_node_over_list
process_inputs(input_dict, i)
File "D:\ComfyUI-aki-v1.1\execution.py", line 158, in process_inputs
results.append(getattr(obj, func)(**inputs))
File "D:\ComfyUI-aki-v1.1\custom_nodes\ComfyUI_Hallo\nodes.py", line 174, in inference
(width, height, target_frame_time) = next(gen)
File "D:\ComfyUI-aki-v1.1\custom_nodes\ComfyUI_Hallo\nodes.py", line 36, in cv_frame_generator
raise ValueError(f"{video} could not be loaded with cv.")
## System Information
- **ComfyUI Version:** v0.1.3-23-gbaa6b4d
- **Arguments:** D:\ComfyUI-aki-v1.1\main.py --auto-launch --preview-method auto --disable-cuda-malloc
- **OS:** nt
- **Python Version:** 3.10.11 (tags/v3.10.11:7d4cc5a, Apr 5 2023, 00:38:17) [MSC v.1929 64 bit (AMD64)]
- **Embedded Python:** false
- **PyTorch Version:** 2.2.2+cu121
Sorry guys, I did not meet with the similar issues. I will recommend you to try following steps to see if the problem can be resolved. 1) make sure ffmpeg is installed and updated to latest version 2) make sure opencv-python is installed and updated to latest version 3) make sure you have the write permission in ...\ComfyUI\temp folder 4) remove the ...\ComfyUI\temp\hallo_xxxx.mp4 and retry
Sorry guys, I did not meet with the similar issues. I will recommend you to try following steps to see if the problem can be resolved.
- make sure ffmpeg is installed and updated to latest version
- make sure opencv-python is installed and updated to latest version
- make sure you have the write permission in ...\ComfyUI\temp folder
- remove the ...\ComfyUI\temp\hallo_xxxx.mp4 and retry
There is no mp4 file in temp folder.
Guys,I have solved this problem. On Windows, 'PythonPath' cannot be recognized as a command. So I delete the 'PythonPath', and add root dir in inference.py.Then the codes in inference.py can be called by nodes.py. In addition, I update moviepy and diffusers. Finally, the 'hallo_xxxx.mp4' can be generated. It means there is more than one reason can cause this problem, so you have to check the console output instead of the error info on the ComfyUI webpage.
Guys,I have solved this problem. On Windows, 'PythonPath' cannot be recognized as a command. So I delete the 'PythonPath', and add root dir in inference.py.Then the codes in inference.py can be called by nodes.py. In addition, I update moviepy and diffusers. Finally, the 'hallo_xxxx.mp4' can be generated. It means there is more than one reason can cause this problem, so you have to check the console output instead of the error info on the ComfyUI webpage.
Can you explain that process?, where is located those files?
Guys,I have solved this problem. On Windows, 'PythonPath' cannot be recognized as a command. So I delete the 'PythonPath', and add root dir in inference.py.Then the codes in inference.py can be called by nodes.py. In addition, I update moviepy and diffusers. Finally, the 'hallo_xxxx.mp4' can be generated. It means there is more than one reason can cause this problem, so you have to check the console output instead of the error info on the ComfyUI webpage.
Can you explain that process?, where is located those files?
'cmd = '''PythonPath = {env} python inference.py ...'''' in nodes.py. You can ask gpt how to use cmd to call another python file on Windows.
I didn't see the requirement to install cv in the requirements file, but I did see the requirement to install av. However, the final error is related to cv. How can I resolve this issue?
Error occurred when executing D_HalloNode:
F:\ComfyUI-aki-v1.3\temp\hallo_dolgq.mp4 could not be loaded with cv.
File "F:\ComfyUI-aki-v1.3\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 "F:\ComfyUI-aki-v1.3\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 "F:\ComfyUI-aki-v1.3\execution.py", line 169, in _map_node_over_list process_inputs(input_dict, i) File "F:\ComfyUI-aki-v1.3\execution.py", line 158, in process_inputs results.append(getattr(obj, func)(**inputs)) File "F:\ComfyUI-aki-v1.3\custom_nodes\ComfyUI_Hallo\nodes.py", line 174, in inference (width, height, target_frame_time) = next(gen) File "F:\ComfyUI-aki-v1.3\custom_nodes\ComfyUI_Hallo\nodes.py", line 36, in cv_frame_generator raise ValueError(f"{video} could not be loaded with cv.")