Spaces:
mashroo
/
Runtime error

YoussefAnso commited on
Commit
9bb78c9
·
1 Parent(s): 1dfd90b
Files changed (1) hide show
  1. inference.py +1 -1
inference.py CHANGED
@@ -12,7 +12,7 @@ import xatlas
12
  import cv2
13
  from PIL import Image, ImageFilter
14
 
15
- def vertex_color_to_uv_textured_glb(obj_path, glb_path, texture_size=640):
16
  mesh = trimesh.load(obj_path, process=False)
17
  vertex_colors = mesh.visual.vertex_colors[:, :3] # (N, 3), uint8
18
  # Generate UVs
 
12
  import cv2
13
  from PIL import Image, ImageFilter
14
 
15
+ def vertex_color_to_uv_textured_glb(obj_path, glb_path, texture_size=512):
16
  mesh = trimesh.load(obj_path, process=False)
17
  vertex_colors = mesh.visual.vertex_colors[:, :3] # (N, 3), uint8
18
  # Generate UVs