Skip to content

Commit

Permalink
fix numpy error
Browse files Browse the repository at this point in the history
  • Loading branch information
minemisoe committed Apr 9, 2024
1 parent f0a9c99 commit 6acce5d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions apps/eval.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ def eval(self, data, use_octree=False):
if self.netC:
self.netC.eval()
save_path = '%s/%s/result_%s.obj' % (opt.results_path, opt.name, data['name'])
print('save path:',save_path)
if self.netC:
gen_mesh_color(opt, self.netG, self.netC, self.cuda, data, save_path, use_octree=use_octree)
else:
Expand All @@ -118,6 +119,7 @@ def eval(self, data, use_octree=False):
try:
print(image_path, mask_path)
data = evaluator.load_image(image_path, mask_path)
print('start eval')
evaluator.eval(data, True)
except Exception as e:
print("error:", e.args)
4 changes: 2 additions & 2 deletions lib/sdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ def eval_grid_octree(coords, eval_func,

sdf = np.zeros(resolution)

dirty = np.ones(resolution, dtype=np.bool)
grid_mask = np.zeros(resolution, dtype=np.bool)
dirty = np.ones(resolution, dtype=bool)
grid_mask = np.zeros(resolution, dtype=bool)

reso = resolution[0] // init_resolution

Expand Down

0 comments on commit 6acce5d

Please sign in to comment.