weathon commited on
Commit
e516d68
·
1 Parent(s): ac32050
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -202,13 +202,15 @@ with gr.Blocks(title="Value Sign Flip SD3.5 Demo") as demo:
202
  abstract_sample.click(fn=load_abstract_prompt, inputs=[], outputs=[pos, neg])
203
 
204
 
 
 
 
 
205
  with gr.Row():
206
  gr.Markdown("## VSF Generation Parameters")
207
  guidance = gr.Slider(0, 5, step=0.1, label="Guidance Scale", value=3.0)
208
  bias = gr.Slider(0, 0.5, step=0.01, label="Bias", value=0.1)
209
  step = gr.Slider(4, 15, step=1, label="Step", value=6)
210
- seed = gr.Number(label="Seed", value=0, precision=0)
211
- randomize_seed = gr.Button("Randomize Seed")
212
  randomize_seed.click(fn=lambda : np.random.randint(0, 1000000), inputs=[], outputs=[seed])
213
  set_strong_vsf = gr.Button("Strong")
214
  set_strong_vsf.click(fn=lambda : (3.8, 0.2), inputs=[], outputs=[guidance, bias])
 
202
  abstract_sample.click(fn=load_abstract_prompt, inputs=[], outputs=[pos, neg])
203
 
204
 
205
+ with gr.Row():
206
+ seed = gr.Number(label="Seed", value=0, precision=0)
207
+ randomize_seed = gr.Button("Randomize Seed")
208
+
209
  with gr.Row():
210
  gr.Markdown("## VSF Generation Parameters")
211
  guidance = gr.Slider(0, 5, step=0.1, label="Guidance Scale", value=3.0)
212
  bias = gr.Slider(0, 0.5, step=0.01, label="Bias", value=0.1)
213
  step = gr.Slider(4, 15, step=1, label="Step", value=6)
 
 
214
  randomize_seed.click(fn=lambda : np.random.randint(0, 1000000), inputs=[], outputs=[seed])
215
  set_strong_vsf = gr.Button("Strong")
216
  set_strong_vsf.click(fn=lambda : (3.8, 0.2), inputs=[], outputs=[guidance, bias])