n42 commited on
Commit
937a5c6
·
1 Parent(s): 071e791

increasing guidance scale range

Browse files
Files changed (2) hide show
  1. app.py +1 -1
  2. config.py +1 -1
app.py CHANGED
@@ -270,7 +270,7 @@ with gr.Blocks(analytics_enabled=False) as demo:
270
  with gr.Row():
271
  in_inference_steps = gr.Number(label="Inference steps", value=config.value["inference_steps"], info="Each step improves the final result but also results in higher computation")
272
  in_manual_seed = gr.Number(label="Manual seed", value=config.value["manual_seed"], info="Set this to -1 or leave it empty to randomly generate an image. A fixed value will result in a similar image for every run")
273
- in_guidance_scale = gr.Slider(minimum=0, maximum=1, step=0.01, label="Guidance Scale", value=config.value["guidance_scale"], info="A low guidance scale leads to a faster inference time, with the drawback that negative prompts don’t have any effect on the denoising process.")
274
  with gr.Row():
275
  gr.Markdown("**VAE** stands for Variational Autoencoders. An 'autoencoder' is an artificial neural network that is able to encode input data and decode to output data to bascially recreate the input. The VAE whereas adds a couple of additional layers of complexity to create new and unique output.")
276
  with gr.Row():
 
270
  with gr.Row():
271
  in_inference_steps = gr.Number(label="Inference steps", value=config.value["inference_steps"], info="Each step improves the final result but also results in higher computation")
272
  in_manual_seed = gr.Number(label="Manual seed", value=config.value["manual_seed"], info="Set this to -1 or leave it empty to randomly generate an image. A fixed value will result in a similar image for every run")
273
+ in_guidance_scale = gr.Slider(minimum=0, maximum=100, step=0.1, label="Guidance Scale", value=config.value["guidance_scale"], info="A low guidance scale leads to a faster inference time, with the drawback that negative prompts don’t have any effect on the denoising process.")
274
  with gr.Row():
275
  gr.Markdown("**VAE** stands for Variational Autoencoders. An 'autoencoder' is an artificial neural network that is able to encode input data and decode to output data to bascially recreate the input. The VAE whereas adds a couple of additional layers of complexity to create new and unique output.")
276
  with gr.Row():
config.py CHANGED
@@ -50,7 +50,7 @@ def get_initial_config():
50
  "enable_vae_tiling": "True",
51
  "manual_seed": 42,
52
  "inference_steps": 10,
53
- "guidance_scale": 0.5,
54
  "prompt": 'A white rabbit',
55
  "trigger_token": '',
56
  "negative_prompt": 'lowres, cropped, worst quality, low quality',
 
50
  "enable_vae_tiling": "True",
51
  "manual_seed": 42,
52
  "inference_steps": 10,
53
+ "guidance_scale": 5,
54
  "prompt": 'A white rabbit',
55
  "trigger_token": '',
56
  "negative_prompt": 'lowres, cropped, worst quality, low quality',