Spaces:
Running
on
Zero
Running
on
Zero
update
Browse files- app.py +3 -3
- ip_adapter/__pycache__/__init__.cpython-310.pyc +0 -0
- ip_adapter/__pycache__/attention_processor.cpython-310.pyc +0 -0
- ip_adapter/__pycache__/custom_pipelines.cpython-310.pyc +0 -0
- ip_adapter/__pycache__/ip_adapter.cpython-310.pyc +0 -0
- ip_adapter/__pycache__/resampler.cpython-310.pyc +0 -0
- ip_adapter/__pycache__/utils.cpython-310.pyc +0 -0
- omini_control/__pycache__/__init__.cpython-310.pyc +0 -0
- omini_control/__pycache__/block.cpython-310.pyc +0 -0
- omini_control/__pycache__/conceptrol.cpython-310.pyc +0 -0
- omini_control/__pycache__/condition.cpython-310.pyc +0 -0
- omini_control/__pycache__/flux_conceptrol_pipeline.cpython-310.pyc +0 -0
- omini_control/__pycache__/lora_controller.cpython-310.pyc +0 -0
- omini_control/__pycache__/transformer.cpython-310.pyc +0 -0
app.py
CHANGED
@@ -27,8 +27,8 @@ description = r"""
|
|
27 |
<b>Official π€ Gradio demo</b> for <a href='https://github.com/QY-H00/Conceptrol/tree/public' target='_blank'><b>Conceptrol: Concept Control of Zero-shot Personalized Image Generation</b></a>.<br>
|
28 |
How to use:<br>
|
29 |
1. Input text prompt, visual specification and the textual concept of the personalized target.
|
30 |
-
2. Choose your preferrd base model, the first time for switching might take
|
31 |
-
3. For each inference, SD-series takes about
|
32 |
4. Click the <b>Generate</b> button to enjoy! π
|
33 |
"""
|
34 |
|
@@ -187,7 +187,7 @@ def change_generate_button_fn(enable: int) -> gr.Button:
|
|
187 |
def dynamic_gallery_fn():
|
188 |
return gr.Image(label="Result", show_label=False)
|
189 |
|
190 |
-
@spaces.GPU
|
191 |
@torch.no_grad()
|
192 |
def generate(
|
193 |
prompt="a statue is reading the book in the cafe",
|
|
|
27 |
<b>Official π€ Gradio demo</b> for <a href='https://github.com/QY-H00/Conceptrol/tree/public' target='_blank'><b>Conceptrol: Concept Control of Zero-shot Personalized Image Generation</b></a>.<br>
|
28 |
How to use:<br>
|
29 |
1. Input text prompt, visual specification and the textual concept of the personalized target.
|
30 |
+
2. Choose your preferrd base model, the first time for switching might take longer time to download the model.
|
31 |
+
3. For each inference, SD-series takes about 20s, SDXL-series takes about 50s, FLUX takes about 100s.
|
32 |
4. Click the <b>Generate</b> button to enjoy! π
|
33 |
"""
|
34 |
|
|
|
187 |
def dynamic_gallery_fn():
|
188 |
return gr.Image(label="Result", show_label=False)
|
189 |
|
190 |
+
@spaces.GPU(duration=110)
|
191 |
@torch.no_grad()
|
192 |
def generate(
|
193 |
prompt="a statue is reading the book in the cafe",
|
ip_adapter/__pycache__/__init__.cpython-310.pyc
ADDED
Binary file (468 Bytes). View file
|
|
ip_adapter/__pycache__/attention_processor.cpython-310.pyc
ADDED
Binary file (14.2 kB). View file
|
|
ip_adapter/__pycache__/custom_pipelines.cpython-310.pyc
ADDED
Binary file (28.8 kB). View file
|
|
ip_adapter/__pycache__/ip_adapter.cpython-310.pyc
ADDED
Binary file (17.9 kB). View file
|
|
ip_adapter/__pycache__/resampler.cpython-310.pyc
ADDED
Binary file (5.6 kB). View file
|
|
ip_adapter/__pycache__/utils.cpython-310.pyc
ADDED
Binary file (3.65 kB). View file
|
|
omini_control/__pycache__/__init__.cpython-310.pyc
ADDED
Binary file (133 Bytes). View file
|
|
omini_control/__pycache__/block.cpython-310.pyc
ADDED
Binary file (6.13 kB). View file
|
|
omini_control/__pycache__/conceptrol.cpython-310.pyc
ADDED
Binary file (4.08 kB). View file
|
|
omini_control/__pycache__/condition.cpython-310.pyc
ADDED
Binary file (3.33 kB). View file
|
|
omini_control/__pycache__/flux_conceptrol_pipeline.cpython-310.pyc
ADDED
Binary file (7.53 kB). View file
|
|
omini_control/__pycache__/lora_controller.cpython-310.pyc
ADDED
Binary file (2.98 kB). View file
|
|
omini_control/__pycache__/transformer.cpython-310.pyc
ADDED
Binary file (5.1 kB). View file
|
|