Skip to content

Commit

Permalink
[Fix] Fix stuck in torch.einsum when create dataset (#2065)
Browse files Browse the repository at this point in the history
* Fix stuck in torch.einsum when create dataset

* Fix stuck in torch.einsum when create dataset

* Fix lint

* add comments

* Fix lint
  • Loading branch information
PeterH0323 authored Dec 2, 2022
1 parent 9abe207 commit 353985c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tools/create_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,11 @@ def waymo_data_prep(root_path,
if __name__ == '__main__':
from mmdet3d.utils import register_all_modules
register_all_modules()

# Set to spawn mode to avoid stuck when process dataset creating
import multiprocessing
multiprocessing.set_start_method('spawn')

if args.dataset == 'kitti':
kitti_data_prep(
root_path=args.root_path,
Expand Down

0 comments on commit 353985c

Please # to comment.