ZYMPKU commited on
Commit
57a3501
1 Parent(s): 37a3bc2

Upload folder using huggingface_hub

Browse files
Files changed (33) hide show
  1. __pycache__/util.cpython-311.pyc +0 -0
  2. app.py +3 -2
  3. sgm/__pycache__/__init__.cpython-311.pyc +0 -0
  4. sgm/__pycache__/lr_scheduler.cpython-311.pyc +0 -0
  5. sgm/__pycache__/util.cpython-311.pyc +0 -0
  6. sgm/models/__pycache__/__init__.cpython-311.pyc +0 -0
  7. sgm/models/__pycache__/autoencoder.cpython-311.pyc +0 -0
  8. sgm/models/__pycache__/diffusion.cpython-311.pyc +0 -0
  9. sgm/modules/__pycache__/__init__.cpython-311.pyc +0 -0
  10. sgm/modules/__pycache__/attention.cpython-311.pyc +0 -0
  11. sgm/modules/__pycache__/ema.cpython-311.pyc +0 -0
  12. sgm/modules/autoencoding/__pycache__/__init__.cpython-311.pyc +0 -0
  13. sgm/modules/autoencoding/regularizers/__pycache__/__init__.cpython-311.pyc +0 -0
  14. sgm/modules/diffusionmodules/__pycache__/__init__.cpython-311.pyc +0 -0
  15. sgm/modules/diffusionmodules/__pycache__/denoiser.cpython-311.pyc +0 -0
  16. sgm/modules/diffusionmodules/__pycache__/denoiser_scaling.cpython-311.pyc +0 -0
  17. sgm/modules/diffusionmodules/__pycache__/denoiser_weighting.cpython-311.pyc +0 -0
  18. sgm/modules/diffusionmodules/__pycache__/discretizer.cpython-311.pyc +0 -0
  19. sgm/modules/diffusionmodules/__pycache__/guiders.cpython-311.pyc +0 -0
  20. sgm/modules/diffusionmodules/__pycache__/loss.cpython-311.pyc +0 -0
  21. sgm/modules/diffusionmodules/__pycache__/model.cpython-311.pyc +0 -0
  22. sgm/modules/diffusionmodules/__pycache__/openaimodel.cpython-311.pyc +0 -0
  23. sgm/modules/diffusionmodules/__pycache__/sampling.cpython-311.pyc +0 -0
  24. sgm/modules/diffusionmodules/__pycache__/sampling_utils.cpython-311.pyc +0 -0
  25. sgm/modules/diffusionmodules/__pycache__/sigma_sampling.cpython-311.pyc +0 -0
  26. sgm/modules/diffusionmodules/__pycache__/util.cpython-311.pyc +0 -0
  27. sgm/modules/diffusionmodules/__pycache__/wrappers.cpython-311.pyc +0 -0
  28. sgm/modules/distributions/__pycache__/__init__.cpython-311.pyc +0 -0
  29. sgm/modules/distributions/__pycache__/distributions.cpython-311.pyc +0 -0
  30. sgm/modules/encoders/__pycache__/__init__.cpython-311.pyc +0 -0
  31. sgm/modules/encoders/__pycache__/modules.cpython-311.pyc +0 -0
  32. sgm/modules/predictors/__pycache__/model.cpython-311.pyc +0 -0
  33. sgm/modules/predictors/__pycache__/model.cpython-38.pyc +0 -0
__pycache__/util.cpython-311.pyc ADDED
Binary file (3.01 kB). View file
 
app.py CHANGED
@@ -1,3 +1,4 @@
 
1
  import cv2
2
  import torch
3
  import os, glob
@@ -209,7 +210,7 @@ if __name__ == "__main__":
209
 
210
  num_samples = gr.Slider(label="Images", info="number of generated images, locked as 1", minimum=1, maximum=1, value=1, step=1)
211
  steps = gr.Slider(label="Steps", info ="denoising sampling steps", minimum=1, maximum=200, value=50, step=1)
212
- scale = gr.Slider(label="Guidance Scale", info="the scale of classifier-free guidance (CFG)", minimum=0.0, maximum=10.0, value=4.0, step=0.1)
213
  seed = gr.Slider(label="Seed", info="random seed for noise initialization", minimum=0, maximum=2147483647, step=1, randomize=True)
214
  show_detail = gr.Checkbox(label="Show Detail", info="show the additional visualization results", value=False)
215
 
@@ -241,4 +242,4 @@ if __name__ == "__main__":
241
 
242
  run_button.click(fn=demo_predict, inputs=[input_blk, text, num_samples, steps, scale, seed, show_detail], outputs=[gallery, attn_map, seg_map])
243
 
244
- block.launch()
 
1
+ # -- coding: utf-8 --**
2
  import cv2
3
  import torch
4
  import os, glob
 
210
 
211
  num_samples = gr.Slider(label="Images", info="number of generated images, locked as 1", minimum=1, maximum=1, value=1, step=1)
