Fix running out of vram on linux

This commit is contained in:
2026-03-05 23:07:44 +01:00
parent 8fd85322ca
commit 630ac6dd2d

View File

@@ -26,6 +26,9 @@ def _create_vsrife_script(
script = [
'import vapoursynth as vs',
'from vsrife import rife',
# this isn't a real fix, as this SHOULDN'T FIX IT
# however for some reason it does
'vs.core.max_cache_size=8192',
f'clip = vs.core.ffms2.Source(source="./{hentai_name} [4k][HEVC].mkv")',
f'clip = vs.core.resize.Bicubic(clip, width={video_width}, height=2160, format=vs.RGBS, matrix_in_s="709")',
'clip = rife(clip=clip, model="4.25.lite", factor_num=2, factor_den=1)',