Skip to content

Commit

Permalink
fix dir not found in test
Browse files Browse the repository at this point in the history
  • Loading branch information
lcp29 committed Jan 10, 2025
1 parent 637e270 commit a5f6252
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/performance_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ def gen_rays(cam_mat, w, h, f):
.broadcast_to(ray_dirs.shape)
)
model_path = os.path.dirname(os.path.abspath(__file__)) + '/models/iscv2.obj'
model_dir = os.path.dirname(os.path.abspath(__file__)) + '/models'
if not os.path.exists(model_dir):
os.makedirs(model_dir)
if not os.path.exists(model_path):
os.system(f'wget https://file.fomal.host/iscv2.obj -O {model_path}')
mesh = trimesh.load(model_path, force='mesh')
Expand Down

0 comments on commit a5f6252

Please sign in to comment.