bedead commited on
Commit
c5c426a
·
verified ·
1 Parent(s): 9f18fac

Upload folder using huggingface_hub

Browse files
Files changed (35) hide show
  1. .gradio/certificate.pem +31 -0
  2. app.py +6 -6
  3. ldm/__pycache__/inference_base.cpython-310.pyc +0 -0
  4. ldm/__pycache__/util.cpython-310.pyc +0 -0
  5. ldm/models/__pycache__/autoencoder.cpython-310.pyc +0 -0
  6. ldm/models/diffusion/__pycache__/__init__.cpython-310.pyc +0 -0
  7. ldm/models/diffusion/__pycache__/ddim.cpython-310.pyc +0 -0
  8. ldm/models/diffusion/__pycache__/ddpm.cpython-310.pyc +0 -0
  9. ldm/models/diffusion/__pycache__/plms.cpython-310.pyc +0 -0
  10. ldm/models/diffusion/ddpm.py +1 -1
  11. ldm/modules/__pycache__/attention.cpython-310.pyc +0 -0
  12. ldm/modules/__pycache__/ema.cpython-310.pyc +0 -0
  13. ldm/modules/diffusionmodules/__pycache__/__init__.cpython-310.pyc +0 -0
  14. ldm/modules/diffusionmodules/__pycache__/model.cpython-310.pyc +0 -0
  15. ldm/modules/diffusionmodules/__pycache__/openaimodel.cpython-310.pyc +0 -0
  16. ldm/modules/diffusionmodules/__pycache__/util.cpython-310.pyc +0 -0
  17. ldm/modules/distributions/__pycache__/__init__.cpython-310.pyc +0 -0
  18. ldm/modules/distributions/__pycache__/distributions.cpython-310.pyc +0 -0
  19. ldm/modules/encoders/__pycache__/__init__.cpython-310.pyc +0 -0
  20. ldm/modules/encoders/__pycache__/adapter.cpython-310.pyc +0 -0
  21. ldm/modules/encoders/__pycache__/modules.cpython-310.pyc +0 -0
  22. ldm/modules/extra_condition/__pycache__/__init__.cpython-310.pyc +0 -0
  23. ldm/modules/extra_condition/__pycache__/api.cpython-310.pyc +0 -0
  24. models/anything-v4.0.vae.pt +0 -0
  25. models/anything-v4.5-pruned.ckpt +0 -0
  26. models/body_pose_model.pth +3 -0
  27. models/coadapter-canny-sd15v1.pth +3 -0
  28. models/coadapter-color-sd15v1.pth +3 -0
  29. models/coadapter-depth-sd15v1.pth +3 -0
  30. models/coadapter-fuser-sd15v1.pth +3 -0
  31. models/coadapter-sketch-sd15v1.pth +3 -0
  32. models/coadapter-style-sd15v1.pth +3 -0
  33. models/table5_pidinet.pth +3 -0
  34. models/v1-5-pruned-emaonly.ckpt +3 -0
  35. requirements.txt +1 -1
.gradio/certificate.pem ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ -----BEGIN CERTIFICATE-----
2
+ MIIFazCCA1OgAwIBAgIRAIIQz7DSQONZRGPgu2OCiwAwDQYJKoZIhvcNAQELBQAw
3
+ TzELMAkGA1UEBhMCVVMxKTAnBgNVBAoTIEludGVybmV0IFNlY3VyaXR5IFJlc2Vh
4
+ cmNoIEdyb3VwMRUwEwYDVQQDEwxJU1JHIFJvb3QgWDEwHhcNMTUwNjA0MTEwNDM4
5
+ WhcNMzUwNjA0MTEwNDM4WjBPMQswCQYDVQQGEwJVUzEpMCcGA1UEChMgSW50ZXJu
6
+ ZXQgU2VjdXJpdHkgUmVzZWFyY2ggR3JvdXAxFTATBgNVBAMTDElTUkcgUm9vdCBY
7
+ MTCCAiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIBAK3oJHP0FDfzm54rVygc
8
+ h77ct984kIxuPOZXoHj3dcKi/vVqbvYATyjb3miGbESTtrFj/RQSa78f0uoxmyF+
9
+ 0TM8ukj13Xnfs7j/EvEhmkvBioZxaUpmZmyPfjxwv60pIgbz5MDmgK7iS4+3mX6U
10
+ A5/TR5d8mUgjU+g4rk8Kb4Mu0UlXjIB0ttov0DiNewNwIRt18jA8+o+u3dpjq+sW
11
+ T8KOEUt+zwvo/7V3LvSye0rgTBIlDHCNAymg4VMk7BPZ7hm/ELNKjD+Jo2FR3qyH
12
+ B5T0Y3HsLuJvW5iB4YlcNHlsdu87kGJ55tukmi8mxdAQ4Q7e2RCOFvu396j3x+UC
13
+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XM2w9U/t7y0Ff/9yi0GE44Za4rF2LN9d11TPA
29
+ mRGunUHBcnWEvgJBQl9nJEiU0Zsnvgc/ubhPgXRR4Xq37Z0j4r7g1SgEEzwxA57d
30
+ emyPxgcYxn/eR44/KJ4EBs+lVDR3veyJm+kXQ99b21/+jh5Xos1AnX5iItreGCc=
31
+ -----END CERTIFICATE-----
app.py CHANGED
@@ -208,7 +208,7 @@ with gr.Blocks(css='style.css') as demo:
208
 
