Spaces:
Sleeping
Sleeping
Carlos Vargas R
commited on
Commit
·
61b7436
1
Parent(s):
cd3a662
Cambios Texto
Browse files
app.py
CHANGED
@@ -198,7 +198,7 @@ model = model.to(device)
|
|
198 |
# pipe.scheduler = LCMScheduler.from_config(
|
199 |
# pipe.scheduler.config, timestep_spacing="trailing")
|
200 |
|
201 |
-
print('
|
202 |
|
203 |
# Gradio UI
|
204 |
with gr.Blocks() as demo:
|
@@ -221,21 +221,21 @@ with gr.Blocks() as demo:
|
|
221 |
with gr.Row():
|
222 |
with gr.Group():
|
223 |
do_remove_background = gr.Checkbox(
|
224 |
-
label="
|
225 |
sample_seed = gr.Number(
|
226 |
-
value=42, label="
|
227 |
sample_steps = gr.Slider(
|
228 |
-
label="
|
229 |
|
230 |
with gr.Row():
|
231 |
submit = gr.Button(
|
232 |
-
"
|
233 |
|
234 |
with gr.Column():
|
235 |
with gr.Row():
|
236 |
with gr.Column():
|
237 |
mv_show_images = gr.Image(
|
238 |
-
label="
|
239 |
type="pil",
|
240 |
width=379,
|
241 |
interactive=False
|
@@ -244,12 +244,12 @@ with gr.Blocks() as demo:
|
|
244 |
with gr.Row():
|
245 |
with gr.Tab("OBJ"):
|
246 |
output_model_obj = gr.Model3D(
|
247 |
-
label="
|
248 |
interactive=False,
|
249 |
)
|
250 |
with gr.Tab("GLB"):
|
251 |
output_model_glb = gr.Model3D(
|
252 |
-
label="
|
253 |
interactive=False,
|
254 |
)
|
255 |
|
|
|
198 |
# pipe.scheduler = LCMScheduler.from_config(
|
199 |
# pipe.scheduler.config, timestep_spacing="trailing")
|
200 |
|
201 |
+
print('Carga Completa!')
|
202 |
|
203 |
# Gradio UI
|
204 |
with gr.Blocks() as demo:
|
|
|
221 |
with gr.Row():
|
222 |
with gr.Group():
|
223 |
do_remove_background = gr.Checkbox(
|
224 |
+
label="Quitar Fondo", value=True)
|
225 |
sample_seed = gr.Number(
|
226 |
+
value=42, label="Valor de la semilla", precision=0)
|
227 |
sample_steps = gr.Slider(
|
228 |
+
label="Pasos de muestreo", minimum=30, maximum=75, value=75, step=5)
|
229 |
|
230 |
with gr.Row():
|
231 |
submit = gr.Button(
|
232 |
+
"Generar", elem_id="generate", variant="primary")
|
233 |
|
234 |
with gr.Column():
|
235 |
with gr.Row():
|
236 |
with gr.Column():
|
237 |
mv_show_images = gr.Image(
|
238 |
+
label="Generar Multi-vistas",
|
239 |
type="pil",
|
240 |
width=379,
|
241 |
interactive=False
|
|
|
244 |
with gr.Row():
|
245 |
with gr.Tab("OBJ"):
|
246 |
output_model_obj = gr.Model3D(
|
247 |
+
label="(Formato OBJ)",
|
248 |
interactive=False,
|
249 |
)
|
250 |
with gr.Tab("GLB"):
|
251 |
output_model_glb = gr.Model3D(
|
252 |
+
label="(Formato GLB)",
|
253 |
interactive=False,
|
254 |
)
|
255 |
|