nielsr HF Staff commited on
Commit
1ff15c3
·
verified ·
1 Parent(s): c585162

Update model card: add paper link, pipeline tag, and fix license

Browse files

Hi! I'm Niels from the Hugging Face community science team. I'm opening this PR to improve the model card for LPNSR.

Summary of changes:
- Added the `image-to-image` pipeline tag to improve discoverability.
- Updated the license to `mit` based on the official GitHub repository.
- Added a link to the paper: [LPNSR: Prior-Enhanced Diffusion Image Super-Resolution via LR-Guided Noise Prediction](https://huggingface.co/papers/2603.21045).
- Added a link to the official GitHub repository.
- Included basic usage instructions for inference and the local Gradio demo.

Files changed (1) hide show
  1. README.md +68 -14
README.md CHANGED
@@ -1,14 +1,68 @@
1
- ---
2
- license: apache-2.0
3
- library_name: pytorch
4
- tags:
5
- - pytorch
6
- - computer-vision
7
- - image-super-resolution
8
- ---
9
-
10
- # LPNSR
11
-
12
- These are the official model weights (`.pth` files) for the [LPNSR project](https://github.com/Faze-Hsw/LPNSR) hosted on GitHub.
13
-
14
- To use these weights, clone the repository above and place the `.pth` files as specified in the repo instructions.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: pytorch
3
+ license: mit
4
+ pipeline_tag: image-to-image
5
+ tags:
6
+ - pytorch
7
+ - computer-vision
8
+ - image-super-resolution
9
+ - diffusion
10
+ ---
11
+
12
+ # LPNSR: Prior-Enhanced Diffusion Image Super-Resolution via LR-Guided Noise Prediction
13
+
14
+ This repository contains the official model weights for **LPNSR**, a prior-enhanced efficient diffusion framework for image super-resolution (SR).
15
+
16
+ - **Paper:** [LPNSR: Prior-Enhanced Diffusion Image Super-Resolution via LR-Guided Noise Prediction](https://huggingface.co/papers/2603.21045)
17
+ - **GitHub Repository:** [Faze-Hsw/LPNSR](https://github.com/Faze-Hsw/LPNSR)
18
+
19
+ ## Introduction
20
+
21
+ 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:
22
+ - Replacing random Gaussian noise with an **LR-guided multi-input-aware noise predictor**, embedding structural priors into the reverse process.
23
+ - Mitigating initialization bias using a **high-quality pre-upsampling network** to optimize the diffusion starting point.
24
+ - Maintaining a compact 4-step sampling trajectory for high-quality, real-world super-resolution.
25
+
26
+ ## Features
27
+
28
+ - **Efficient Sampling**: Only 4 sampling steps required for high-quality super-resolution.
29
+ - **Noise Predictor**: Learns to predict optimal noise maps for partial diffusion initialization.
30
+ - **Real-world SR**: Designed to handle complex real-world degradations.
31
+ - **SwinIR Integration**: Optional SwinIR refinement for enhanced details.
32
+
33
+ ## Quick Start
34
+
35
+ To use these weights, clone the [official repository](https://github.com/Faze-Hsw/LPNSR) and follow the environment setup instructions.
36
+
37
+ ### Inference
38
+
39
+ Once the environment is set up and weights are placed in the `pretrained/` folder, run:
40
+
41
+ ```bash
42
+ python LPNSR/inference.py -i [image folder/image path] -o [output folder]
43
+ ```
44
+
45
+ ### Online Demo
46
+
47
+ You can also launch a local Gradio web interface:
48
+
49
+ ```bash
50
+ python LPNSR/app.py
51
+ ```
52
+
53
+ ## Citation
54
+
55
+ If you find this work useful, please cite:
56
+
57
+ ```bibtex
58
+ @article{lpnsr2026,
59
+ title={LPNSR: Prior-Enhanced Diffusion Image Super-Resolution via LR-Guided Noise Prediction},
60
+ author={[]},
61
+ journal={arXiv preprint arXiv:2603.21045},
62
+ year={2026}
63
+ }
64
+ ```
65
+
66
+ ## Acknowledgement
67
+
68
+ 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).