Upscaler Models
mold supports Real-ESRGAN super-resolution models for image upscaling. These models enhance image resolution by 2x or 4x using neural networks trained on image restoration tasks. Seven upscalers ship in the manifest: six RRDBNet builds and one SRVGGNetCompact build.
Before and After

Input: 512x512 DreamShaper v8 image

real-esrgan-x4plus:fp16: 4x output at 2048x2048
mold upscale sd15-castle.png --model real-esrgan-x4plus:fp16 \
--output sd15-castle-4x.pngModel List
RRDBNet Architecture (High Quality)
The Residual-in-Residual Dense Block Network uses deep convolutional layers with dense connections for maximum quality.
| Model | Scale | Params | Size | Description |
|---|---|---|---|---|
real-esrgan-x4plus:fp16 | 4x | 16.7M | 32 MB | General-purpose, best quality |
real-esrgan-x4plus:fp32 | 4x | 16.7M | 64 MB | Same model, FP32 precision |
real-esrgan-x2plus:fp16 | 2x | 16.7M | 32 MB | 2x upscale, best quality |
real-esrgan-x2plus:fp32 | 2x | 16.7M | 64 MB | Same model, FP32 precision |
real-esrgan-x4plus-anime:fp16 | 4x | 4.5M | 8.5 MB | Anime/illustration optimized (6 blocks) |
real-esrgan-x4plus-anime:fp32 | 4x | 4.5M | 17 MB | Same model, FP32 precision |
SRVGGNetCompact Architecture (Fast)
A lightweight linear chain architecture optimized for speed. Uses significantly less compute than RRDBNet while maintaining good quality.
| Model | Scale | Params | Size | Description |
|---|---|---|---|---|
real-esrgan-anime-v3:fp32 | 4x | 0.6M | 2.4 MB | Fast anime/video upscaler |
Architecture Details
RRDBNet
Input (3, H, W)
↓ Conv2d(3 → 64)
↓ [RRDB block × 23], each with 3 × ResidualDenseBlock (5 convs with dense connections)
↓ Conv2d(64 → 64)
↓ Upsample 2x (nearest) + Conv2d
↓ Upsample 2x (nearest) + Conv2d ← only for 4x models
↓ Conv2d(64 → 64) + LeakyReLU
↓ Conv2d(64 → 3)
Output (3, H×scale, W×scale)SRVGGNetCompact
Input (3, H, W)
↓ Conv2d(3 → 64)
↓ [PReLU + Conv2d(64 → 64)] × N
↓ PReLU
↓ Conv2d(64 → 3×scale²)
↓ PixelShuffle(scale)
Output (3, H×scale, W×scale)Downloading
# Pull the default high-quality upscaler
mold pull real-esrgan-x4plus:fp16
# Pull the fast compact upscaler
mold pull real-esrgan-anime-v3:fp32
# List all available models including upscalers
mold listHuggingFace Sources
All upscaler models are sourced from trusted HuggingFace repositories:
- x4plus: hlky/RealESRGAN_x4plus (safetensors)
- x4plus-anime: hlky/RealESRGAN_x4plus_anime_6B (safetensors)
- x2plus: hlky/RealESRGAN_x2plus (safetensors)
- anime-v3 (SRVGGNetCompact): wkrettek/real-esrgan-models (safetensors)
Comparison
| Use Case | Recommended Model | Why |
|---|---|---|
| Photo upscaling | real-esrgan-x4plus:fp16 | Best detail preservation |
| Anime/manga | real-esrgan-x4plus-anime:fp16 | Trained on anime data |
| Batch processing | real-esrgan-anime-v3:fp32 | 5-10x faster |
| Video frames | real-esrgan-anime-v3:fp32 | Smallest, fastest |
| Subtle enhancement | real-esrgan-x2plus:fp16 | 2x is less aggressive |
Framewise video upscale
mold video-upscale create clip.mp4 --wait creates a durable job from an existing Library video and publishes a new MP4. It decodes and processes one frame at a time with the same native Real-ESRGAN/Candle engine used for stills; it does not interpolate frames or perform temporal/generative restoration. Frame count, constant FPS, duration, and a codec-compatible primary audio track are verified before publication. Temporal flicker may remain.
The output is H.264 within level 5.2 so every phone, browser, and the Library thumbnailer can decode it. When the ×2 or ×4 frame would exceed that level (more than 36 864 macroblocks, more than 2 073 600 macroblocks per second at the source frame rate, or an edge over 4096 px), the encoder resamples it to the largest same-aspect frame that fits — a 960×960 clip ×4 publishes at 3072×3072 — and publication refuses anything larger. The Library marks the result Upscaled exactly as it marks an upscaled still.
The first contract accepts MP4, MOV, and WebM Library sources, but deliberately rejects VFR, HDR/high-bit-depth sources, subtitles, chapters, multiple audio tracks, and primary audio that cannot be copied safely into MP4. Use mold video-upscale status|pause|resume|cancel <job-id> to manage a job.
