Error with ColorCorrect when running

#5
by MarAt0m - opened

Hello fellow Wizards,

I get the following error when generating the image using the recommended workflow:

"Error occurred when executing ColorCorrect:

module 'cv2' has no attribute 'cvtColor'

File "G:\Programs\ComfyUI_windows_portable\ComfyUI\execution.py", line 151, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
File "G:\Programs\ComfyUI_windows_portable\ComfyUI\execution.py", line 81, in get_output_data
return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True)
File "G:\Programs\ComfyUI_windows_portable\ComfyUI\execution.py", line 74, in map_node_over_list
results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
File "G:\Programs\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-post-processing-nodes\post_processing_nodes.py", line 420, in color_correct
hls_img = cv2.cvtColor(modified_image, cv2.COLOR_RGB2HLS)"

Speaking to the duck doesn't work. Could anyone help pls?

Thanks!

image.png

try rank128 file, 256 still experimental
tested rank128
image_2023-08-19_203629949.png
photo source Freepik

I tried to use rank128 files instead but still get the same error. If i select to bypass the color correct it still requires it later on the Color Blend step which gives me another error. Im not sure what cv2 is...

image.png

i'm not sure but perhaps related with opencv-python

my version:
pip show opencv-python
Name: opencv-python
Version: 4.8.0.74

I have managed to fix the cv2 problem by downloading the sitepackages from here:
https://drive.google.com/file/d/1MesqomVt9uJxjPCJltSl1AQIolc992O3/view

I then extracted it and deleted the sitepackages folder from ComfyUI_windows_portable\python_embeded\Lib and replaced it with the new one.
Apparently, there are some missing sitepackages.

YT source:
https://www.youtube.com/watch?v=gS62nkcml0k

Thanks!

MarAt0m changed discussion status to closed

Sign up or log in to comment