03stevensmi / VapourSynthColab

AI Video Processing/Upscaling With VapourSynth in Google Colab

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

VapourSynthColab

A Google Colab notebook set up for both conventional and machine learning-based video processing. Run ESRGAN or MXNet models, OpenCL and CUDA filters, and CPU filters on video frames simultaneously in VapourSynth scripts, or use VapourSynth filters to pre/post process videos for other ML Colab projects, and do it all in the cloud for free.

[UPDATED]: I have fixed this colab and updated the dead links. Make sure you use the updated link below. Credit to @Jerchongkong for fixing this project and saving the missing files & links!

Colab1.png Colab2.png

Basic usage:

  • Log in to Google, open this NEW notebook: https://colab.research.google.com/github/03stevensmi/VapourSynthColab/blob/master/VapourSynthColab.ipynb
  • Run the "Check GPU".
  • Before running "Setup", run the first cell after "Check GPU".
  • Now run the second cell.
  • When finished, click the little message box at the end of the cell saying "Restart Runtime".
  • Now run the third cell and the "Setup" cells.
  • Run the cell with the example VapourSynth script, or load your own video and edit it.
  • Run the "Preview Options" cell to test the script.
  • Generate the preview in the preview cell.
  • Process the whole video in a scratch cell.

For basics on VapourSynth and super resolution filters, see the wiki (and links to other guides) here:

Browse through VS plugins and scripts here, search for "vapoursynth" on github, or look through the "VapourSynthImports" folder and VapourSynth's imported plugins:

I highly recommend stabilizing ESRGAN output with a temporal filter, or using a dedicated video model from another repo. Also, keep in mind that Colab's CPU is very slow, and that sessions are limited to 12 hours, so use GPU accelerated filters wherever possible in scripts with heavy CPU filters, and write your processesed videos to Google Drive or Nextcloud.

Grab models for specific kinds of content here, or train your own:

For help, just post an issue, or ask in the Game Upscale or Animation Upscale Discords.

About

AI Video Processing/Upscaling With VapourSynth in Google Colab

License:MIT License


Languages

Language:Jupyter Notebook 100.0%