/ Модель

Характеристики

Лицензия
Apache 2.0
Библиотека
neosr
Опубликована
22 сен 2026

4x_webphoto_realplksr

Преобразование изображенийИзображение, текст → изображение3 профессии

Модель RealPLKSR увеличивает веб-фотографии в 4 раза и восстанавливает детали после размытия, шума и сжатия JPEG/WebP.

0скачиваний за 30 дней0лайковвеса обновлены13 окт 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

4x_webphoto_realplksr — модель сверхразрешения изображений, разработанная xocialize на основе архитектуры RealPLKSR и обученная с помощью neosr. Она увеличивает фотографии в 4 раза и предназначена для восстановления веб-изображений, прошедших ресайзинг, размытие объектива, сенсорный шум и одно- или многократное сжатие JPEG/WebP. Модель содержит 7,39 млн параметров; принимает и выдаёт цветные RGB-изображения. Веса доступны в форматах PyTorch и safetensors, а обучение проведено на наборе изображений Wikimedia Commons с лицензиями CC0, CC BY и общественного достояния.

Модель рассчитана на улучшение фотографий для публикации в интернете и может восстанавливать мелкую текстуру, синтезируя правдоподобные детали. По оценке на отложенных данных, подготовленных с теми же типами деградаций, она показала PSNR 28,20 дБ и DISTS 0,1495; результаты не следует переносить на другие наборы данных или сценарии. Распространяется по лицензии Apache-2.0; при перераспространении обучающих материалов необходимо сохранять атрибуцию из ATTRIBUTION.csv.

Модель хуже подходит для чистых исходных изображений, сильного размытия и изображений с JPEG-качеством ниже 30. Она может создавать детали, которых не было в оригинале, поэтому не предназначена для задач, где важна доказательная точность; мелкий текст и лица могут восстанавливаться с артефактами. Для тайловой обработки README рекомендует перекрытие не менее 32 пикселей при тайлах 256×256.

Сценарии применения

  • увеличение фотографий с сайтов в четыре раза
  • восстановление текстуры в сжатых JPEG-фотографиях
  • улучшение веб-изображений после ресайзинга и размытия
  • подготовка фотографий для публикации в высоком разрешении

Ограничения

Модель обучена для типичных деградаций веб-фотографий и может давать неудовлетворительные результаты на чистых исходниках, при сильном размытии или JPEG-качестве ниже 30. Она синтезирует правдоподобные детали, поэтому не подходит для доказательных задач; мелкий текст и лица могут иметь артефакты.

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

4x_webphoto_realplksr

A 4× single-image super-resolution model for photos that came off the web — resampled, lens-blurred, sensor-noisy, JPEG/WebP-compressed (often twice), chroma-subsampled — trained on a corpus we can defend image by image. RealPLKSR architecture (7.39 M params), trained with neosr by xocialize (September 2026), reproducing the recipe of Phips/4xNomosWebPhoto_RealPLKSR on a provenance-clean corpus: every training image is Wikimedia Commons CC0 / public domain / CC-BY (no SA, no NC), credited in ATTRIBUTION.csv.

Ships in the Apple-silicon runtime as mlx-realplksr-swift (MLX-Swift port, layer-parity gated against this checkpoint) — the imageUpscale web-photo tier of MLXEngine.

Files

filewhat
4x_webphoto_realplksr.safetensorsthe weights, fp32, neosr key layout (feats.N.*, 340 tensors) — the EMA saved by neosr at stage-3 iteration 100,000
4x_webphoto_realplksr.pththe same tensors as neosr saved them ({"params": …}), sha256 5d84789e064051270bf1396636bf6e27c30ae0f0862e88db3ff97e07eb438b52
configs/stage{0,1,2,3}_*.tomlthe four neosr configs exactly as run
ATTRIBUTION.csvcredits for all 6,000 images of the curated Commons-SR cut, which include the 5,666 that contributed tiles: title, Commons URL, licence, licence URL, artist, credit. Some credit fields span lines, so count records with a CSV reader
PROVENANCE.mdjob ids, trainer commit, dataset commit, per-stage table, gate results

Architecture

realplksr (neosr): dim=64, n_blocks=28, kernel_size=17, split_ratio=0.25, use_ea=True, norm_groups=4, dysample=False, scale 4 — the same configuration as the reference model, so any RealPLKSR loader that takes the reference takes this one. Input/output RGB in [0, 1].