209
  with gr.Row():
210
  for cond_name in supported_cond:
211
- with gr.Box():
212
  with gr.Column():
213
  if cond_name == 'style':
214
  btn1 = gr.Radio(
@@ -224,8 +224,8 @@ with gr.Blocks(css='style.css') as demo:
224
  interactive=True,
225
  value="Nothing",
226
  )
227
- im1 = gr.Image(source='upload', label="Image", interactive=True, visible=False, type="numpy")
228
- im2 = gr.Image(source='upload', label=cond_name, interactive=True, visible=False, type="numpy")
229
  cond_weight = gr.Slider(
230
  label="Condition weight", minimum=0, maximum=5, step=0.05, value=1, interactive=True)
231
 
@@ -254,11 +254,11 @@ with gr.Blocks(css='style.css') as demo:
254
 
255
  with gr.Row():
256
  submit = gr.Button("Generate")
257
- output = gr.Gallery().style(grid=2, height='auto')
258
- cond = gr.Gallery().style(grid=2, height='auto')
259
 
260
  inps = list(chain(btns, ims1, ims2, cond_weights))
261
  inps.extend([prompt, neg_prompt, scale, n_samples, seed, steps, resize_short_edge, cond_tau])
262
  submit.click(fn=run, inputs=inps, outputs=[output, cond])
263
  # demo.launch()
264
- demo.queue().launch(debug=True, server_name='0.0.0.0')
 
208
 
209
  with gr.Row():
210
  for cond_name in supported_cond:
211
+ with gr.Group():
212
  with gr.Column():
213
  if cond_name == 'style':
214
  btn1 = gr.Radio(
 
224
  interactive=True,
225
  value="Nothing",
226
  )
227
+ im1 = gr.Image(label="Image", interactive=True, visible=False, type="numpy")
228
+ im2 = gr.Image(label=cond_name, interactive=True, visible=False, type="numpy")
229
  cond_weight = gr.Slider(
230
  label="Condition weight", minimum=0, maximum=5, step=0.05, value=1, interactive=True)
231
 
 
254
 
255
  with gr.Row():
256
  submit = gr.Button("Generate")
257
+ output = gr.Gallery(rows=2, height='auto')
258
+ cond = gr.Gallery(rows=2, height='auto')
259
 
260
  inps = list(chain(btns, ims1, ims2, cond_weights))
261
  inps.extend([prompt, neg_prompt, scale, n_samples, seed, steps, resize_short_edge, cond_tau])
262
  submit.click(fn=run, inputs=inps, outputs=[output, cond])
263
  # demo.launch()
264
+ demo.launch(debug=True, share=True)
ldm/__pycache__/inference_base.cpython-310.pyc ADDED
Binary file (6.23 kB). View file
 
ldm/__pycache__/util.cpython-310.pyc ADDED
Binary file (6.2 kB). View file
 
ldm/models/__pycache__/autoencoder.cpython-310.pyc ADDED
Binary file (7.51 kB). View file
 
ldm/models/diffusion/__pycache__/__init__.cpython-310.pyc ADDED
Binary file (144 Bytes). View file
 
ldm/models/diffusion/__pycache__/ddim.cpython-310.pyc ADDED
Binary file (8.38 kB). View file
 
ldm/models/diffusion/__pycache__/ddpm.cpython-310.pyc ADDED
Binary file (39.3 kB). View file
 
ldm/models/diffusion/__pycache__/plms.cpython-310.pyc ADDED
Binary file (7.55 kB). View file
 
