michaelj commited on
Commit
946d0a6
·
verified ·
1 Parent(s): ac7cfc6

, resolution=mc_resolution

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -45,7 +45,7 @@ def preprocess(input_image, do_remove_background, foreground_ratio):
45
  return image
46
  def generate(image, mc_resolution, formats=["obj", "glb"]):
47
  scene_codes = model(image, device=device)
48
- mesh = model.extract_mesh(scene_codes, resolution=mc_resolution)[0]
49
  mesh = to_gradio_3d_orientation(mesh)
50
  rv = []
51
  for format in formats:
@@ -89,7 +89,6 @@ with gr.Blocks(title="TripoSR") as demo:
89
  mc_resolution = gr.Slider(
90
  label="Marching Cubes Resolution",
91
  minimum=32,
92
- maximum=320,
93
  maximum=1024,
94
  value=256,
95
  step=32
 
45
  return image
46
  def generate(image, mc_resolution, formats=["obj", "glb"]):
47
  scene_codes = model(image, device=device)
48
+ mesh = model.extract_mesh(scene_codes, resolution=1024)[0]
49
  mesh = to_gradio_3d_orientation(mesh)
50
  rv = []
51
  for format in formats:
 
89
  mc_resolution = gr.Slider(
90
  label="Marching Cubes Resolution",
91
  minimum=32,
 
92
  maximum=1024,
93
  value=256,
94
  step=32