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#
- stouputils.applications.upscaler.config module
WAIFU2X_NCNN_VULKAN_RELEASESFFMPEG_RELEASESYOUTUBE_BITRATE_RECOMMENDATIONSConfigConfig.JPG_QUALITYConfig.VIDEO_FINAL_BITRATEConfig.FFMPEG_EXECUTABLEConfig.FFMPEG_ARGSConfig.FFPROBE_EXECUTABLEConfig.FFMPEG_CHECK_HELP_TEXTConfig.UPSCALER_EXECUTABLEConfig.UPSCALER_ARGSConfig.UPSCALER_EXECUTABLE_HELP_TEXTConfig.SLIGHTLY_FASTER_MODEConfig.upscaler_executable_checkedConfig.ffmpeg_executable_checked
- stouputils.applications.upscaler.image module
- stouputils.applications.upscaler.video module