MCPcopy
hub / github.com/nikopueringer/CorridorKey / app_callback

Function app_callback

corridorkey_cli.py:282–293  ·  view source on GitHub ↗

Neural network green screen keying for professional VFX pipelines.

(
    ctx: typer.Context,
    device: Annotated[
        str,
        typer.Option(help="Compute device: auto, cuda, mps, cpu"),
    ] = "auto",
)

Source from the content-addressed store, hash-verified

280
281@app.callback()
282def app_callback(
283 ctx: typer.Context,
284 device: Annotated[
285 str,
286 typer.Option(help="Compute device: auto, cuda, mps, cpu"),
287 ] = "auto",
288) -> None:
289 """Neural network green screen keying for professional VFX pipelines."""
290 _configure_environment()
291 ctx.ensure_object(dict)
292 ctx.obj["device"] = resolve_device(device)
293 logger.info("Using device: %s", ctx.obj["device"])
294
295
296# ---------------------------------------------------------------------------

Callers

nothing calls this directly

Calls 2

resolve_deviceFunction · 0.90
_configure_environmentFunction · 0.85

Tested by

no test coverage detected