Skip to main content

Module upscale

Module upscale 

Source
Expand description

Neural and classical upscaling for textures and glyph maps.

Structs§

UpscaleConfig
Configuration for the upscaler.
Upscaler
Neural upscaler wrapping a model.

Enums§

UpscaleQuality
Quality preset for upscaling.

Functions§

bicubic_upscale
Bicubic upscaling fallback. Input shape: (C, H, W).
bilinear_upscale
Bilinear upscaling fallback. Input shape: (C, H, W).
create_simple_upscaler
Create a simple ESPCN-style upscaler. The model learns a mapping from low-res features to high-res via sub-pixel convolution (simulated with dense layers).