Spaces:
mashroo
/
Running on Zero

YoussefAnso commited on
Commit
3112ed0
·
1 Parent(s): 1dfe52e

Update texture size parameter in vertex_color_to_uv_textured_glb function in inference.py from 768 to 640 for optimized performance.

Browse files
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=768):
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=640):
16
  mesh = trimesh.load(obj_path, process=False)
17
  vertex_colors = mesh.visual.vertex_colors[:, :3] # (N, 3), uint8
18
  # Generate UVs