Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -13,7 +13,7 @@ clip_slider = CLIPSliderXL(pipe, device=torch.device("cuda"))
|
|
| 13 |
|
| 14 |
pipe_adapter = StableDiffusionXLPipeline.from_pretrained("sd-community/sdxl-flash").to("cuda", torch.float16)
|
| 15 |
pipe_adapter.scheduler = EulerDiscreteScheduler.from_config(pipe_adapter.scheduler.config)
|
| 16 |
-
|
| 17 |
# scale = 0.8
|
| 18 |
# pipe_adapter.set_ip_adapter_scale(scale)
|
| 19 |
|
|
@@ -139,7 +139,7 @@ with gr.Blocks(css=css) as demo:
|
|
| 139 |
output_image_a = gr.Image(elem_id="image_out")
|
| 140 |
|
| 141 |
with gr.Accordion(label="advanced options", open=False):
|
| 142 |
-
iterations_a = gr.Slider(label = "num iterations", minimum=0, value=
|
| 143 |
steps_a = gr.Slider(label = "num inference steps", minimum=1, value=8, maximum=30)
|
| 144 |
seed_a = gr.Slider(minimum=0, maximum=np.iinfo(np.int32).max, label="Seed", interactive=True, randomize=True)
|
| 145 |
|
|
|
|
| 13 |
|
| 14 |
pipe_adapter = StableDiffusionXLPipeline.from_pretrained("sd-community/sdxl-flash").to("cuda", torch.float16)
|
| 15 |
pipe_adapter.scheduler = EulerDiscreteScheduler.from_config(pipe_adapter.scheduler.config)
|
| 16 |
+
pipe_adapter.load_ip_adapter("h94/IP-Adapter", subfolder="sdxl_models", weight_name="ip-adapter_sdxl.bin")
|
| 17 |
# scale = 0.8
|
| 18 |
# pipe_adapter.set_ip_adapter_scale(scale)
|
| 19 |
|
|
|
|
| 139 |
output_image_a = gr.Image(elem_id="image_out")
|
| 140 |
|
| 141 |
with gr.Accordion(label="advanced options", open=False):
|
| 142 |
+
iterations_a = gr.Slider(label = "num iterations", minimum=0, value=200, maximum=300)
|
| 143 |
steps_a = gr.Slider(label = "num inference steps", minimum=1, value=8, maximum=30)
|
| 144 |
seed_a = gr.Slider(minimum=0, maximum=np.iinfo(np.int32).max, label="Seed", interactive=True, randomize=True)
|
| 145 |
|