mukeshpandey2628 commited on
Commit
3885205
β€’
1 Parent(s): c208d03

Update run/gradio_ootd.py

Browse files
Files changed (1) hide show
  1. run/gradio_ootd.py +7 -7
run/gradio_ootd.py CHANGED
@@ -276,14 +276,14 @@ with block:
276
  result_gallery_dc = gr.Gallery(label='Output', show_label=False, elem_id="gallery", preview=True, scale=1)
277
  with gr.Column():
278
  run_button_dc = gr.Button(value="Run")
279
- # n_samples_dc = gr.Slider(label="Images", minimum=1, maximum=4, value=1, step=1)
280
- # n_steps_dc = gr.Slider(label="Steps", minimum=20, maximum=40, value=20, step=1)
281
- # # scale_dc = gr.Slider(label="Scale", minimum=1.0, maximum=12.0, value=5.0, step=0.1)
282
- # image_scale_dc = gr.Slider(label="Guidance scale", minimum=1.0, maximum=5.0, value=2.0, step=0.1)
283
- # seed_dc = gr.Slider(label="Seed", minimum=-1, maximum=2147483647, step=1, value=-1)
284
 
285
- ips_dc = [vton_img_dc, garm_img_dc, category_dc, 1, 20, 2.0, -1]
286
- run_button_dc.click(fn=process_dc, inputs=ips_dc, outputs=[result_gallery_dc])
287
 
288
 
289
  block.launch()
 
276
  result_gallery_dc = gr.Gallery(label='Output', show_label=False, elem_id="gallery", preview=True, scale=1)
277
  with gr.Column():
278
  run_button_dc = gr.Button(value="Run")
279
+ n_samples_dc = gr.Slider(label="Images", minimum=1, maximum=4, value=1, step=1)
280
+ n_steps_dc = gr.Slider(label="Steps", minimum=20, maximum=40, value=20, step=1)
281
+ # scale_dc = gr.Slider(label="Scale", minimum=1.0, maximum=12.0, value=5.0, step=0.1)
282
+ image_scale_dc = gr.Slider(label="Guidance scale", minimum=1.0, maximum=5.0, value=2.0, step=0.1)
283
+ seed_dc = gr.Slider(label="Seed", minimum=-1, maximum=2147483647, step=1, value=-1)
284
 
285
+ ips_dc = [vton_img_dc, garm_img_dc, category_dc, n_samples_dc, n_steps_dc, image_scale_dc, seed_dc]
286
+ run_button_dc.click(fn=process_dc, inputs=ips_dc, outputs=[result_gallery_dc])
287
 
288
 
289
  block.launch()