diff --git a/apps/eval.py b/apps/eval.py index 5800ecd9f..9eb700a34 100755 --- a/apps/eval.py +++ b/apps/eval.py @@ -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: @@ -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) diff --git a/lib/sdf.py b/lib/sdf.py index e87e639eb..e13a8f488 100755 --- a/lib/sdf.py +++ b/lib/sdf.py @@ -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