AP123 commited on
Commit
e468bc7
1 Parent(s): 9c7e38e

Update app.py to 8 steps and 1.2 LoRA weight as default

Browse files

Improve default settings for demo generation

Increased the number of inference steps from 4 to 8 and adjusted the default LoRA weight from 0.8 to 1.2. These changes yield better initial results, which should encourage adoption and further development by providing a stronger baseline for new users demoing LCMs for the first time!

Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -216,7 +216,7 @@ with gr.Blocks(css="custom.css") as demo:
216
  title = gr.HTML(
217
  """<h1><img src="https://i.imgur.com/vT48NAO.png" alt="LoRA"><small><small><i>Experimental</i></small></small>&nbsp;&nbsp;LCM LoRA the Explorer</h1>
218
  <br>
219
- Combine loading an <a href="#">LCM-LoRA</a> with your favorite SDXL LoRa and run LoRAs in only 4 steps. Check out <a href="#">our blog</a>on how this works. <b>Not all LoRAs may combine well with the LCM-LoRA</b>
220
  """,
221
  elem_id="title",
222
  )
@@ -253,8 +253,8 @@ with gr.Blocks(css="custom.css") as demo:
253
  )
254
  with gr.Accordion("Advanced options", open=False):
255
  negative = gr.Textbox(label="Negative Prompt", visible=False)
256
- weight = gr.Slider(0, 10, value=0.8, step=0.1, label="LoRA weight")
257
- steps = gr.Slider(0,8, value=4, step=1, label="Steps")
258
  with gr.Column(elem_id="extra_info"):
259
  with gr.Accordion(
260
  "Use it with: 🧨 diffusers, ComfyUI, Invoke AI, SD.Next, AUTO1111",
 
216
  title = gr.HTML(
217
  """<h1><img src="https://i.imgur.com/vT48NAO.png" alt="LoRA"><small><small><i>Experimental</i></small></small>&nbsp;&nbsp;LCM LoRA the Explorer</h1>
218
  <br>
219
+ Combine loading an <a href="#">LCM-LoRA</a> with your favorite SDXL LoRa and run LoRAs in only 8 steps. Check out <a href="#">our blog</a>on how this works. Try experimenting with step count and LoRA strength in advanced settings!<b>Not all LoRAs may combine well with the LCM-LoRA</b>
220
  """,
221
  elem_id="title",
222
  )
 
253
  )
254
  with gr.Accordion("Advanced options", open=False):
255
  negative = gr.Textbox(label="Negative Prompt", visible=False)
256
+ weight = gr.Slider(0, 10, value=1.2, step=0.1, label="LoRA weight")
257
+ steps = gr.Slider(0,8, value=8, step=1, label="Steps")
258
  with gr.Column(elem_id="extra_info"):
259
  with gr.Accordion(
260
  "Use it with: 🧨 diffusers, ComfyUI, Invoke AI, SD.Next, AUTO1111",