Guest User

Untitled

a guest
Jul 12th, 2025
11
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.02 KB | None | 0 0
  1. Here's how I build Hybrids torch-addon:
  2.  
  3. # Base setup
  4. * Create an empty Vapoursynth folder.
  5. * Download portable Python (3.12)
  6. https://www.python.org/ftp/python/3.12.9/python-3.12.9-embed-amd64.zip
  7. * Download portable Vapoursynth
  8. https://github.com/vapoursynth/vapoursynth/releases/download/R70/VapourSynth64-Portable-R70.zip
  9. * Extract Python and then Vapoursynth into the Vapoursynth folder
  10. * Change the content of the python312._pth to
  11. ```
  12. Scripts
  13. Lib\site-packages
  14. python312.zip
  15. .
  16.  
  17. # Uncomment to run site.main() automatically
  18. #import site
  19. ```
  20. * Install pip
  21. * Download the pip installer
  22. https://bootstrap.pypa.io/get-pip.py and move it into your Vapoursynth folder
  23. * Open a terminal inside the Vapoursynth and call 'python get-pip.py'
  24.  
  25. * Integrate Vapoursynth to the environment by calling 'python -m pip install wheel/VapourSynth-70-cp312-cp312-win_amd64.whl'
  26.  
  27. * Install torch
  28. ```
  29. python -m pip install -U packaging setuptools wheel
  30. python -m pip install --pre torch torchvision --index-url https://download.pytorch.org/whl/nightly/cu128
  31. python -m pip install opencv-contrib-python
  32. 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
  33. python -m pip install --no-deps --pre -U torch_tensorrt --index-url https://download.pytorch.org/whl/nightly/cu128
  34. ```
  35. * Install VSGAN
  36. ```
  37. python -m pip install -U vsgan
  38. ```
  39. * Install vs-rife by calling:
  40. ```
  41. python -m pip install -U vsrife
  42. ```
  43. * Install BasicVSR++
  44. ```
  45. python -m pip install -U vsbasicvsrpp
  46. ```
  47. * Install DPIR
  48. ```
  49. python -m pip install -U vsdpir
  50. ```
  51. * Install SCUNet
  52. ```
  53. python -m pip install -U vsscunet
  54. ```
  55. * Install REALEsrgan
  56. ```
  57. python -m pip install -U vsrealesrgan
  58. ```
  59. * Install HINet
  60. ```
  61. python -m pip install -U vshinet
  62. ```
  63. * Install AnimeSR
  64. ```
  65. python -m pip install -U vsanimesr
  66. ```
  67. * Install FeMaSR
  68. ```
  69. python -m pip install -U vsfemasr
  70. ```
  71. * Install CodeFormer
  72. ```
  73. python -m pip install -U vscodeformer
  74. python -m pip install https://github.com/eddiehe99/dlib-whl/raw/refs/heads/main/dlib-19.24.6-cp312-cp312-win_amd64.whl
  75. ```
  76. * Install GRLIR
  77. ```
  78. python -m pip install -U vsgrlir
  79. ```
  80. * Install MFDIN
  81. ```
  82. python -m pip install -U vsmfdin
  83. ```
  84. * Install ProPainter
  85. ```
  86. python -m pip install https://github.com/dan64/vs-propainter/releases/download/v1.2.1/vspropainter-1.2.1-py3-none-any.whl
  87. ```
  88. * Install VSDDColor
  89. ```
  90. python -m pip install https://github.com/dan64/vs-deoldify/releases/download/v4.0.0/vsddcolor-1.0.1-py3-none-any.whl
  91. ```
  92. * Install VSDDColor
  93. ```
  94. python -m pip install -U vsswinir
  95. ```
  96. * Install DeOdify
  97. ```
  98. python -m pip install -U scikit-image
  99. python -m pip install -U numba
  100. python -m pip install https://github.com/dan64/vs-deoldify/releases/download/v5.0.4/vsdeoldify-5.0.4-py3-none-any.whl
  101. ```
  102. * Download:
  103. * https://colorizers.s3.us-east-2.amazonaws.com/colorization_release_v2-9b330a0b.pth
  104. * https://colorizers.s3.us-east-2.amazonaws.com/siggraph17-df00044c.pth
  105. * https://data.deepai.org/deoldify/ColorizeArtistic_gen.pth
  106. * https://www.dropbox.com/s/axsd2g85uyixaho/ColorizeStable_gen.pth?dl=0
  107. * https://data.deepai.org/deoldify/ColorizeVideo_gen.pth
  108. and place them in the Vapoursynth/vsdeoldify/models-folder
  109. * https://github.com/zhangmozhe/Deep-Exemplar-based-Video-Colorization/releases/download/v1.0/colorization_checkpoint.zip
  110. and extract it into the Vapoursynth\Lib\site-packages\vsdeoldify\deepex
  111. * https://download.pytorch.org/models/resnet101-63fe2227.pth
  112. * https://download.pytorch.org/models/resnet50-19c8e357.pth
  113. * https://dl.fbaipublicfiles.com/dinov2/dinov2_vits14/dinov2_vits14_pretrain.pth
  114. and place them in the Vapoursynth\Lib\site-packages\vsdeoldify\deepex\checkpoints-folder
  115. * https://github.com/yyang181/colormnet/releases/download/v0.1/DINOv2FeatureV6_LocalAtten_s2_154000.pth
  116. and place it into the Vapoursynth/Lib/site-packages/vsdeoldify/colormnet/weights-folder
  117. * install spartial_correlation_sampler (needs new build, see: https://forum.selur.net/thread-3595-post-26036.html#pid26036)
  118. extract content of spatial_correlation_sampler (open as an archive) into Vapoursynth\Lib\site-packages
  119.  
  120. * Download Models for the installed tools
  121. ```
  122. python -m vsrife
  123. python -m vsdpir
  124. python -m vsscunet
  125. python -m vsrealesrgan
  126. python -m vshinet
  127. python -m vsfemasr
  128. python -m vscodeformer
  129. python -m vsgrlir
  130. python -m vsddcolor
  131. python -m vsswinir
  132. python -m vsbasicvsrpp
  133. ```
  134. * Install DeepDeinterlace (**fails due to openmim dependency**)
  135. 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
  136. ```
  137. python -m pip install positional_encodings
  138. ```
  139. not supporting DfConvEkSA atm. due to openmin issues.
  140.  
  141.  
  142.  
  143.  
Advertisement
Add Comment
Please, Sign In to add comment