23.07.2025, 05:59
The portable python environment is under Hybrid/64bit/Vapoursynth, but be warned doing this is not easy.
once could try calling:
but instead of using cu126, one would use the latest nightly.
But no clue how much this could break, one could end up having to setup a custom torch add-on.
I outlined the basic step here:
I'll try finding some time, to create such a torch add-on in the next few days.
(best remind me if I didn't get around to this on Friday)
Cu Selur
once could try calling:
python -m pip install -U torch torchvision torch_tensorrt --index-url https://download.pytorch.org/whl/cu126 --extra-index-url https://pypi.nvidia.com
But no clue how much this could break, one could end up having to setup a custom torch add-on.
I outlined the basic step here:
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/R72/VapourSynth64-Portable-R72.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-72-cp312-abi3-win_amd64.whl'
* Install torch
```
python -m pip install -U packaging setuptools Wheel
python -m pip install -U torch torchvision torch_tensorrt --index-url https://download.pytorch.org/whl/cu126 --extra-index-url https://pypi.nvidia.com
```
* 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/releases/download/v20.0.0/dlib-20.0.0-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.
I'll try finding some time, to create such a torch add-on in the next few days.
(best remind me if I didn't get around to this on Friday)
Cu Selur
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.