Fabrice-TIERCELIN
commited on
Commit
•
0f0270d
1
Parent(s):
84dd386
10min
Browse files- gradio_demo.py +4 -4
gradio_demo.py
CHANGED
@@ -78,7 +78,7 @@ def check(input_image):
|
|
78 |
def reset_feedback():
|
79 |
return 3, ''
|
80 |
|
81 |
-
@spaces.GPU(duration=
|
82 |
def stage1_process(input_image, gamma_correction):
|
83 |
print('Start stage1_process')
|
84 |
if torch.cuda.device_count() == 0:
|
@@ -100,7 +100,7 @@ def stage1_process(input_image, gamma_correction):
|
|
100 |
print('End stage1_process')
|
101 |
return LQ, gr.update(visible = True)
|
102 |
|
103 |
-
@spaces.GPU(duration=
|
104 |
def llave_process(input_image, temperature, top_p, qs=None):
|
105 |
print('Start llave_process')
|
106 |
if torch.cuda.device_count() == 0:
|
@@ -116,7 +116,7 @@ def llave_process(input_image, temperature, top_p, qs=None):
|
|
116 |
print('End llave_process')
|
117 |
return captions[0]
|
118 |
|
119 |
-
@spaces.GPU(duration=
|
120 |
def stage2_process(
|
121 |
noisy_image,
|
122 |
denoise_image,
|
@@ -285,7 +285,7 @@ title_html = """
|
|
285 |
LlaVa is not integrated in this demo. The content added by SUPIR is imagination, not real-world information.
|
286 |
The aim of SUPIR is the beauty and the illustration.
|
287 |
Most of the processes only last few minutes.
|
288 |
-
This demo can handle huge images but the process will be aborted if it lasts more than
|
289 |
|
290 |
<p><center><a href="https://arxiv.org/abs/2401.13627">Paper</a>   <a href="http://supir.xpixel.group/">Project Page</a>   <a href="https://github.com/Fanghua-Yu/SUPIR/blob/master/assets/DemoGuide.png">How to play</a>   <a href="https://huggingface.co/blog/MonsterMMORPG/supir-sota-image-upscale-better-than-magnific-ai">Local Install Guide</a></center></p>
|
291 |
"""
|
|
|
78 |
def reset_feedback():
|
79 |
return 3, ''
|
80 |
|
81 |
+
@spaces.GPU(duration=600)
|
82 |
def stage1_process(input_image, gamma_correction):
|
83 |
print('Start stage1_process')
|
84 |
if torch.cuda.device_count() == 0:
|
|
|
100 |
print('End stage1_process')
|
101 |
return LQ, gr.update(visible = True)
|
102 |
|
103 |
+
@spaces.GPU(duration=600)
|
104 |
def llave_process(input_image, temperature, top_p, qs=None):
|
105 |
print('Start llave_process')
|
106 |
if torch.cuda.device_count() == 0:
|
|
|
116 |
print('End llave_process')
|
117 |
return captions[0]
|
118 |
|
119 |
+
@spaces.GPU(duration=600)
|
120 |
def stage2_process(
|
121 |
noisy_image,
|
122 |
denoise_image,
|
|
|
285 |
LlaVa is not integrated in this demo. The content added by SUPIR is imagination, not real-world information.
|
286 |
The aim of SUPIR is the beauty and the illustration.
|
287 |
Most of the processes only last few minutes.
|
288 |
+
This demo can handle huge images but the process will be aborted if it lasts more than 5min.
|
289 |
|
290 |
<p><center><a href="https://arxiv.org/abs/2401.13627">Paper</a>   <a href="http://supir.xpixel.group/">Project Page</a>   <a href="https://github.com/Fanghua-Yu/SUPIR/blob/master/assets/DemoGuide.png">How to play</a>   <a href="https://huggingface.co/blog/MonsterMMORPG/supir-sota-image-upscale-better-than-magnific-ai">Local Install Guide</a></center></p>
|
291 |
"""
|