Skip to content

Commit

Permalink
fix(bop): Removes depth-only render flag as it cannot disable culling
Browse files Browse the repository at this point in the history
  • Loading branch information
cornerfarmer committed Oct 30, 2023
1 parent a7467a7 commit 978dc9f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions blenderproc/python/writer/BopWriterUtility.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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),
Expand Down

0 comments on commit 978dc9f

Please sign in to comment.