Training data — Commons-SR

  • 5,666 images → 64,909 lossless 512² tiles, harvested from Wikimedia Commons (Quality/Featured/Valued pools plus targeted subject trees) into the reference model's category balance (architecture, exteriors, interiors, people, drawings/paintings, …), BHI-filtered (blockiness / HyperIQA / IC9600 floors), 300 tiles held out (val_hard).
  • Licences of the 5,666 images: CC BY 4.0 (2,578 images) · CC0 (1,427) · CC BY 3.0 (707) · public domain (649) · CC BY 2.5 (138) · CC BY 2.0 (117) · CC BY 3.0 de/at (43) · CC BY 1.0, 2.0 de/fr, 2.1 jp and 2.5 au (7 together). No ShareAlike, no NonCommercial. Attribution for every CC-BY image is in ATTRIBUTION.csv — that file is the credit; please carry it with any redistribution.
  • Degradations (12 LR variants per tile, 775,308 pairs): {none, lens blur} × {none, learned sensor noise} × ×4 downscale (mixed algorithms, down-up) × {none, JPEG/WebP ≤ q70/72, compress + recompress}, in the reference recipe's order blur → noise → downscale → compress → recompress. Lens blur, resampling and compression via wtp_dataset_destroyer (MIT); learned sensor noise via Ludvae200 (Phips, CC BY 4.0, network code LUD-VAE, MIT) — credited here as its licence asks.

Training procedure

neosr commit 31c7022620c682cf0961c8634d60787179145c5b (PyTorch 2.6, eager), Hugging Face Jobs a100-large, bf16 autocast, batch 12 (one of each variant), NAdam, EMA 0.999, val every 5k on val_hard.

stageGT / LQ cropiterslossesinitval PSNR / DISTS (in-loop)
0 pretrain256 / 6450kMS-SSIM + colour/luma consistency (no D)random30.71 / —
1128 / 32200k+ VGG-perceptual + GAN (metagan), warm-up 5k, wavelet guidancestage 030.66 / 1.189
2256 / 64150k+ LDL + DISTS + focal-frequencystage 1 (G + D)30.34 / 1.145
3512 / 128 (whole tiles)100ksamestage 2 (G + D)30.27 / 1.138

