Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -175,7 +175,9 @@ def do_inference(input_3d, sample_seed=0, do_sampling=False, do_marching_cubes=F
|
|
| 175 |
# add time stamp to avoid cache
|
| 176 |
save_name = f"output_{int(time.time())}.obj"
|
| 177 |
artist_mesh.export(save_name)
|
| 178 |
-
|
|
|
|
|
|
|
| 179 |
|
| 180 |
|
| 181 |
_HEADER_ = '''
|
|
|
|
| 175 |
# add time stamp to avoid cache
|
| 176 |
save_name = f"output_{int(time.time())}.obj"
|
| 177 |
artist_mesh.export(save_name)
|
| 178 |
+
mesh.vertices = mesh.vertices[:, [0, 2, 1]]
|
| 179 |
+
artist_mesh.vertices = artist_mesh.vertices[:, [0, 2, 1]]
|
| 180 |
+
return input_save_name, mesh, save_name, artist_mesh
|
| 181 |
|
| 182 |
|
| 183 |
_HEADER_ = '''
|