soifunc 0.11.2__tar.gz → 0.11.3__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: soifunc
3
- Version: 0.11.2
3
+ Version: 0.11.3
4
4
  Summary: Soichiro's VapourSynth Functions Collection
5
5
  License: MIT
6
6
  Author: Josh Holmer
@@ -11,7 +11,7 @@ Classifier: Programming Language :: Python :: 3
11
11
  Classifier: Programming Language :: Python :: 3.12
12
12
  Classifier: Programming Language :: Python :: 3.13
13
13
  Requires-Dist: vapoursynth (>=68)
14
- Requires-Dist: vsjetpack (>=0.5.1,<0.6.0)
14
+ Requires-Dist: vsjetpack (>=0.5.2,<0.6.0)
15
15
  Description-Content-Type: text/markdown
16
16
 
17
17
  ## soifunc
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "soifunc"
3
- version = "0.11.2"
3
+ version = "0.11.3"
4
4
  description = "Soichiro's VapourSynth Functions Collection"
5
5
  authors = ["Josh Holmer <jholmer.in@gmail.com>"]
6
6
  license = "MIT"
@@ -9,7 +9,7 @@ readme = "README.md"
9
9
  [tool.poetry.dependencies]
10
10
  python = ">=3.12,<4.0"
11
11
  vapoursynth = ">=68"
12
- vsjetpack = "^0.5.1"
12
+ vsjetpack = "^0.5.2"
13
13
 
14
14
  [tool.poetry.group.dev.dependencies]
15
15
  black = "^25.1.0"
@@ -4,6 +4,7 @@ import platform
4
4
  from typing import TYPE_CHECKING
5
5
 
6
6
  import vstools
7
+ from vsscale import autoselect_backend
7
8
  from vstools import vs
8
9
 
9
10
  if TYPE_CHECKING:
@@ -40,15 +41,7 @@ def rate_doubler(
40
41
  model=vsmlrt.RIFEModel.v4_25_heavy,
41
42
  # Why these defaults? Because running ML stuff on AMD on Windows sucks hard.
42
43
  # Trial and error led me to finally find that ORT_DML works.
43
- backend=(
44
- backend
45
- if backend
46
- else (
47
- vsmlrt.Backend.ORT_DML()
48
- if platform.system() == "Windows"
49
- else vsmlrt.Backend.TRT()
50
- )
51
- ),
44
+ backend=(backend if backend else autoselect_backend()),
52
45
  )
53
46
  # TODO: Handle other chroma samplings
54
47
  clip = clip.resize.Bicubic(
@@ -98,15 +91,7 @@ def decimation_fixer(
98
91
  doubled = vsmlrt.RIFE(
99
92
  clip,
100
93
  model=vsmlrt.RIFEModel.v4_25_heavy,
101
- backend=(
102
- backend
103
- if backend
104
- else (
105
- vsmlrt.Backend.ORT_DML()
106
- if platform.system() == "Windows"
107
- else vsmlrt.Backend.TRT()
108
- )
109
- ),
94
+ backend=(backend if backend else autoselect_backend()),
110
95
  )
111
96
 
112
97
  out_clip = None
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes