Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -21,6 +21,11 @@ def process_mesh(mesh_file_name):
|
|
21 |
v = th.tensor(mesh.vertices, dtype=th.float)
|
22 |
n = th.tensor(mesh.vertex_normals, dtype=th.float)
|
23 |
|
|
|
|
|
|
|
|
|
|
|
24 |
with th.no_grad():
|
25 |
v, f, n, _ = model(v.unsqueeze(0), n.unsqueeze(0))
|
26 |
|
|
|
21 |
v = th.tensor(mesh.vertices, dtype=th.float)
|
22 |
n = th.tensor(mesh.vertex_normals, dtype=th.float)
|
23 |
|
24 |
+
v -= v.min()
|
25 |
+
v /= v.max()
|
26 |
+
v /= 1.2
|
27 |
+
v += 0.08
|
28 |
+
|
29 |
with th.no_grad():
|
30 |
v, f, n, _ = model(v.unsqueeze(0), n.unsqueeze(0))
|
31 |
|