INNER CODE UNIT · Python

main

KennethJAllen/proper-pixel-art · proper_pixel_art/cli.py:220

def main() -> None:
    args = parse_args()
    input_path = Path(args.input_path).expanduser()

    config = PixelateConfig.from_yaml(args.config) if args.config else None

    # None values fall back to config / built-in defaults inside pixelate.
    overrides = collect_pixelation_overrides(args)

    # Debug images go in a per-input subdirectory named after the input stem
    # (e.g. --intermediate-dir foo + wisp.mp4 -> foo/wisp/), mirroring the
    # stem-based output-path convention and keeping multiple runs from
    # clobbering each other in a shared directory.
    intermediate_dir = args.intermediate_dir
    if intermediate_dir is not None:
        intermediate_dir = intermediate_dir / input_path.stem
        intermediate_dir.mkdir(parents=True, exist_ok=True)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…