patrickvonplaten commited on
Commit
737d099
1 Parent(s): 5fb73b3
__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

  • SHA256: f598edc8701c5c0b0aadcf33bd336f2d3e6ea4f7bda39aad16f96011ca54765f
  • Pointer size: 131 Bytes
  • Size of remote file: 150 kB
imgs/0_oE0mLhfhtS_3Nfm2.png ADDED

Git LFS Details

  • SHA256: 59e1e5abb90414cd279dba183a180005e291fb99bdd050f7c8ebd592bdadfe80
  • Pointer size: 132 Bytes
  • Size of remote file: 1.56 MB
imgs/Beautiful-Landscape-With-A-Sunset-HD-1024x1024.jpg ADDED

Git LFS Details

  • SHA256: 55235b9573aa889ef9966e9cb88413c3883411d3df62e42c4acde66b41e95ba2
  • Pointer size: 131 Bytes
  • Size of remote file: 118 kB
imgs/Multible-sharing-room_ccexpress-2-1024x1024.jpeg ADDED

Git LFS Details

  • SHA256: 9edf6acce083f971fad6d3e3ea984faf9c71d02c2217d7b6ee04497e0ed0ca72
  • Pointer size: 131 Bytes
  • Size of remote file: 105 kB
imgs/Nature___Mountains_Big_Mountain_018453_31.jpg ADDED

Git LFS Details

  • SHA256: 5f1168fa0c96d8013155bb75d3c2bcd54c1e1f297bc09e43ca3e3a7d93d5627f
  • Pointer size: 131 Bytes
  • Size of remote file: 737 kB
imgs/The-Chatwal-Luxury-Collection-Hotel-New-York-Superior-Queen-Room-1024x1024.jpg ADDED

Git LFS Details

  • SHA256: 925a919f7668b900704535f89e0b76eddfeb0594d786a8b5f04eff70370cbaa5
  • Pointer size: 131 Bytes
  • Size of remote file: 119 kB
imgs/aaa (8).png ADDED

Git LFS Details

  • SHA256: ae20d6e5892f55d9a766392d457606de2456d0f7023c3779142c686f3cd574cc
  • Pointer size: 132 Bytes
  • Size of remote file: 1.15 MB
imgs/c4ca473acde04280d44128ad8ee09e8a.jpg ADDED

Git LFS Details

  • SHA256: 8e5bd923f5e2d0bc1eb0fc0ac8a6e01693871cb64490733d2e7046b46514f2ab
  • Pointer size: 130 Bytes
  • Size of remote file: 62 kB
imgs/canam-electric-motorcycles-scaled.jpg ADDED

Git LFS Details

  • SHA256: 1e4da2efe619bf63b9d0e7df805377b038d6c329b7c6f58039991f0e6d60ac2a
  • Pointer size: 130 Bytes
  • Size of remote file: 96.4 kB
imgs/dg3vkex-54dcde0d-ff49-40a6-a217-80d1dbdb825f.jpg ADDED

Git LFS Details

  • SHA256: f0a3a7474007c9fff7808238f318a8f6e14a309bc1ec5d49f05665196941c4ca
  • Pointer size: 131 Bytes
  • Size of remote file: 158 kB
imgs/download (1).jpeg ADDED

Git LFS Details

  • SHA256: d2f79fcb3572fa6df8564cadfa817fa03937d3a16f62fde83c7c7225f9ef232b
  • Pointer size: 130 Bytes
  • Size of remote file: 12 kB
imgs/e8717ce80b394d1b9a610d04a1decd3a.jpeg ADDED

Git LFS Details

  • SHA256: 518f3404ef5aec7ac7da679d1bc3f2bd2872b6250d1e29af00b34a1a3ce3adb2
  • Pointer size: 131 Bytes
  • Size of remote file: 235 kB
imgs/jdn_jacques_de_nuce-1024x1024.jpg ADDED

Git LFS Details

  • SHA256: d5b4054bd8cca11f248346fdf6b3561c549faf95a9e621783792e77bdd03b036
  • Pointer size: 131 Bytes
  • Size of remote file: 123 kB