Update app.py
Browse files
app.py
CHANGED
@@ -59,12 +59,16 @@ MAX_SEED = np.iinfo(np.int32).max
|
|
59 |
|
60 |
### Description
|
61 |
title = r"""
|
62 |
-
<h1 align="center">OMG
|
63 |
"""
|
64 |
|
65 |
description = r"""
|
66 |
-
<b>Official 🤗 Gradio demo</b> for <a href='https://github.com/kongzhecn/OMG/' target='_blank'><b>OMG: Occlusion-friendly Personalized Multi-concept Generation In Diffusion Models</b></a>.<be
|
|
|
67 |
<a href='https://kongzhecn.github.io/omg-project/' target='_blank'><b>[Project]</b></a>.<a href='https://github.com/kongzhecn/OMG/' target='_blank'><b>[Code]</b></a>.<a href='https://arxiv.org/abs/2403.10983/' target='_blank'><b>[Arxiv]</b></a>.<br>
|
|
|
|
|
|
|
68 |
How to use:<br>
|
69 |
1. Select two characters.
|
70 |
2. Enter a text prompt as done in normal text-to-image models.
|
@@ -562,6 +566,7 @@ def main(device, segment_type):
|
|
562 |
inputs=[prompt, negative_prompt, man, woman, resolution, local_prompt1, local_prompt2, seed, condition, condition_img1, style],
|
563 |
outputs=[gallery, gen_condition]
|
564 |
)
|
|
|
565 |
demo.launch(share=True)
|
566 |
|
567 |
|
|
|
59 |
|
60 |
### Description
|
61 |
title = r"""
|
62 |
+
<h1 align="center"> OMG + LoRAs </h1>
|
63 |
"""
|
64 |
|
65 |
description = r"""
|
66 |
+
<b>Official 🤗 Gradio demo</b> for <a href='https://github.com/kongzhecn/OMG/' target='_blank'><b>OMG: Occlusion-friendly Personalized Multi-concept Generation In Diffusion Models</b></a>.<be><br>
|
67 |
+
<br>
|
68 |
<a href='https://kongzhecn.github.io/omg-project/' target='_blank'><b>[Project]</b></a>.<a href='https://github.com/kongzhecn/OMG/' target='_blank'><b>[Code]</b></a>.<a href='https://arxiv.org/abs/2403.10983/' target='_blank'><b>[Arxiv]</b></a>.<br>
|
69 |
+
<br>
|
70 |
+
❗️<b>Related demos<b>:<a href='https://huggingface.co/spaces/Fucius/OMG-InstantID/' target='_blank'><b> OMG + InstantID</b></a>❗️<br>
|
71 |
+
<br>
|
72 |
How to use:<br>
|
73 |
1. Select two characters.
|
74 |
2. Enter a text prompt as done in normal text-to-image models.
|
|
|
566 |
inputs=[prompt, negative_prompt, man, woman, resolution, local_prompt1, local_prompt2, seed, condition, condition_img1, style],
|
567 |
outputs=[gallery, gen_condition]
|
568 |
)
|
569 |
+
gr.Markdown(article)
|
570 |
demo.launch(share=True)
|
571 |
|
572 |
|