Vvaann commited on
Commit
827fe3a
·
verified ·
1 Parent(s): 96af9f6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 = 7.5 # 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,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
- # guidance_scale = guidance_scale # # Scale for classifier-free guidance
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