Restoration models
32 restoration models. Each section says what the model is, whether it may be used commercially and how fast it is; licences and checks are under Details.
Input: one RGB image. Output: the restored (upscaled) image, model.scale x the input size, RGB in [0, 1]. tile= runs large images in overlapping tiles (as ComfyUI).
Measured on RTX 5060 Ti, torch 2.14.1+cu130; fastforks bench MODEL --size HxW measures yours. The summary uses one input, 512x512: kernels time with its speed-up over the faster original run, and kernels peak reserved memory with its ratio to the smaller original one. Where measured (one variant per family), a variant's table also lists portable under torch.compile and the fp16 TensorRT engine of portable (export; memory: the engine's device memory + torch's peak). – = not measured; no kernels = the family has no kernels backend (reason under its table). Reserved memory is the allocator's cache: kernels (CUDA graphs, cuDNN workspaces) can reserve a few percent to some tens of percent more than portable at the same allocated peak.
Other devices: Apple M1 Pro 16 GB, NVIDIA L4, NVIDIA L40S, NVIDIA A10, NVIDIA A100-SXM4-40GB, NVIDIA RTX PRO 6000; across devices.
| model | commercial | kernels time (ms), speed-up vs original | kernels peak memory (MiB, reserved), ratio to original |
|---|---|---|---|
big-lama | yes | 21.2, 1.8x | 284, 0.99x |
codeformer | no | 40.4, 2.1x | 496, 0.46x |
dat-2-x4 | yes | 1221, 4.0x | 2378, 0.94x |
dat-light-x4 | yes | 264, 8.3x | 1472, 0.89x |
dat-x4 | yes | 1391, 6.9x | 2384, 0.94x |
drct-l-x4 | yes | 1399, 10.5x | 2850, 0.41x |
drct-x4 | yes | 718, 10.4x | 2766, 0.7x |
gfpgan-v1.4 | yes | 18.0, 1.2x | 530, 0.79x |
hat-s-x4 | yes | 956, 2.5x | 1888, 0.33x |
hat-x4 | yes | 1427, 2.1x | 2470, 0.4x |
nafnet-gopro | yes | 55.3, 1.2x | 550, 0.9x |
nafnet-sidd | yes | 56.9, 1.3x | 650, 0.89x |
real-hat-gan-x4 | yes | 1427, 2.1x | 2470, 0.4x |
realesr-general-x4v3 | yes | 24.0, 1.8x | 164, 0.8x |
realesrgan-x2plus | yes | 80.2, 1.6x | 394, 0.6x |
realesrgan-x4plus | yes | 403, 1.6x | 1434, 0.57x |
realesrgan-x4plus-anime-6b | yes | 132, 1.6x | 1410, 0.57x |
realplksr-nomoswebphoto-x4 | yes | 130, 2.1x | 216, 0.68x |
restormer-deblur | yes | 180, 1.3x | 918, 0.65x |
restormer-derain | yes | 180, 1.3x | 920, 0.65x |
restormer-sidd | yes | 179, 1.2x | 940, 0.66x |
seedvr2-3b | yes | 2296, 5.7x | 6772, 0.44x |
seedvr2-7b | yes | 2713 | 7034 |
span-x2 | yes | 14.9, 1.6x | 522, 0.81x |
span-x4 | yes | 14.6, 1.8x | 522, 0.81x |
swin2sr-x2 | yes | 721, 3.6x | 1636, 1.0x |
swin2sr-x4 | yes | 745, 3.9x | 1736, 0.8x |
swin2sr-x4-real | yes | 751, 3.4x | 1734, 0.65x |
swinir-l-x4-real | yes | 1036, 3.6x | 1934, 0.7x |
swinir-m-x2 | yes | 553, 5.9x | 1454, 0.8x |
swinir-m-x4 | yes | 576, 6.1x | 1456, 0.71x |
swinir-m-x4-real | yes | 584, 4.2x | 1814, 0.61x |
All models
Modes, licences, training data and outputs per model
Commercial status per variant: yes if the code and the weights licence both allow commercial use (the training data is listed but does not change it; weights without a licence of their own are assumed to carry the code licence); no if either forbids it; unclear for custom licence terms (treat as no).
| model | modes | code licence | weights licence | training data | commercial | outputs |
|---|---|---|---|---|---|---|
big-lama | portable, kernels | Apache-2.0 | Apache-2.0 | places365 | yes | image |
codeformer | portable, kernels | LicenseRef-noncommercial | LicenseRef-noncommercial | ffhq | no (code: LicenseRef-noncommercial (noncommercial); weights: LicenseRef-noncommercial) | image |
dat-2-x4 | portable, kernels | Apache-2.0 | Apache-2.0 | div2k, flickr2k | yes | image |
dat-light-x4 | portable, kernels | Apache-2.0 | Apache-2.0 | div2k, flickr2k | yes | image |
dat-x4 | portable, kernels | Apache-2.0 | Apache-2.0 | div2k, flickr2k | yes | image |
drct-l-x4 | portable, kernels | MIT | MIT | imagenet-1k, div2k, flickr2k | yes | image |
drct-x4 | portable, kernels | MIT | MIT | imagenet-1k, div2k, flickr2k | yes | image |
gfpgan-v1.4 | portable, kernels | Apache-2.0 | Apache-2.0 | ffhq | yes | image |
hat-s-x4 | portable, kernels | Apache-2.0 | Apache-2.0 | div2k, flickr2k | yes | image |
hat-x4 | portable, kernels | Apache-2.0 | Apache-2.0 | imagenet-1k, div2k, flickr2k | yes | image |
nafnet-gopro | portable, kernels | MIT | MIT | gopro | yes | image |
nafnet-sidd | portable, kernels | MIT | MIT | sidd | yes | image |
real-hat-gan-x4 | portable, kernels | Apache-2.0 | Apache-2.0 | div2k, flickr2k, ost | yes | image |
realesr-general-x4v3 | portable, kernels | BSD-3-Clause | BSD-3-Clause | div2k, flickr2k, ost | yes | image |
realesrgan-x2plus | portable, kernels | BSD-3-Clause | BSD-3-Clause | div2k, flickr2k, ost | yes | image |
realesrgan-x4plus | portable, kernels | BSD-3-Clause | BSD-3-Clause | div2k, flickr2k, ost | yes | image |
realesrgan-x4plus-anime-6b | portable, kernels | BSD-3-Clause | BSD-3-Clause | div2k, flickr2k, ost | yes | image |
realplksr-nomoswebphoto-x4 | portable, kernels | Apache-2.0 | CC-BY-4.0 | nomos-v2 | yes | image |
restormer-deblur | portable, kernels | MIT | MIT | gopro | yes | image |
restormer-derain | portable, kernels | MIT | MIT | rain13k | yes | image |
restormer-sidd | portable, kernels | MIT | MIT | sidd | yes | image |
seedvr2-3b | portable, kernels | Apache-2.0 | Apache-2.0 | unstated | yes | image |
seedvr2-7b | portable, kernels | Apache-2.0 | Apache-2.0 | unstated | yes | image |
span-x2 | portable, kernels | Apache-2.0 | Apache-2.0 | div2k, flickr2k | yes | image |
span-x4 | portable, kernels | Apache-2.0 | Apache-2.0 | div2k, flickr2k | yes | image |
swin2sr-x2 | portable, kernels | Apache-2.0 | Apache-2.0 | div2k, flickr2k | yes | image |
swin2sr-x4 | portable, kernels | Apache-2.0 | Apache-2.0 | div2k, flickr2k | yes | image |
swin2sr-x4-real | portable, kernels | Apache-2.0 | Apache-2.0 | div2k, flickr2k | yes | image |
swinir-l-x4-real | portable, kernels | Apache-2.0 | Apache-2.0 | div2k, flickr2k, ost, wed, ffhq, manga109, scut-ctw1500 | yes | image |
swinir-m-x2 | portable, kernels | Apache-2.0 | Apache-2.0 | div2k, flickr2k | yes | image |
swinir-m-x4 | portable, kernels | Apache-2.0 | Apache-2.0 | div2k, flickr2k | yes | image |
swinir-m-x4-real | portable, kernels | Apache-2.0 | Apache-2.0 | div2k, flickr2k, ost | yes | image |