212
  steps = gr.Slider(label="Steps", info ="denoising sampling steps", minimum=1, maximum=200, value=50, step=1)
213
+ scale = gr.Slider(label="Guidance Scale", info="the scale of classifier-free guidance (CFG)", minimum=0.0, maximum=10.0, value=5.0, step=0.1)
214
  seed = gr.Slider(label="Seed", info="random seed for noise initialization", minimum=0, maximum=2147483647, step=1, randomize=True)
215
  show_detail = gr.Checkbox(label="Show Detail", info="show the additional visualization results", value=False)
216
 
 
242
 
243
  run_button.click(fn=demo_predict, inputs=[input_blk, text, num_samples, steps, scale, seed, show_detail], outputs=[gallery, attn_map, seg_map])
244
 
245
+ block.launch(share=True)
sgm/__pycache__/__init__.cpython-311.pyc ADDED
Binary file (314 Bytes). View file
 
sgm/__pycache__/lr_scheduler.cpython-311.pyc ADDED
Binary file (6.56 kB). View file
 
sgm/__pycache__/util.cpython-311.pyc ADDED
Binary file (13.5 kB). View file
 
sgm/models/__pycache__/__init__.cpython-311.pyc ADDED
Binary file (291 Bytes). View file
 
sgm/models/__pycache__/autoencoder.cpython-311.pyc ADDED
Binary file (20.2 kB). View file
 
sgm/models/__pycache__/diffusion.cpython-311.pyc ADDED
Binary file (20.2 kB). View file
 
sgm/modules/__pycache__/__init__.cpython-311.pyc ADDED
Binary file (388 Bytes). View file
 
sgm/modules/__pycache__/attention.cpython-311.pyc ADDED
Binary file (45.1 kB). View file
 
sgm/modules/__pycache__/ema.cpython-311.pyc ADDED
Binary file (5.82 kB). View file
 
sgm/modules/autoencoding/__pycache__/__init__.cpython-311.pyc ADDED
Binary file (172 Bytes). View file
 
sgm/modules/autoencoding/regularizers/__pycache__/__init__.cpython-311.pyc ADDED
Binary file (4.04 kB). View file
 
sgm/modules/diffusionmodules/__pycache__/__init__.cpython-311.pyc ADDED
Binary file (654 Bytes). View file
 
sgm/modules/diffusionmodules/__pycache__/denoiser.cpython-311.pyc ADDED
Binary file (4.24 kB). View file
 
sgm/modules/diffusionmodules/__pycache__/denoiser_scaling.cpython-311.pyc ADDED
Binary file (2.31 kB). View file
 
sgm/modules/diffusionmodules/__pycache__/denoiser_weighting.cpython-311.pyc ADDED
Binary file (2.2 kB). View file
 
sgm/modules/diffusionmodules/__pycache__/discretizer.cpython-311.pyc ADDED
Binary file (4.67 kB). View file
 
sgm/modules/diffusionmodules/__pycache__/guiders.cpython-311.pyc ADDED
Binary file (4.46 kB). View file
 
sgm/modules/diffusionmodules/__pycache__/loss.cpython-311.pyc ADDED
Binary file (12.9 kB). View file
 
sgm/modules/diffusionmodules/__pycache__/model.cpython-311.pyc ADDED
Binary file (34.7 kB). View file
 
sgm/modules/diffusionmodules/__pycache__/openaimodel.cpython-311.pyc ADDED
Binary file (64.3 kB). View file
 
sgm/modules/diffusionmodules/__pycache__/sampling.cpython-311.pyc ADDED
Binary file (40.6 kB). View file
 
sgm/modules/diffusionmodules/__pycache__/sampling_utils.cpython-311.pyc ADDED
Binary file (3.37 kB). View file
 
sgm/modules/diffusionmodules/__pycache__/sigma_sampling.cpython-311.pyc ADDED
Binary file (2.31 kB). View file
 
sgm/modules/diffusionmodules/__pycache__/util.cpython-311.pyc ADDED
Binary file (17.8 kB). View file
 
sgm/modules/diffusionmodules/__pycache__/wrappers.cpython-311.pyc ADDED
Binary file (2.76 kB). View file
 
sgm/modules/distributions/__pycache__/__init__.cpython-311.pyc ADDED
Binary file (173 Bytes). View file
 
sgm/modules/distributions/__pycache__/distributions.cpython-311.pyc ADDED
Binary file (6.24 kB). View file
 
sgm/modules/encoders/__pycache__/__init__.cpython-311.pyc ADDED
Binary file (168 Bytes). View file
 
sgm/modules/encoders/__pycache__/modules.cpython-311.pyc ADDED
Binary file (68.3 kB). View file
 
sgm/modules/predictors/__pycache__/model.cpython-311.pyc ADDED
Binary file (4.43 kB). View file
 
sgm/modules/predictors/__pycache__/model.cpython-38.pyc ADDED
Binary file (2.14 kB). View file