run.py: --look ID turns a Look on for one run

This commit is contained in:
bonzi committed 2026-11-20 10:24:09 +00:00
1 parent e93e8afcf9
commit ca46a28d97
1 file changed
+10
+10
View File
@@ -299,6 +299,8 @@ def main() -> int:
ap.add_argument("--no-graph", action="store_true", help="disable CUDA graphs")
ap.add_argument("--dup-threshold", type=float, default=2.0)
ap.add_argument("--off", action="store_true", help="start with interpolation disabled (toggle with 'i')")
ap.add_argument("--look", default=None, metavar="ID",
help="turn a Look on for this run (not saved), e.g. my:capture-cleanup; 'off' turns Looks off")
ap.add_argument("--display", action="store_true", help="show output in an OpenGL window")
ap.add_argument("--settings", default=str(DEFAULT_PATH), metavar="JSON",
help="settings file the menu loads and saves (default %(default)s); 'none' = defaults, unsaved")
@@ -426,6 +428,14 @@ def main() -> int:
("hdr", a.hdr), ("fill", a.fill)):
if value is not None:
settings.override(key, value)
if a.look:
if a.look.lower() == "off":
settings.override("look_on", False)
else:
from framegen import looks as _looks
_looks.Library() # fills looks.CHOICES with the user's looks, so the id below is accepted
settings.override("look", a.look)
settings.override("look_on", True)
# --model: one of the settings' choices, or another RIFE version for testing (not something the menu offers)
test_model = a.model if a.model is not None and a.model not in BY_KEY["model"].choices else None
if a.model is not None and test_model is None: