Skip to content

Commit ec54931

Browse files
authored
Merge pull request #1086 from matteomastrogiuseppe/main
fix pools termination in BOP dataset generation
2 parents 3de5298 + e4b2eda commit ec54931

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

blenderproc/python/writer/BopWriterUtility.py

+4
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,10 @@ def write_bop(output_dir: str, target_objects: Optional[List[MeshObject]] = None
179179

180180
_BopWriterUtility.calc_gt_coco(chunk_dirs=chunk_dirs, dataset_objects=dataset_objects,
181181
starting_frame_id=starting_frame_id)
182+
183+
pool.close()
184+
pool.join()
185+
182186

183187

184188
def bop_pose_to_pyrender_coordinate_system(cam_R_m2c: np.ndarray, cam_t_m2c: np.ndarray) -> np.ndarray:

0 commit comments

Comments
 (0)