Skip to content

Instantly share code, notes, and snippets.

@cutrus
Created December 26, 2018 22:01
Show Gist options
  • Select an option

  • Save cutrus/bece7cb23e46d1d42869535f047adf7a to your computer and use it in GitHub Desktop.

Select an option

Save cutrus/bece7cb23e46d1d42869535f047adf7a to your computer and use it in GitHub Desktop.
import vapoursynth
core = vapoursynth.get_core()
if "video_in" in globals():
clip = video_in
else:
# run with vspipe
clip = core.ffms2.Source(source=in_filename)
clip=core.fmtc.bitdepth(clip, bits=32)
clip=core.w2xc.Waifu2x(clip , noise=1, gpu=0, scale=4, block=1024, photo=False, log=False)
clip=core.fmtc.bitdepth(clip, bits=8)
clip.set_output()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment