Spaces:
Runtime error
Runtime error
app.py update
Browse files
app.py
CHANGED
@@ -930,21 +930,23 @@ with demo:
|
|
930 |
gr.HTML(
|
931 |
"""
|
932 |
<div style="text-align: center; max-width: 1200px; margin: 20px auto;">
|
933 |
-
<h1 style="font-weight: 900; font-size:
|
934 |
UniControl Stable Diffusion Demo
|
935 |
</h1>
|
936 |
<p style="font-size: 1rem; margin: 0rem">
|
937 |
Can Qin <sup>1,2</sup>, Shu Zhang<sup>1</sup>, Ning Yu <sup>1</sup>, Yihao Feng<sup>1</sup>, Xinyi Yang<sup>1</sup>, Yingbo Zhou <sup>1</sup>, Huan Wang <sup>1</sup>, Juan Carlos Niebles<sup>1</sup>, Caiming Xiong <sup>1</sup>, Silvio Savarese <sup>1</sup>, Stefano Ermon <sup>3</sup>, Yun Fu <sup>2</sup>, Ran Xu <sup>1</sup>
|
938 |
</p>
|
939 |
<p style="font-size: 0.8rem; margin: 0rem; line-height: 1em">
|
940 |
-
<sup>1</sup> Salesforce AI <sup>2</sup> Northeastern University <sup>3</sup> Stanford University
|
941 |
-
|
|
|
|
|
942 |
</p>
|
943 |
<p style="font-size: 0.9rem; margin: 0rem; line-height: 1.2em; margin-top:1em">
|
944 |
-
|
945 |
-
<a href="https://github.com/salesforce/UniControl">[Github]</a>
|
946 |
-
<a href="https://canqin001.github.io/UniControl-Page/">[Website]</a>
|
947 |
-
<a href="https://arxiv.org/abs/2305.11147">[arXiv]</a>
|
948 |
</p>
|
949 |
</div>
|
950 |
""")
|
@@ -1314,6 +1316,10 @@ with demo:
|
|
1314 |
ips = [input_image, prompt, a_prompt, n_prompt, num_samples, image_resolution, ddim_steps, guess_mode,
|
1315 |
strength, scale, seed, eta, ksize, condition_mode]
|
1316 |
run_button.click(fn=process_deblur, inputs=ips, outputs=[result_gallery])
|
|
|
|
|
|
|
|
|
1317 |
gr.Markdown('''### Related Spaces
|
1318 |
- https://huggingface.co/spaces/hysts/ControlNet
|
1319 |
- https://huggingface.co/spaces/shi-labs/Prompt-Free-Diffusion
|
|
|
930 |
gr.HTML(
|
931 |
"""
|
932 |
<div style="text-align: center; max-width: 1200px; margin: 20px auto;">
|
933 |
+
<h1 style="font-weight: 900; font-size: 2rem; margin: 0rem">
|
934 |
UniControl Stable Diffusion Demo
|
935 |
</h1>
|
936 |
<p style="font-size: 1rem; margin: 0rem">
|
937 |
Can Qin <sup>1,2</sup>, Shu Zhang<sup>1</sup>, Ning Yu <sup>1</sup>, Yihao Feng<sup>1</sup>, Xinyi Yang<sup>1</sup>, Yingbo Zhou <sup>1</sup>, Huan Wang <sup>1</sup>, Juan Carlos Niebles<sup>1</sup>, Caiming Xiong <sup>1</sup>, Silvio Savarese <sup>1</sup>, Stefano Ermon <sup>3</sup>, Yun Fu <sup>2</sup>, Ran Xu <sup>1</sup>
|
938 |
</p>
|
939 |
<p style="font-size: 0.8rem; margin: 0rem; line-height: 1em">
|
940 |
+
<sup>1</sup> Salesforce AI <sup>2</sup> Northeastern University <sup>3</sup> Stanford University
|
941 |
+
</p>
|
942 |
+
<p style="font-size: 0.8rem; margin: 0rem; line-height: 1em">
|
943 |
+
Work done when Can Qin was an intern at Salesforce AI Research.
|
944 |
</p>
|
945 |
<p style="font-size: 0.9rem; margin: 0rem; line-height: 1.2em; margin-top:1em">
|
946 |
+
<b> ONE model for AII the condition-to-image generation! </b>
|
947 |
+
<b><a href="https://github.com/salesforce/UniControl">[Github]</a></b>
|
948 |
+
<b><a href="https://canqin001.github.io/UniControl-Page/">[Website]</a></b>
|
949 |
+
<b><a href="https://arxiv.org/abs/2305.11147">[arXiv]</a></b>
|
950 |
</p>
|
951 |
</div>
|
952 |
""")
|
|
|
1316 |
ips = [input_image, prompt, a_prompt, n_prompt, num_samples, image_resolution, ddim_steps, guess_mode,
|
1317 |
strength, scale, seed, eta, ksize, condition_mode]
|
1318 |
run_button.click(fn=process_deblur, inputs=ips, outputs=[result_gallery])
|
1319 |
+
gr.Markdown('''### Tips
|
1320 |
+
- Please pay attention to <u> Condition Extraction </u> option.
|
1321 |
+
- Positive prompts and negative prompts are very useful sometimes.
|
1322 |
+
''')
|
1323 |
gr.Markdown('''### Related Spaces
|
1324 |
- https://huggingface.co/spaces/hysts/ControlNet
|
1325 |
- https://huggingface.co/spaces/shi-labs/Prompt-Free-Diffusion
|