Upload folder using huggingface_hub
Browse files- __pycache__/util.cpython-311.pyc +0 -0
- app.py +3 -2
- sgm/__pycache__/__init__.cpython-311.pyc +0 -0
- sgm/__pycache__/lr_scheduler.cpython-311.pyc +0 -0
- sgm/__pycache__/util.cpython-311.pyc +0 -0
- sgm/models/__pycache__/__init__.cpython-311.pyc +0 -0
- sgm/models/__pycache__/autoencoder.cpython-311.pyc +0 -0
- sgm/models/__pycache__/diffusion.cpython-311.pyc +0 -0
- sgm/modules/__pycache__/__init__.cpython-311.pyc +0 -0
- sgm/modules/__pycache__/attention.cpython-311.pyc +0 -0
- sgm/modules/__pycache__/ema.cpython-311.pyc +0 -0
- sgm/modules/autoencoding/__pycache__/__init__.cpython-311.pyc +0 -0
- sgm/modules/autoencoding/regularizers/__pycache__/__init__.cpython-311.pyc +0 -0
- sgm/modules/diffusionmodules/__pycache__/__init__.cpython-311.pyc +0 -0
- sgm/modules/diffusionmodules/__pycache__/denoiser.cpython-311.pyc +0 -0
- sgm/modules/diffusionmodules/__pycache__/denoiser_scaling.cpython-311.pyc +0 -0
- sgm/modules/diffusionmodules/__pycache__/denoiser_weighting.cpython-311.pyc +0 -0
- sgm/modules/diffusionmodules/__pycache__/discretizer.cpython-311.pyc +0 -0
- sgm/modules/diffusionmodules/__pycache__/guiders.cpython-311.pyc +0 -0
- sgm/modules/diffusionmodules/__pycache__/loss.cpython-311.pyc +0 -0
- sgm/modules/diffusionmodules/__pycache__/model.cpython-311.pyc +0 -0
- sgm/modules/diffusionmodules/__pycache__/openaimodel.cpython-311.pyc +0 -0
- sgm/modules/diffusionmodules/__pycache__/sampling.cpython-311.pyc +0 -0
- sgm/modules/diffusionmodules/__pycache__/sampling_utils.cpython-311.pyc +0 -0
- sgm/modules/diffusionmodules/__pycache__/sigma_sampling.cpython-311.pyc +0 -0
- sgm/modules/diffusionmodules/__pycache__/util.cpython-311.pyc +0 -0
- sgm/modules/diffusionmodules/__pycache__/wrappers.cpython-311.pyc +0 -0
- sgm/modules/distributions/__pycache__/__init__.cpython-311.pyc +0 -0
- sgm/modules/distributions/__pycache__/distributions.cpython-311.pyc +0 -0
- sgm/modules/encoders/__pycache__/__init__.cpython-311.pyc +0 -0
- sgm/modules/encoders/__pycache__/modules.cpython-311.pyc +0 -0
- sgm/modules/predictors/__pycache__/model.cpython-311.pyc +0 -0
- 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=
|
| 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
|
|
|