ldm/models/diffusion/ddpm.py CHANGED
@@ -17,7 +17,7 @@ from functools import partial
17
  import itertools
18
  from tqdm import tqdm
19
  from torchvision.utils import make_grid
20
- from pytorch_lightning.utilities.distributed import rank_zero_only
21
  from omegaconf import ListConfig
22
 
23
  from ldm.util import log_txt_as_img, exists, default, ismap, isimage, mean_flat, count_params, instantiate_from_config
 
17
  import itertools
18
  from tqdm import tqdm
19
  from torchvision.utils import make_grid
20
+ from pytorch_lightning.utilities.rank_zero import rank_zero_only
21
  from omegaconf import ListConfig
22
 
23
  from ldm.util import log_txt_as_img, exists, default, ismap, isimage, mean_flat, count_params, instantiate_from_config
ldm/modules/__pycache__/attention.cpython-310.pyc ADDED
Binary file (10.4 kB). View file
 
ldm/modules/__pycache__/ema.cpython-310.pyc ADDED
Binary file (3.18 kB). View file
 
ldm/modules/diffusionmodules/__pycache__/__init__.cpython-310.pyc ADDED
Binary file (152 Bytes). View file
 
ldm/modules/diffusionmodules/__pycache__/model.cpython-310.pyc ADDED
Binary file (20.8 kB). View file
 
ldm/modules/diffusionmodules/__pycache__/openaimodel.cpython-310.pyc ADDED
Binary file (20.9 kB). View file
 
ldm/modules/diffusionmodules/__pycache__/util.cpython-310.pyc ADDED
Binary file (9.68 kB). View file
 
ldm/modules/distributions/__pycache__/__init__.cpython-310.pyc ADDED
Binary file (149 Bytes). View file
 
ldm/modules/distributions/__pycache__/distributions.cpython-310.pyc ADDED
Binary file (3.75 kB). View file
 
ldm/modules/encoders/__pycache__/__init__.cpython-310.pyc ADDED
Binary file (144 Bytes). View file
 
ldm/modules/encoders/__pycache__/adapter.cpython-310.pyc ADDED
Binary file (11.4 kB). View file
 
ldm/modules/encoders/__pycache__/modules.cpython-310.pyc ADDED
Binary file (14.7 kB). View file
 
ldm/modules/extra_condition/__pycache__/__init__.cpython-310.pyc ADDED
Binary file (151 Bytes). View file
 
ldm/modules/extra_condition/__pycache__/api.cpython-310.pyc ADDED
Binary file (7.72 kB). View file
 
models/anything-v4.0.vae.pt ADDED
File without changes
models/anything-v4.5-pruned.ckpt ADDED
File without changes
models/body_pose_model.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:25a948c16078b0f08e236bda51a385d855ef4c153598947c28c0d47ed94bb746
3
+ size 209267595
models/coadapter-canny-sd15v1.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e1cfde9d744bfc5eb039d1244e0ab00e357c2af299ab6cf7c1c84fa7be516b56
3
+ size 308013107
models/coadapter-color-sd15v1.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:808ed3707d9a8d10c5661f2aedb04cb26e6ef7ec03329a5485ba1a132e0a2abf
3
+ size 74780341
models/coadapter-depth-sd15v1.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b442c20595a0a5c9b9de49ebff29fa5287336676fa5b926beda1d3ac762ff058
3
+ size 309487667
models/coadapter-fuser-sd15v1.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c7ac8db971fe8ed83f79c24561bc09d9f3628d6a62a3f6eddb1388f6dbb6ce7a
3
+ size 109157876
models/coadapter-sketch-sd15v1.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b8bb39ae315022519cc2671c196ac96db133a270bfdb8b39513582098e1968c7
3
+ size 308013107
models/coadapter-style-sd15v1.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a596e6d4a0ab3a94f07f0176ddec0e6dc90308241505d1c9f119fdcbef68fc42
3
+ size 154361575
models/table5_pidinet.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:80860ac267258b5f27486e0ef152a211d0b08120f62aeb185a050acc30da486c
3
+ size 2871148
models/v1-5-pruned-emaonly.ckpt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cc6cb27103417325ff94f52b7a5d2dde45a7515b25c255d8e396c90014281516
3
+ size 4265380512
requirements.txt CHANGED
@@ -16,4 +16,4 @@ webdataset
16
  open-clip-torch
17
  kornia
18
  safetensors
19
- timm
 
16
  open-clip-torch
17
  kornia
18
  safetensors
19
+ timm