Spaces:
Running
on
A10G
Running
on
A10G
patrickvonplaten
commited on
Commit
•
737d099
1
Parent(s):
5fb73b3
up
Browse files- __pycache__/app.cpython-310.pyc +0 -0
- app.py +18 -1
- imgs/02_HubertyBlog-1-1024x1024.jpg +3 -0
- imgs/0_oE0mLhfhtS_3Nfm2.png +3 -0
- imgs/Beautiful-Landscape-With-A-Sunset-HD-1024x1024.jpg +3 -0
- imgs/Multible-sharing-room_ccexpress-2-1024x1024.jpeg +3 -0
- imgs/Nature___Mountains_Big_Mountain_018453_31.jpg +3 -0
- imgs/The-Chatwal-Luxury-Collection-Hotel-New-York-Superior-Queen-Room-1024x1024.jpg +3 -0
- imgs/aaa (8).png +3 -0
- imgs/c4ca473acde04280d44128ad8ee09e8a.jpg +3 -0
- imgs/canam-electric-motorcycles-scaled.jpg +3 -0
- imgs/dg3vkex-54dcde0d-ff49-40a6-a217-80d1dbdb825f.jpg +3 -0
- imgs/download (1).jpeg +3 -0
- imgs/e8717ce80b394d1b9a610d04a1decd3a.jpeg +3 -0
- imgs/jdn_jacques_de_nuce-1024x1024.jpg +3 -0
__pycache__/app.cpython-310.pyc
CHANGED
Binary files a/__pycache__/app.cpython-310.pyc and b/__pycache__/app.cpython-310.pyc differ
|
|
app.py
CHANGED
@@ -5,7 +5,7 @@ from diffusers import AutoPipelineForInpainting, UNet2DConditionModel
|
|
5 |
import diffusers
|
6 |
from share_btn import community_icon_html, loading_icon_html, share_js
|
7 |
|
8 |
-
unet = UNet2DConditionModel.from_pretrained("valhalla/sdxl-inpaint-ema", torch_dtype=torch.float16)
|
9 |
pipe = AutoPipelineForInpainting.from_pretrained("stabilityai/stable-diffusion-xl-base-1.0", unet=unet, torch_dtype=torch.float16, variant="fp16").to("cuda")
|
10 |
|
11 |
def read_content(file_path: str) -> str:
|
@@ -111,6 +111,23 @@ with image_blocks as demo:
|
|
111 |
btn.click(fn=predict, inputs=[image, prompt, guidance_scale, steps, strength, scheduler], outputs=[image_out, community_icon, loading_icon, share_button])
|
112 |
share_button.click(None, [], [], _js=share_js)
|
113 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
114 |
gr.HTML(
|
115 |
"""
|
116 |
<div class="footer">
|
|
|
5 |
import diffusers
|
6 |
from share_btn import community_icon_html, loading_icon_html, share_js
|
7 |
|
8 |
+
unet = UNet2DConditionModel.from_pretrained("valhalla/sdxl-inpaint-ema", torch_dtype=torch.float16, revision="d5593e75323fa2a5285ebe02c1aba504a695bbf7") # 50k
|
9 |
pipe = AutoPipelineForInpainting.from_pretrained("stabilityai/stable-diffusion-xl-base-1.0", unet=unet, torch_dtype=torch.float16, variant="fp16").to("cuda")
|
10 |
|
11 |
def read_content(file_path: str) -> str:
|
|
|
111 |
btn.click(fn=predict, inputs=[image, prompt, guidance_scale, steps, strength, scheduler], outputs=[image_out, community_icon, loading_icon, share_button])
|
112 |
share_button.click(None, [], [], _js=share_js)
|
113 |
|
114 |
+
gr.Examples(
|
115 |
+
examples=[
|
116 |
+
["./imgs/aaa (8).png"],
|
117 |
+
["./imgs/download (1).jpeg"],
|
118 |
+
["./imgs/0_oE0mLhfhtS_3Nfm2.png"],
|
119 |
+
["./imgs/02_HubertyBlog-1-1024x1024.jpg"],
|
120 |
+
["./imgs/jdn_jacques_de_nuce-1024x1024.jpg"],
|
121 |
+
["./imgs/c4ca473acde04280d44128ad8ee09e8a.jpg"],
|
122 |
+
["./imgs/canam-electric-motorcycles-scaled.jpg"],
|
123 |
+
["./imgs/e8717ce80b394d1b9a610d04a1decd3a.jpeg"],
|
124 |
+
["./imgs/Nature___Mountains_Big_Mountain_018453_31.jpg"],
|
125 |
+
["./imgs/Multible-sharing-room_ccexpress-2-1024x1024.jpeg"],
|
126 |
+
],
|
127 |
+
fn=predict,
|
128 |
+
inputs=[image],
|
129 |
+
cache_examples=False,
|
130 |
+
)
|
131 |
gr.HTML(
|
132 |
"""
|
133 |
<div class="footer">
|
imgs/02_HubertyBlog-1-1024x1024.jpg
ADDED
Git LFS Details
|
imgs/0_oE0mLhfhtS_3Nfm2.png
ADDED
Git LFS Details
|
imgs/Beautiful-Landscape-With-A-Sunset-HD-1024x1024.jpg
ADDED
Git LFS Details
|
imgs/Multible-sharing-room_ccexpress-2-1024x1024.jpeg
ADDED
Git LFS Details
|
imgs/Nature___Mountains_Big_Mountain_018453_31.jpg
ADDED
Git LFS Details
|
imgs/The-Chatwal-Luxury-Collection-Hotel-New-York-Superior-Queen-Room-1024x1024.jpg
ADDED
Git LFS Details
|
imgs/aaa (8).png
ADDED
Git LFS Details
|
imgs/c4ca473acde04280d44128ad8ee09e8a.jpg
ADDED
Git LFS Details
|
imgs/canam-electric-motorcycles-scaled.jpg
ADDED
Git LFS Details
|
imgs/dg3vkex-54dcde0d-ff49-40a6-a217-80d1dbdb825f.jpg
ADDED
Git LFS Details
|
imgs/download (1).jpeg
ADDED
Git LFS Details
|
imgs/e8717ce80b394d1b9a610d04a1decd3a.jpeg
ADDED
Git LFS Details
|
imgs/jdn_jacques_de_nuce-1024x1024.jpg
ADDED
Git LFS Details
|