r/computervision • u/CivilDatabase7508 • 2d ago
Showcase I trained two small 4x super-resolution models on CC0 photos only. They run entirely on Apple's Neural Engine (and a complete report!)
I made two small photo upscalers for LocalSR, my free open-source app: https://github.com/HerRei/local-upscale
- Photo S: 0.62M parameters, 188 ms per input megapixel on an M1 Pro's Neural Engine
- Photo M: 2.03M parameters, 485 ms
- Network: Philip Hofmann's PULSE layout (plain convolutions, so every op runs on the ANE)
- Training data: only CC0 photos (lucid-cc0-v2-hc)
- Weights CC BY 4.0, code MIT
**Results** on a sealed DIV2K hold-out, scored once, each file at its own operating point:
- Photo S beats the SPAN model it replaces on LPIPS (0.259 vs 0.276) and DISTS, at 1.4 dB higher PSNR.
- Photo M shows no clear difference to a 7.4M RealPLKSR model on LPIPS and DISTS, at 2.6 dB higher PSNR.
- Real-ESRGAN still has the lowest DISTS, and A-FINE prefers it everywhere.
**What I found most interesting:**
- Blur. The RealSR/DRealSR crops are blurrier (fitted sigma 1.95 / 2.50 HR px) than what my first models restored. Their LPIPS rose steeply from sigma 1. A lens-blur regime in the degradations improved RealSR A-FINE by about 5 points, in two seeds. Noisy soft input is still clearly weak.
- Frame-by-frame video.The GAN texture flickers 1.5-1.9x as much as the L1 parent, because it follows each frame's noise. A consistency fine-tune (two noisy, shifted copies of one crop, L1 between the aligned outputs) calms it, but trades about 0.0012-0.0015 LPIPS per percent of flicker under shake. Side by side, I could not see the difference by eye.
- Old hardware On a 2017 i7 laptop, Photo M takes 25 s per input megapixel, against 3.3 min for NomosWebPhoto and 4.5 min for Real-ESRGAN.
I also report the negative results, and one bug: my first blur test silently cropped 128 px out of 256 px tiles.
- Report (5 pages): https://github.com/HerRei/localsr-models/blob/master/report/localsr-models.pdf
- Weights: https://huggingface.co/HerRei/localsr-models
I'd like feedback on the evaluation side, mainly how you would settle A-FINE vs LPIPS/DISTS without a big rater study.