Update app.py
Browse files
app.py
CHANGED
|
@@ -101,7 +101,7 @@ def generate_with_embs(text_embeddings, text_input, seed,num_inference_steps,gui
|
|
| 101 |
height = 512 # default height of Stable Diffusion
|
| 102 |
width = 512 # default width of Stable Diffusion
|
| 103 |
num_inference_steps = num_inference_steps # 10 # Number of denoising steps
|
| 104 |
-
guidance_scale =
|
| 105 |
generator = torch.manual_seed(seed) # Seed generator to create the inital latent noise
|
| 106 |
batch_size = 1
|
| 107 |
|
|
@@ -385,7 +385,7 @@ def generate_with_prompt_style_guidance(prompt, style, seed,num_inference_steps,
|
|
| 385 |
height = 512 # default height of Stable Diffusion
|
| 386 |
width = 512 # default width of Stable Diffusion
|
| 387 |
num_inference_steps = num_inference_steps # # Number of denoising steps
|
| 388 |
-
|
| 389 |
generator = torch.manual_seed(seed) # Seed generator to create the inital latent noise
|
| 390 |
batch_size = 1
|
| 391 |
|
|
|
|
| 101 |
height = 512 # default height of Stable Diffusion
|
| 102 |
width = 512 # default width of Stable Diffusion
|
| 103 |
num_inference_steps = num_inference_steps # 10 # Number of denoising steps
|
| 104 |
+
guidance_scale = 8 # Scale for classifier-free guidance
|
| 105 |
generator = torch.manual_seed(seed) # Seed generator to create the inital latent noise
|
| 106 |
batch_size = 1
|
| 107 |
|
|
|
|
| 385 |
height = 512 # default height of Stable Diffusion
|
| 386 |
width = 512 # default width of Stable Diffusion
|
| 387 |
num_inference_steps = num_inference_steps # # Number of denoising steps
|
| 388 |
+
guidance_scale = 8 # # Scale for classifier-free guidance
|
| 389 |
generator = torch.manual_seed(seed) # Seed generator to create the inital latent noise
|
| 390 |
batch_size = 1
|
| 391 |
|