nev commited on
Commit
70daa10
1 Parent(s): 3d2dcbc

will this fix color?

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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), faces, tf)
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