Deviations from the reference recipe, all deliberate: our own MS-SSIM pretrain instead of a GAN pretrain (from-scratch GAN training collapsed at inference size; the reference author's pretrain is Nomos-v2-trained and would carry its corpus into the weights), warm-up + halved peak LR, compile off. Total compute 59 A100-hours (≈ $148).

Evaluation

val_hard — 300 held-out 512² tiles with the FULLY degraded variant (blur + noise + downscale + compress + recompress), input 128² → output 512², measured offline in fp32 (uint8-quantised outputs):

modelPSNR mean / median (dB)DISTS ↓grain vs GT
4x_webphoto_realplksr (this model, stage 3 @ 100k)28.20 / 26.650.14951.01
stage 3 @ 95k28.21 / 26.640.14951.01
interpolation 95k + 100k (50/50)28.21 / 26.640.14951.01
interpolation stage 2 + stage 3 (30/70)28.24 / 26.660.15210.99
interpolation stage 2 + stage 3 (50/50)28.25 / 26.650.15370.97
stage 2 @ 150k (the previous stage)28.27 / 26.700.15720.95
Phips/4xNomosWebPhoto_RealPLKSR (the reference recipe, other data)26.40 / 25.360.20491.48
bicubic ×428.10 / 26.720.26760.29

100 tiles (every 3rd of the 300-tile hold-out), fp32, Apple GPU — validated against CPU at 1e-6 on the image, 0.0000 dB PSNR and 0.000000 DISTS before use.

PSNR is RGB, no border crop. DISTS is the proper metric (Ding et al.), VGG-16 backbone, lower is better. grain = fine-texture energy of the output ÷ the ground truth's in flat GT regions (1.0 = as textured as the reference; < 1 = smoother). The reference model was trained on other data and its own degradation pipeline, so this hold-out favours ours; the comparison is on our degradation prior, which is the use case.

Reading the table. Against the reference model on this hold-out: DISTS 27% better (0.1495 vs 0.2049) and PSNR 1.8 dB higher, and the reference sits at grain 1.48 — on this degradation prior it over-textures, inventing ~50% more fine detail than the ground truth carries in flat regions, which is what "hallucination" looks like numerically. ⚠️ This comparison is on our own degradation pipeline and our own corpus, which our model was trained on and the reference model was not — it says this model is the better fit for these degradations, not that it is the better model in general. The reference remains the recipe's origin and was trained for its own target.

Against bicubic: DISTS 44% better with fidelity a tenth of a dB higher, and the stage ladder shows the trade the recipe is designed to make — stage 2 → stage 3 gives up 0.07 dB of PSNR to gain 0.008 DISTS and push texture from 0.95 to 1.01 of the ground truth's own level.

Checkpoint interpolation (the reference release is an interpolation of two) was tried — it buys nothing here and this model ships un-interpolated. Blending the last two stage-3 checkpoints is a no-op (they are 5k iterations apart at the final learning rate — PSNR moves 0.002 dB, DISTS not at all); blending stage 2 into stage 3 just walks back along the training trajectory, trading 0.004–0.008 DISTS for 0.03–0.05 dB of PSNR. The reference release interpolates two checkpoints that differed materially; ours do not.

Independent check — does this hold off our own corpus?

The table above is measured on Commons content, which is this model's training distribution, so it cannot by itself separate "a better model" from "a model that knows this corpus". Holding the degradation fixed (clean bicubic ×4 on native crops) and varying only the content answers it:

clean bicubic ×4 · DISTS advantage over bicubicCommons (control)independent camera originalschange
this model+0.1110+0.0982−11.5 %
HEART .fidelity (never trained on Commons)+0.0915+0.0813−11.1 %
Real-ESRGAN general+0.0339+0.0168−50 %

Each corpus is 150 unique tiles, one strided crop per source image. The independent set comes from camera originals (iPhone HEIC + Canon EOS 80D), screened to camera-EXIF only (no screenshots, no re-shared images) and quality-matched to the training corpus by the same BHI floors its tiles passed — so the comparison isolates content rather than confounding it with source quality. The images are private and not redistributable; only these aggregate numbers are published.

This model's advantage shrinks off-corpus by the same fraction as a model that never saw Commons. HEART .fidelity was trained on other data and loses 11.1 % of its advantage; this model loses 11.5 %. The shrink is camera originals being harder for every learned model, not this model knowing Commons, so the confound is not supported. On camera sources it is level with bicubic on PSNR (33.37 vs 33.40) and 3.4 dB above Real-ESRGAN (29.99). Note what else the table says: the comparison model's advantage over bicubic halves on camera originals, so its numbers in the main table are closer to its best case than its typical one.

DISTS is one of this model's training losses (neosr dists_loss at weight 0.5 in stages 2 and 3), so every DISTS number on this card scores it partly on its own objective. The off-corpus comparison is unaffected, since it uses the same metric on both corpora, but read margins against models that did not train on DISTS with that in mind. As a check that no model trained toward: on the same 100-tile hold-out across all 12 degradation rungs, SSIMULACRA2 also ranks this model ahead of bicubic and Real-ESRGAN at every rung (12-rung mean 3.71, against −4.66 and −15.34). SSIMULACRA2 was not run on the camera-originals set.

Scope, plainly: this supports "better than Real-ESRGAN general at ×4 on clean camera sources, on DISTS and PSNR, both implementations validated against their shipping binaries in one harness". It is not a claim against the wider field, the protocol is the synthetic bicubic-downscale convention rather than native low-resolution sources, and there is no human study behind any of these metrics.

Limitations

  • Trained for web-photo degradations at ×4. Clean, native-resolution sources are better served by a fidelity-first model (in MLXEngine, the Real-ESRGAN tier); heavy blur or very low-quality sources (JPEG q < 30) are outside the trained prior.
  • A GAN/perceptual model: it synthesises plausible fine texture. Do not use it where pixel accuracy is evidentiary (forensics, medical, measurement).
  • Tile-based inference with a global receptive field: use overlap ≥ 32 px at 256² tiles (the Swift port's default) or whole-frame processing to avoid seam disagreement.
  • Faces and text are reconstructed as texture, not recognised; expect the usual SR artefacts on tiny text.

Licence

Weights: Apache-2.0. The training images are CC0 / public domain / CC-BY — under CC-BY the images carry attribution requirements, and ATTRIBUTION.csv is that attribution; our position is that the weights are not a derivative of any single image, but we carry the credits regardless. Ludvae200 (CC BY 4.0) is credited above. Architecture and trainer: neosr, Apache-2.0. Recipe: Phips' published methodology (no weights, code or data from the reference model were used).

Citation

@misc{xocialize2026webphoto,
  title  = {4x_webphoto_realplksr: a provenance-clean RealPLKSR reproduction of the NomosWebPhoto recipe},
  author = {xocialize},
  year   = {2026},
  url    = {https://huggingface.co/xocialize/4x_webphoto_realplksr}
}

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · neosr

Нельзя запустить

MLX-модели работают только на Apple Silicon.

Ревизия весов
78bd813

0 моделей