stouputils.applications.upscaler package#

This module provides utilities for upscaling images and videos using waifu2x-ncnn-vulkan (by default).

It includes functions to upscale individual images, batches of images in a folder, and videos by processing them frame by frame. It also handles configuration and installation of required dependencies.

Example of script:

# Imports
import stouputils.applications.upscaler as app
from stouputils.io import get_root_path

# Constants
ROOT: str = get_root_path(__file__) + "/upscaler"
INPUT_FOLDER: str = f"{ROOT}/input"
PROGRESS_FOLDER: str = f"{ROOT}/progress"
OUTPUT_FOLDER: str = f"{ROOT}/output"

# Main
if __name__ == "__main__":
        app.video_upscaler_cli(INPUT_FOLDER, PROGRESS_FOLDER, OUTPUT_FOLDER)

Submodules#