Spaces:
Running
on
T4
Running
on
T4
Merge branch 'main' of https://huggingface.co/spaces/marcosv/InstructIR into main
Browse files
app.py
CHANGED
@@ -85,16 +85,16 @@ def process_img (image, prompt):
|
|
85 |
|
86 |
|
87 |
title = "InstructIR βοΈπΌοΈ π€"
|
88 |
-
description = ''' ## [High-Quality Image Restoration Following Human Instructions](https://
|
89 |
|
90 |
-
[Marcos V. Conde](https://
|
91 |
|
92 |
-
Computer Vision Lab, University of Wuerzburg | Sony PlayStation, FTG
|
93 |
|
94 |
### TL;DR: quickstart
|
95 |
***InstructIR takes as input an image and a human-written instruction for how to improve that image.***
|
96 |
The (single) neural model performs all-in-one image restoration. InstructIR achieves state-of-the-art results on several restoration tasks including image denoising, deraining, deblurring, dehazing, and (low-light) image enhancement.
|
97 |
-
**π You can start with the [demo tutorial.](https://github.com/mv-lab/InstructIR/blob/main/demo.ipynb)** Check [our github](https://github.com/mv-lab/InstructIR) for more information
|
98 |
|
99 |
<details>
|
100 |
<summary> <b> Abstract</b> (click me to read)</summary>
|
@@ -109,10 +109,24 @@ You can also try general image enhancement prompts (e.g., "retouch this image",
|
|
109 |
|
110 |
**Datasets:** We use these datasets BSD100, BSD68, Urban100, WED, Rain100, Aobe MIT5K, LOL, GoPro, SOTS (haze). This demo expects an image with some degradations (blur, noise, rain, low-light, haze).
|
111 |
<br>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
112 |
'''
|
113 |
|
114 |
|
115 |
-
article =
|
|
|
|
|
|
|
|
|
116 |
|
117 |
#### Image,Prompts examples
|
118 |
examples = [['images/a4960.jpg', "my colors are too off, make it pop so I can use it in instagram"],
|
|
|
85 |
|
86 |
|
87 |
title = "InstructIR βοΈπΌοΈ π€"
|
88 |
+
description = ''' ## [High-Quality Image Restoration Following Human Instructions](https://arxiv.org/abs/2401.16468)
|
89 |
|
90 |
+
[Marcos V. Conde](https://mv-lab.github.io/), [Gregor Geigle](https://scholar.google.com/citations?user=uIlyqRwAAAAJ&hl=en), [Radu Timofte](https://scholar.google.com/citations?user=u3MwH5kAAAAJ&hl=en)
|
91 |
|
92 |
+
*Computer Vision Lab, University of Wuerzburg | Sony PlayStation, FTG*
|
93 |
|
94 |
### TL;DR: quickstart
|
95 |
***InstructIR takes as input an image and a human-written instruction for how to improve that image.***
|
96 |
The (single) neural model performs all-in-one image restoration. InstructIR achieves state-of-the-art results on several restoration tasks including image denoising, deraining, deblurring, dehazing, and (low-light) image enhancement.
|
97 |
+
**π You can start with the [demo tutorial.](https://github.com/mv-lab/InstructIR/blob/main/demo.ipynb)** Check **[our github](https://github.com/mv-lab/InstructIR)** for more information
|
98 |
|
99 |
<details>
|
100 |
<summary> <b> Abstract</b> (click me to read)</summary>
|
|
|
109 |
|
110 |
**Datasets:** We use these datasets BSD100, BSD68, Urban100, WED, Rain100, Aobe MIT5K, LOL, GoPro, SOTS (haze). This demo expects an image with some degradations (blur, noise, rain, low-light, haze).
|
111 |
<br>
|
112 |
+
|
113 |
+
<code>
|
114 |
+
@article{conde2024high,
|
115 |
+
title={High-Quality Image Restoration Following Human Instructions},
|
116 |
+
author={Conde, Marcos V and Geigle, Gregor and Timofte, Radu},
|
117 |
+
journal={arXiv preprint arXiv:2401.16468},
|
118 |
+
year={2024}
|
119 |
+
}
|
120 |
+
</code>
|
121 |
+
<br>
|
122 |
'''
|
123 |
|
124 |
|
125 |
+
article = '''
|
126 |
+
<p style='text-align: center'> Check our code, models and results at: <a href='https://github.com/mv-lab/InstructIR' target='_blank'>https://github.com/mv-lab/InstructIR</a></p>
|
127 |
+
<p style='text-align: center'> Read the full paper at: <a href='https://arxiv.org/abs/2401.16468' target='_blank'>High-Quality Image Restoration Following Human Instructions</a></p>
|
128 |
+
<p style='text-align: center'> Consider citing our work if you use it, or you find it insightful </p>
|
129 |
+
'''
|
130 |
|
131 |
#### Image,Prompts examples
|
132 |
examples = [['images/a4960.jpg', "my colors are too off, make it pop so I can use it in instagram"],
|