Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -276,49 +276,57 @@ def inference(image, upscale, dec_w, seed, model_type, ddpm_steps, colorfix_type
|
|
276 |
|
277 |
# Gradio UI
|
278 |
with gr.Blocks(title="Exploiting Diffusion Prior for Real-World Image Super-Resolution") as demo:
|
279 |
-
gr.
|
280 |
"""
|
281 |
-
<
|
282 |
-
|
283 |
-
|
|
|
|
|
|
|
284 |
"""
|
285 |
)
|
286 |
|
287 |
-
gr.
|
288 |
"""
|
289 |
-
|
290 |
-
|
291 |
-
|
292 |
-
|
293 |
-
|
294 |
-
|
295 |
-
|
296 |
-
|
297 |
-
|
298 |
-
|
299 |
-
|
300 |
-
|
301 |
-
|
302 |
-
|
303 |
-
|
304 |
-
|
305 |
-
|
306 |
-
|
307 |
-
|
308 |
-
|
309 |
-
|
310 |
-
|
311 |
-
|
312 |
-
|
313 |
-
|
314 |
-
|
315 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
316 |
</div>
|
317 |
-
|
318 |
-
<center><img src='https://visitor-badge.laobi.icu/badge?page_id=IceClear/StableSR' alt='visitors'></center>
|
319 |
"""
|
320 |
)
|
321 |
|
|
|
322 |
with gr.Row():
|
323 |
with gr.Column():
|
324 |
image = gr.Image(type="filepath", label="Input")
|
|
|
276 |
|
277 |
# Gradio UI
|
278 |
with gr.Blocks(title="Exploiting Diffusion Prior for Real-World Image Super-Resolution") as demo:
|
279 |
+
gr.HTML(
|
280 |
"""
|
281 |
+
<div style='text-align: center;'>
|
282 |
+
<img src='https://user-images.githubusercontent.com/22350795/236680126-0b1cdd62-d6fc-4620-b998-75ed6c31bf6f.png' style='height:40px' alt='StableSR logo'>
|
283 |
+
<h2>Exploiting Diffusion Prior for Real-World Image Super-Resolution</h2>
|
284 |
+
<p><strong>Official Gradio demo</strong> for <a href='https://github.com/IceClear/StableSR' target='_blank'>StableSR</a>.<br>
|
285 |
+
π₯ StableSR is a general image super-resolution algorithm for real-world and AIGC images.</p>
|
286 |
+
</div>
|
287 |
"""
|
288 |
)
|
289 |
|
290 |
+
gr.HTML(
|
291 |
"""
|
292 |
+
<div style="margin-top:1em">
|
293 |
+
<p>If StableSR is helpful, please help to β the <a href='https://github.com/IceClear/StableSR' target='_blank'>Github Repo</a>. Thanks!</p>
|
294 |
+
<a href='https://github.com/IceClear/StableSR' target='_blank'>
|
295 |
+
<img src='https://img.shields.io/github/stars/IceClear/StableSR?style=social'>
|
296 |
+
</a>
|
297 |
+
<hr>
|
298 |
+
<h4>Citation</h4>
|
299 |
+
<pre style="white-space: pre-wrap; background: #f7f7f7; padding: 1em; border-radius: 5px;">
|
300 |
+
@article{wang2024exploiting,
|
301 |
+
author = {Wang, Jianyi and Yue, Zongsheng and Zhou, Shangchen and Chan, Kelvin C.K. and Loy, Chen Change},
|
302 |
+
title = {Exploiting Diffusion Prior for Real-World Image Super-Resolution},
|
303 |
+
journal = {International Journal of Computer Vision},
|
304 |
+
year = {2024}
|
305 |
+
}
|
306 |
+
</pre>
|
307 |
+
<h4>License</h4>
|
308 |
+
<p>This project is licensed under <a rel="license" href="https://github.com/IceClear/StableSR/blob/main/LICENSE.txt">S-Lab License 1.0</a>. Redistribution and use for non-commercial purposes should follow this license.</p>
|
309 |
+
|
310 |
+
<h4>Contact</h4>
|
311 |
+
<p>If you have any questions, please feel free to reach out at <b>iceclearwjy@gmail.com</b>.</p>
|
312 |
+
|
313 |
+
<div style="margin-top:1em">
|
314 |
+
π€ Find Me:<br>
|
315 |
+
<a href="https://twitter.com/Iceclearwjy">
|
316 |
+
<img src="https://img.shields.io/twitter/follow/Iceclearwjy?label=%40Iceclearwjy&style=social" alt="Twitter Follow">
|
317 |
+
</a>
|
318 |
+
<a href="https://github.com/IceClear">
|
319 |
+
<img src="https://img.shields.io/github/followers/IceClear?style=social" alt="Github Follow">
|
320 |
+
</a>
|
321 |
+
</div>
|
322 |
+
<div style="text-align: center; margin-top:1em">
|
323 |
+
<img src='https://visitor-badge.laobi.icu/badge?page_id=IceClear/StableSR' alt='visitors'>
|
324 |
+
</div>
|
325 |
</div>
|
|
|
|
|
326 |
"""
|
327 |
)
|
328 |
|
329 |
+
|
330 |
with gr.Row():
|
331 |
with gr.Column():
|
332 |
image = gr.Image(type="filepath", label="Input")
|