File size: 2,677 Bytes
debe4c6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
bb3bc4c
debe4c6
bb3bc4c
 
 
 
debe4c6
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
---
library_name: pytorch
license: mit
pipeline_tag: image-to-image
tags:
- pytorch
- computer-vision
- image-super-resolution
- diffusion
---

# LPNSR: Prior-Enhanced Diffusion Image Super-Resolution via LR-Guided Noise Prediction

This repository contains the official model weights for **LPNSR**, a prior-enhanced efficient diffusion framework for image super-resolution (SR).

- **Paper:** [LPNSR: Prior-Enhanced Diffusion Image Super-Resolution via LR-Guided Noise Prediction](https://huggingface.co/papers/2603.21045)
- **GitHub Repository:** [Faze-Hsw/LPNSR](https://github.com/Faze-Hsw/LPNSR)

## Introduction

LPNSR addresses the efficiency-quality trade-off in diffusion-based SR. While state-of-the-art frameworks like ResShift achieve efficient 4-step inference, they can suffer from performance degradation due to unconstrained random noise. LPNSR addresses this by:
- Replacing random Gaussian noise with an **LR-guided multi-input-aware noise predictor**, embedding structural priors into the reverse process.
- Mitigating initialization bias using a **high-quality pre-upsampling network** to optimize the diffusion starting point.
- Maintaining a compact 4-step sampling trajectory for high-quality, real-world super-resolution.

## Features

- **Efficient Sampling**: Only 4 sampling steps required for high-quality super-resolution.
- **Noise Predictor**: Learns to predict optimal noise maps for partial diffusion initialization.
- **Real-world SR**: Designed to handle complex real-world degradations.
- **SwinIR Integration**: Optional SwinIR refinement for enhanced details.

## Quick Start

To use these weights, clone the [official repository](https://github.com/Faze-Hsw/LPNSR) and follow the environment setup instructions.

### Inference

Once the environment is set up and weights are placed in the `pretrained/` folder, run:

```bash
python LPNSR/inference.py -i [image folder/image path] -o [output folder]
```

### Online Demo

You can also launch a local Gradio web interface:

```bash
python LPNSR/app.py
```

## Citation

If you find this work useful, please cite:

```bibtex
@article{lpnsr2026,
  title={LPNSR: Prior-Enhanced Diffusion Image Super-Resolution via LR-Guided Noise Prediction},
  author={Huang, Shuwei and Liu, Shizhuo and Wei, Zijun},
  journal={arXiv preprint arXiv:2603.21045},
  year={2026},
  eprint={2603.21045},
  archivePrefix={arXiv},
  primaryClass={cs.CV}
}
```

## Acknowledgement

This project is based on [ResShift](https://github.com/zsyOAOA/ResShift), [BasicSR](https://github.com/XPixelGroup/BasicSR), [SwinIR](https://github.com/JingyunLiang/SwinIR), and [Real-ESRGAN](https://github.com/xinntao/Real-ESRGAN).