Selur's Little Message Board

Full Version: Using Stable Diffision models for Colorization
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12
Just downloaded https://github.com/vapoursynth/vapoursyn...#artifacts ->
vapoursynth-win_amd64 which contains vapoursynth-77-cp312-abi3-win_amd64.whl Smile
(running a test encode with BasicVSR++ atm.)
=> 5000 frame test encode ran without freezing.

Cu Selur
I installed R77 over R76
And now I get the following error

Code:
2026-06-12 19:44:24.970 Failed to evaluate the script: Python exception: No module named 'cv2' Traceback (most recent call last): File "vapoursynth.pyx", line 3623, in vapoursynth._vpy_evaluate File "vapoursynth.pyx", line 3624, in vapoursynth._vpy_evaluate File "D:\PProjects\vs-havc_dev\vs_test_debug_no-gpu\CMNET2DIT_test.vpy", line 15, in import vshavc_test as havc File "D:\PProjects\vs-havc_dev\vs_test_debug_no-gpu\vshavc_test\__init__.py", line 34, in from vshavc_test.havc_utils import _get_tune_id, convert_format_RGB24, restore_format, HAVC_read_video, rgb_denoise File "D:\PProjects\vs-havc_dev\vs_test_debug_no-gpu\vshavc_test\havc_utils.py", line 18, in import cv2 ModuleNotFoundError: No module named 'cv2'

Previously this script was working and cv2 is installed on my side (I just updated R76 with R77).

I will wait your release before confirm that the bug is fixed.

Dan
'pip list' does list cv2 ? (at least I don't install cv/cv2 normally)
cv2 is in the "opencv-python" package, and of course is installed (I also tried to reinstall)

Dan
Strange.
I tested vs_cmnet2dit() with the last dev version with R77 released by you today, and it works with no issues.
I think that the thread deadlock bug has been fixed.

Dan
you can enable again (without core.num_threads=1) the filter CMNet2DiT which is currently disabled.

Dan
Will do. (probably tomorrow)
Uploaded a new dev version which enabled CMNet2DiT and removes the thread=1 limitation.
(uploading a new torch-add-on,.. upload will be done in ~ 1/2 hours)

Cu Selur
As a natural extension of the "Fix Image" tab, I've added the new "Fix Video" tab.

Suppose you've already colorized a clip with CMNET2 and DitServerRPC. There will be a folder called "ref_qwen" containing the colored frames.
Suppose you've viewed the clip and want to change the color of some frames. Let's say these frames range from #34 to #525. After fixing them with the "Fix Image" tab, you can recolor the video only in the identified frame range (in this case, from #34 to #525). As shown in the image below.

[Image: attachment.php?aid=3646]

I hope this helps; in some cases, it was necessary for me (which is why I added the implementation).

Since for technical reasons, I still need to re-encode the entire clip, it's mandatory to use as input the clip already colorized and to have NVEnC installed as explained in the README.

Dan
Pages: 1 2 3 4 5 6 7 8 9 10 11 12