will this fix color?
Browse files
app.py
CHANGED
@@ -40,7 +40,7 @@ def get_depth(rgb):
|
|
40 |
|
41 |
print("Writing...")
|
42 |
tf = tempfile.NamedTemporaryFile(suffix=".obj").name
|
43 |
-
save_obj(positions, np.asarray(rgb).reshape(-1, 3)
|
44 |
|
45 |
return rgb, (depth.clip(0, 64) * 1024).astype("uint16"), tf
|
46 |
|
|
|
40 |
|
41 |
print("Writing...")
|
42 |
tf = tempfile.NamedTemporaryFile(suffix=".obj").name
|
43 |
+
save_obj(positions, np.asarray(rgb).reshape(-1, 3) / 255., faces, tf)
|
44 |
|
45 |
return rgb, (depth.clip(0, 64) * 1024).astype("uint16"), tf
|
46 |
|