Spaces:
Running
Running
Commit
·
03e3baf
1
Parent(s):
8da8a89
Update app.py
Browse files
app.py
CHANGED
|
@@ -137,29 +137,6 @@ def ply_to_glb(ply_file, glb_file):
|
|
| 137 |
return glb_file
|
| 138 |
|
| 139 |
|
| 140 |
-
# def save_ply(pc, file_name, grid_size):
|
| 141 |
-
# set_state('Creating SDF model...')
|
| 142 |
-
# sdf_name = 'sdf'
|
| 143 |
-
# sdf_model = model_from_config(MODEL_CONFIGS[sdf_name], device)
|
| 144 |
-
# sdf_model.eval()
|
| 145 |
-
|
| 146 |
-
# set_state('Loading SDF model...')
|
| 147 |
-
# sdf_model.load_state_dict(load_checkpoint(sdf_name, device))
|
| 148 |
-
|
| 149 |
-
# # Produce a mesh (with vertex colors)
|
| 150 |
-
# mesh = marching_cubes_mesh(
|
| 151 |
-
# pc=pc,
|
| 152 |
-
# model=sdf_model,
|
| 153 |
-
# batch_size=4096,
|
| 154 |
-
# grid_size=grid_size, # increase to 128 for resolution used in evals
|
| 155 |
-
# progress=True,
|
| 156 |
-
# )
|
| 157 |
-
|
| 158 |
-
# # Write the mesh to a PLY file to import into some other program.
|
| 159 |
-
# with open(file_name, 'wb') as f:
|
| 160 |
-
# mesh.write_ply(f)
|
| 161 |
-
|
| 162 |
-
|
| 163 |
block = gr.Blocks().queue(max_size=250, concurrency_count=6)
|
| 164 |
with block:
|
| 165 |
with gr.Box():
|
|
|
|
| 137 |
return glb_file
|
| 138 |
|
| 139 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 140 |
block = gr.Blocks().queue(max_size=250, concurrency_count=6)
|
| 141 |
with block:
|
| 142 |
with gr.Box():
|