Spaces:
imados51
/
Build error

omyteq agency commited on
Commit
dbf83dd
·
verified ·
1 Parent(s): d82b3bc

Update run/gradio_ootd.py

Browse files
Files changed (1) hide show
  1. run/gradio_ootd.py +17 -9
run/gradio_ootd.py CHANGED
@@ -119,15 +119,23 @@ def process_dc(vton_img, garm_img, category, n_samples, n_steps, image_scale, se
119
 
120
  block = gr.Blocks().queue()
121
  with block:
122
- vton_img = gr.Image(label="Model", sources='upload', type="filepath", height=384, value=model_hd)
123
- garm_img = gr.Image(label="Garment", sources='upload', type="filepath", height=384, value=garment_hd)
124
- result_gallery = gr.Gallery(label='Output', show_label=False, elem_id="gallery", preview=True, scale=1)
125
- run_button = gr.Button(value="Run")
126
- n_samples = gr.Slider(label="Images", minimum=1, maximum=4, value=1, step=1)
127
- n_steps = gr.Slider(label="Steps", minimum=20, maximum=40, value=20, step=1)
128
- # scale = gr.Slider(label="Scale", minimum=1.0, maximum=12.0, value=5.0, step=0.1)
129
- image_scale = gr.Slider(label="Guidance scale", minimum=1.0, maximum=5.0, value=2.0, step=0.1)
130
- seed = gr.Slider(label="Seed", minimum=-1, maximum=2147483647, step=1, value=-1)
 
 
 
 
 
 
 
 
131
 
132
  ips = [vton_img, garm_img, n_samples, n_steps, image_scale, seed]
133
  run_button.click(fn=process_hd, inputs=ips, outputs=[result_gallery])
 
119
 
120
  block = gr.Blocks().queue()
121
  with block:
122
+
123
+ with gr.Row(visible=False):
124
+ with gr.Column():
125
+ vton_img = gr.Image(label="Model", sources='upload', type="filepath", height=384, value=model_hd)
126
+
127
+ with gr.Column(visible=False):
128
+ garm_img = gr.Image(label="Garment", sources='upload', type="filepath", height=384, value=garment_hd)
129
+
130
+ with gr.Column(visible=False):
131
+ result_gallery = gr.Gallery(label='Output', show_label=False, elem_id="gallery", preview=True, scale=1)
132
+ with gr.Column(visible=False):
133
+ run_button = gr.Button(value="Run")
134
+ n_samples = gr.Slider(label="Images", minimum=1, maximum=4, value=1, step=1)
135
+ n_steps = gr.Slider(label="Steps", minimum=20, maximum=40, value=20, step=1)
136
+ # scale = gr.Slider(label="Scale", minimum=1.0, maximum=12.0, value=5.0, step=0.1)
137
+ image_scale = gr.Slider(label="Guidance scale", minimum=1.0, maximum=5.0, value=2.0, step=0.1)
138
+ seed = gr.Slider(label="Seed", minimum=-1, maximum=2147483647, step=1, value=-1)
139
 
140
  ips = [vton_img, garm_img, n_samples, n_steps, image_scale, seed]
141
  run_button.click(fn=process_hd, inputs=ips, outputs=[result_gallery])