diffusion_params.py 666 B

123456789101112131415161718192021
  1. import gradio as gr
  2. def diffusion_params():
  3. with gr.Accordion(label="Diffusion Parameters", open=False):
  4. iterations = gr.Slider(
  5. label="Diffusion Iterations", value=30, minimum=4, maximum=400, step=1
  6. )
  7. cond_free = gr.Checkbox(label="Cond Free", value=False)
  8. cond_free_k = gr.Slider(
  9. label="Cond Free K", value=2, minimum=0, maximum=10, step=1
  10. )
  11. diffusion_temperature = gr.Slider(
  12. label="Temperature",
  13. value=1.0,
  14. minimum=0.0,
  15. maximum=1.0,
  16. step=0.1,
  17. )
  18. return iterations, cond_free, cond_free_k, diffusion_temperature