Skip to content

Commit

Permalink
scripts/vsmlrt.py: fix padding for v1 variant of the RIFE v4.25 heavy…
Browse files Browse the repository at this point in the history
… model
  • Loading branch information
WolframRhodium committed Oct 30, 2024
1 parent f3c7adb commit c03979a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/vsmlrt.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "3.22.6"
__version__ = "3.22.7"

__all__ = [
"Backend", "BackendV2",
Expand Down Expand Up @@ -1012,8 +1012,11 @@ def RIFEMerge(
tilesize_requirement = 64
elif (model_major, model_minor, rife_type) == (4, 25, "_lite"):
tilesize_requirement = 128
elif (model_major, model_minor, rife_type) == (4, 25, "_heavy"):
tilesize_requirement = 64
else:
tilesize_requirement = 32

multiple_frac = tilesize_requirement / Fraction(scale)
if multiple_frac.denominator != 1:
raise ValueError(f'{func_name}: ({tilesize_requirement} / Fraction(scale)) must be an integer')
Expand Down

0 comments on commit c03979a

Please sign in to comment.