cavargas10 commited on
Commit
aa34c9c
verified
1 Parent(s): 140a713

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -176,8 +176,6 @@ def extract_gaussian(state: dict, req: gr.Request) -> Tuple[str, str]:
176
  torch.cuda.empty_cache()
177
  return gaussian_path, gaussian_path
178
 
179
- # Gradio Interface
180
- # Gradio Interface
181
  # Gradio Interface
182
  with gr.Blocks() as demo:
183
  gr.Markdown("""
@@ -228,6 +226,11 @@ with gr.Blocks() as demo:
228
  slat_guidance_strength = gr.Slider(0.0, 10.0, label="Guidance Strength", value=3.0, step=0.1)
229
  slat_sampling_steps = gr.Slider(1, 50, label="Sampling Steps", value=12, step=1)
230
 
 
 
 
 
 
231
  # Estado para almacenar la imagen generada temporalmente
232
  temp_image_state = gr.State()
233
  output_buf = gr.State()
@@ -282,6 +285,7 @@ with gr.Blocks() as demo:
282
  lambda: gr.Button(interactive=True),
283
  outputs=[download_gs],
284
  )
 
285
  # Initialize both pipelines
286
  if __name__ == "__main__":
287
  from diffusers import FluxTransformer2DModel, FluxPipeline, BitsAndBytesConfig, GGUFQuantizationConfig
 
176
  torch.cuda.empty_cache()
177
  return gaussian_path, gaussian_path
178
 
 
 
179
  # Gradio Interface
180
  with gr.Blocks() as demo:
181
  gr.Markdown("""
 
226
  slat_guidance_strength = gr.Slider(0.0, 10.0, label="Guidance Strength", value=3.0, step=0.1)
227
  slat_sampling_steps = gr.Slider(1, 50, label="Sampling Steps", value=12, step=1)
228
 
229
+ # Variables para la extracci贸n de GLB
230
+ with gr.Accordion("GLB Extraction Settings", open=False):
231
+ mesh_simplify = gr.Slider(0.9, 0.98, label="Simplify", value=0.95, step=0.01)
232
+ texture_size = gr.Slider(512, 2048, label="Texture Size", value=1024, step=512)
233
+
234
  # Estado para almacenar la imagen generada temporalmente
235
  temp_image_state = gr.State()
236
  output_buf = gr.State()
 
285
  lambda: gr.Button(interactive=True),
286
  outputs=[download_gs],
287
  )
288
+
289
  # Initialize both pipelines
290
  if __name__ == "__main__":
291
  from diffusers import FluxTransformer2DModel, FluxPipeline, BitsAndBytesConfig, GGUFQuantizationConfig