Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Here's how I build Hybrids torch-addon:
- # Base setup
- * Create an empty Vapoursynth folder.
- * Download portable Python (3.12)
- https://www.python.org/ftp/python/3.12.9/python-3.12.9-embed-amd64.zip
- * Download portable Vapoursynth
- https://github.com/vapoursynth/vapoursynth/releases/download/R70/VapourSynth64-Portable-R70.zip
- * Extract Python and then Vapoursynth into the Vapoursynth folder
- * Change the content of the python312._pth to
- ```
- Scripts
- Lib\site-packages
- python312.zip
- .
- # Uncomment to run site.main() automatically
- #import site
- ```
- * Install pip
- * Download the pip installer
- https://bootstrap.pypa.io/get-pip.py and move it into your Vapoursynth folder
- * Open a terminal inside the Vapoursynth and call 'python get-pip.py'
- * Integrate Vapoursynth to the environment by calling 'python -m pip install wheel/VapourSynth-70-cp312-cp312-win_amd64.whl'
- * Install torch
- ```
- python -m pip install -U packaging setuptools wheel
- python -m pip install --pre torch torchvision --index-url https://download.pytorch.org/whl/nightly/cu128
- python -m pip install opencv-contrib-python
- python -m pip install tensorrt==10.9.0.34 tensorrt-cu12_bindings==10.9.0.34 tensorrt-cu12_libs==10.9.0.34 --extra-index-url https://pypi.nvidia.com
- python -m pip install --no-deps --pre -U torch_tensorrt --index-url https://download.pytorch.org/whl/nightly/cu128
- ```
- * Install VSGAN
- ```
- python -m pip install -U vsgan
- ```
- * Install vs-rife by calling:
- ```
- python -m pip install -U vsrife
- ```
- * Install BasicVSR++
- ```
- python -m pip install -U vsbasicvsrpp
- ```
- * Install DPIR
- ```
- python -m pip install -U vsdpir
- ```
- * Install SCUNet
- ```
- python -m pip install -U vsscunet
- ```
- * Install REALEsrgan
- ```
- python -m pip install -U vsrealesrgan
- ```
- * Install HINet
- ```
- python -m pip install -U vshinet
- ```
- * Install AnimeSR
- ```
- python -m pip install -U vsanimesr
- ```
- * Install FeMaSR
- ```
- python -m pip install -U vsfemasr
- ```
- * Install CodeFormer
- ```
- python -m pip install -U vscodeformer
- python -m pip install https://github.com/eddiehe99/dlib-whl/raw/refs/heads/main/dlib-19.24.6-cp312-cp312-win_amd64.whl
- ```
- * Install GRLIR
- ```
- python -m pip install -U vsgrlir
- ```
- * Install MFDIN
- ```
- python -m pip install -U vsmfdin
- ```
- * Install ProPainter
- ```
- python -m pip install https://github.com/dan64/vs-propainter/releases/download/v1.2.1/vspropainter-1.2.1-py3-none-any.whl
- ```
- * Install VSDDColor
- ```
- python -m pip install https://github.com/dan64/vs-deoldify/releases/download/v4.0.0/vsddcolor-1.0.1-py3-none-any.whl
- ```
- * Install VSDDColor
- ```
- python -m pip install -U vsswinir
- ```
- * Install DeOdify
- ```
- python -m pip install -U scikit-image
- python -m pip install -U numba
- python -m pip install https://github.com/dan64/vs-deoldify/releases/download/v5.0.4/vsdeoldify-5.0.4-py3-none-any.whl
- ```
- * Download:
- * https://colorizers.s3.us-east-2.amazonaws.com/colorization_release_v2-9b330a0b.pth
- * https://colorizers.s3.us-east-2.amazonaws.com/siggraph17-df00044c.pth
- * https://data.deepai.org/deoldify/ColorizeArtistic_gen.pth
- * https://www.dropbox.com/s/axsd2g85uyixaho/ColorizeStable_gen.pth?dl=0
- * https://data.deepai.org/deoldify/ColorizeVideo_gen.pth
- and place them in the Vapoursynth/vsdeoldify/models-folder
- * https://github.com/zhangmozhe/Deep-Exemplar-based-Video-Colorization/releases/download/v1.0/colorization_checkpoint.zip
- and extract it into the Vapoursynth\Lib\site-packages\vsdeoldify\deepex
- * https://download.pytorch.org/models/resnet101-63fe2227.pth
- * https://download.pytorch.org/models/resnet50-19c8e357.pth
- * https://dl.fbaipublicfiles.com/dinov2/dinov2_vits14/dinov2_vits14_pretrain.pth
- and place them in the Vapoursynth\Lib\site-packages\vsdeoldify\deepex\checkpoints-folder
- * https://github.com/yyang181/colormnet/releases/download/v0.1/DINOv2FeatureV6_LocalAtten_s2_154000.pth
- and place it into the Vapoursynth/Lib/site-packages/vsdeoldify/colormnet/weights-folder
- * install spartial_correlation_sampler (needs new build, see: https://forum.selur.net/thread-3595-post-26036.html#pid26036)
- extract content of spatial_correlation_sampler (open as an archive) into Vapoursynth\Lib\site-packages
- * Download Models for the installed tools
- ```
- python -m vsrife
- python -m vsdpir
- python -m vsscunet
- python -m vsrealesrgan
- python -m vshinet
- python -m vsfemasr
- python -m vscodeformer
- python -m vsgrlir
- python -m vsddcolor
- python -m vsswinir
- python -m vsbasicvsrpp
- ```
- * Install DeepDeinterlace (**fails due to openmim dependency**)
- Download https://github.com/pifroggi/vs_deepdeinterlace/archive/refs/heads/main.zip and place the vs_deepdeinterlace-folder (under vs_deepdeinterlace-main) inside your Vapoursynth/Lib/site-packages folder
- ```
- python -m pip install positional_encodings
- ```
- not supporting DfConvEkSA atm. due to openmin issues.
Advertisement
Add Comment
Please, Sign In to add comment