![]() |
|
Using Stable Diffision models for Colorization - Printable Version +- Selur's Little Message Board (https://forum.selur.net) +-- Forum: Talk, Talk, Talk (https://forum.selur.net/forum-5.html) +--- Forum: Small Talk (https://forum.selur.net/forum-7.html) +--- Thread: Using Stable Diffision models for Colorization (/thread-4287.html) |
RE: Using Stable Diffision models for Colorization - didris - 13.05.2026 (12.05.2026, 19:51)Selur Wrote: Quick and Dirty: just running all frames through the server: Hi, Selur and Dan everything worked for me when installing and using the server (.venv) PS E:\DiTServerRPC> .\.venv\Scripts\activate
(.venv) PS E:\DiTServerRPC>
(.venv) PS E:\DiTServerRPC> python dit_client_pair_example.py --use-shm
[INFO] Connecting to http://127.0.0.1:8765/ ...
[INFO] Server is reachable.
[INFO] Transport: shared memory
[INFO] Pipeline is loaded on server.
[INFO] Image 1: sample1_bw.jpg (1480x1080 px)
[INFO] Image 2: sample2_bw.jpg (1480x1080 px)
[INFO] Running paired inference (gap=8px) ...
[INFO] Inference time : 5.96s total (2.98s per image)
[INFO] Round-trip time: 6.08s
[INFO] Saved: sample1_colorized.jpg
[INFO] Saved: sample2_colorized.jpg
(.venv) PS E:\DiTServerRPC>but what Selur did in terms of pairing the ditserver with a hybrid for direct video coloring I never managed to do. it would be very good if the work with this server was automated with a hybrid. RE: Using Stable Diffision models for Colorization - Selur - 13.05.2026 I did not use this with Hybrid, I just used the files from Hybrid. The script is mainly written by hand and was just a quick test, to see whether the speed was as Dan64 suggested and to test the basic usage of the RPC API. ![]() Cu Selur RE: Using Stable Diffision models for Colorization - Selur - 13.05.2026 @Dan64: Side question is misc still needed for ProPainter, ColorAdjust and HAVC? (working on adjusting all other scripts to work without it) RE: Using Stable Diffision models for Colorization - Dan64 - 20.05.2026 (13.05.2026, 19:15)Selur Wrote: @Dan64: Side question is misc still needed for ProPainter, ColorAdjust and HAVC? (working on adjusting all other scripts to work without it) yes misc is still used by ProPainter and HAVC, because it is used the filter SCDetect(). In HAVC the filter is automatically loaded from Hybrid plugin location, if you are planning to change the path please advise me. In the table below there is the list of all plugins used by HAVC. These plugins are automatically loaded by HAVC, no need of an external loading from Hybrid inside the script. Dan RE: Using Stable Diffision models for Colorization - Selur - 20.05.2026 About the paths,... Due to the changes in R75+ current Hybrid does load plugins from "Vapoursynth/Lib/site-packages/vapoursynth/plugins2" is they are available through pip. Main gain from this is that, Vapoursynth will, if the a dll has multiple versions (like for example zsmooth, vszip, hysteresis, cranexpr), automatically load the best suited when loading the base .dll (i.e. zsmooth.dll). (I install/update the plugins through pip and move them to the plugins2 folder, to avoid autoloading.) => I plan to remove dlls which are in the plugins2 folder from vsfilters in the (near) future. (atm. they are still there) Not sure whether I will switch to autoloading dlls in the future, but atm. that is not planned, so plugins2 folder is likely to stay for now. side note: the next problematic thing will happen when Vapoursynth drops (atm. you just get annoying warning messages) API3 support,... (hopefully this will not happen as fast as new Vapoursynth versions come out nowadays,...) Cu Selur |