This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Using Stable Diffision models for Colorization
Hi buckinpgh,

  your script looks good, but note that RefDir must be in the same folder of Video clip.
  In your case you must set it to

RefDir = r"C:\input\ref_qwen"

 but you don't have to override these values, so the correct filter should be written in this way

import vapoursynth as vs import vscmnet2 as cmnet2 core = vs.core # Read the source video clip = cmnet2.vs_read_video(source=VideoPath) # Export frame 0, 30, 60, 90, ... # In vscmnet2, ref_list=[30] means "export every 30 frames" clip = cmnet2.vs_export_list_frames(     clip,     sc_framedir=RefDir,     ref_list=[30],     offset=0,     ref_ext="jpg",     ref_jpg_quality=95) # Pass-through output so vspipe can drive evaluation clip = core.resize.Bicubic(     clip=clip,     format=vs.YUV420P10,     matrix_s="709",     range_in_s="full",     range_s="limited", ) clip.set_output()

 moreover you should rename the script as "extract_refs_every30.vpy" and put it in the folder scripts (please left unchanged the original script extract_refs_edge_ext.vpy).

 after this change you need to restart the GUI and now you should be able to select the new script in the combo-box "Extract VPY:"

 If the colors looks blended or faded, try to lower the memory frames to 10.

Dan
   

 

 moreover,
Reply


Messages In This Thread
RE: Using Stable Diffision models for Colorization - by Dan64 - 03.07.2026, 13:50

Forum Jump:


Users browsing this thread: 2 Guest(s)