From 978dc9f372c411cebd821d2434566bbb71160966 Mon Sep 17 00:00:00 2001 From: Dominik Winkelbauer Date: Mon, 30 Oct 2023 18:08:58 +0100 Subject: [PATCH] fix(bop): Removes depth-only render flag as it cannot disable culling --- blenderproc/python/writer/BopWriterUtility.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/blenderproc/python/writer/BopWriterUtility.py b/blenderproc/python/writer/BopWriterUtility.py index ca81c42fc..14dc4e9cc 100644 --- a/blenderproc/python/writer/BopWriterUtility.py +++ b/blenderproc/python/writer/BopWriterUtility.py @@ -579,7 +579,7 @@ def _calc_gt_masks_iteration(annotation_scale: float, K: np.ndarray, delta: floa scene.add(dataset_objects[gt['obj_id']], pose=pose) # Render the depth image. - depth_gt = renderer.render(scene=scene, flags=pyrender.constants.RenderFlags.DEPTH_ONLY) + _, depth_gt = renderer.render(scene=scene) # Convert depth image to distance image. dist_gt = misc.depth_im_to_dist_im_fast(depth_gt, K) @@ -707,7 +707,7 @@ def _calc_gt_info_iteration(annotation_scale: float, ren_cy_offset: int, ren_cx_ scene.add(dataset_objects[gt['obj_id']], pose=pose) # render the depth image - depth_gt_large = renderer_large.render(scene=scene, flags=pyrender.constants.RenderFlags.DEPTH_ONLY) + _, depth_gt_large = renderer_large.render(scene=scene) depth_gt = depth_gt_large[ ren_cy_offset:(ren_cy_offset + im_height),