Spaces:
Running
on
Zero
Running
on
Zero
update
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@ import PIL.Image
|
|
6 |
import numpy as np
|
7 |
from PIL import Image, ImageOps
|
8 |
import os
|
9 |
-
|
10 |
pipe = StableDiffusion3InstructPix2PixPipeline.from_pretrained("BleachNick/SD3_UltraEdit_w_mask", torch_dtype=torch.float16).to("cuda")
|
11 |
|
12 |
|
@@ -56,7 +56,7 @@ example_lists=[
|
|
56 |
|
57 |
[['UltraEdit/images/example_images/2-input.png','UltraEdit/images/example_images/2-mask.png','UltraEdit/images/example_images/2-merged.png'], "add cherry blossoms", 20, 1.5, 12.5,255],
|
58 |
|
59 |
-
[['UltraEdit/images/example_images/3-input.png','UltraEdit/images/example_images/3-mask.png','UltraEdit/images/example_images/3-merged.png'], "Please dress her in a short purple wedding dress adorned with white floral embroidery.", 20, 1.5,
|
60 |
|
61 |
[['UltraEdit/images/example_images/4-input.png','UltraEdit/images/example_images/4-mask.png','UltraEdit/images/example_images/4-merged.png'], "give her a chief's headdress.", 20, 1.5, 7.5, 24555]
|
62 |
|
@@ -143,7 +143,10 @@ demo = gr.Interface(
|
|
143 |
outputs=outputs,
|
144 |
description=article_html,
|
145 |
article=html,
|
146 |
-
examples=mask_ex_list
|
|
|
|
|
|
|
147 |
)
|
148 |
|
149 |
demo.queue().launch()
|
|
|
6 |
import numpy as np
|
7 |
from PIL import Image, ImageOps
|
8 |
import os
|
9 |
+
|
10 |
pipe = StableDiffusion3InstructPix2PixPipeline.from_pretrained("BleachNick/SD3_UltraEdit_w_mask", torch_dtype=torch.float16).to("cuda")
|
11 |
|
12 |
|
|
|
56 |
|
57 |
[['UltraEdit/images/example_images/2-input.png','UltraEdit/images/example_images/2-mask.png','UltraEdit/images/example_images/2-merged.png'], "add cherry blossoms", 20, 1.5, 12.5,255],
|
58 |
|
59 |
+
[['UltraEdit/images/example_images/3-input.png','UltraEdit/images/example_images/3-mask.png','UltraEdit/images/example_images/3-merged.png'], "Please dress her in a short purple wedding dress adorned with white floral embroidery.", 20, 1.5, 7.5,255],
|
60 |
|
61 |
[['UltraEdit/images/example_images/4-input.png','UltraEdit/images/example_images/4-mask.png','UltraEdit/images/example_images/4-merged.png'], "give her a chief's headdress.", 20, 1.5, 7.5, 24555]
|
62 |
|
|
|
143 |
outputs=outputs,
|
144 |
description=article_html,
|
145 |
article=html,
|
146 |
+
examples=mask_ex_list,
|
147 |
+
cache_examples = True,
|
148 |
+
live = False
|
149 |
+
|
150 |
)
|
151 |
|
152 |
demo.queue().launch()
|