Save the normals
Browse files- app.py +1 -1
- sf3d/system.py +0 -1
app.py
CHANGED
@@ -55,7 +55,7 @@ def run_model(input_image):
|
|
55 |
# Create new tmp file
|
56 |
tmp_file = tempfile.NamedTemporaryFile(delete=False, suffix=".glb")
|
57 |
|
58 |
-
trimesh_mesh.export(tmp_file.name, file_type="glb")
|
59 |
|
60 |
print("Generation took:", time.time() - start, "s")
|
61 |
|
|
|
55 |
# Create new tmp file
|
56 |
tmp_file = tempfile.NamedTemporaryFile(delete=False, suffix=".glb")
|
57 |
|
58 |
+
trimesh_mesh.export(tmp_file.name, file_type="glb", include_normals=True)
|
59 |
|
60 |
print("Generation took:", time.time() - start, "s")
|
61 |
|
sf3d/system.py
CHANGED
@@ -395,7 +395,6 @@ class SF3D(BaseModule):
|
|
395 |
),
|
396 |
-1,
|
397 |
)
|
398 |
-
bump[..., :2] *= 0.5
|
399 |
bump = (bump * 0.5 + 0.5).clamp(0, 1)
|
400 |
|
401 |
f[bake_mask] = bump.view(-1, 3)
|
|
|
395 |
),
|
396 |
-1,
|
397 |
)
|
|
|
398 |
bump = (bump * 0.5 + 0.5).clamp(0, 1)
|
399 |
|
400 |
f[bake_mask] = bump.view(-1, 3)
|