Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于多卡训练!!! #31

Open
Karkers opened this issue May 4, 2024 · 4 comments
Open

关于多卡训练!!! #31

Karkers opened this issue May 4, 2024 · 4 comments

Comments

@Karkers
Copy link

Karkers commented May 4, 2024

大佬你好,在我的设备上pcdet0.3版本似乎不能进行多卡训练,运行script文件后就没有响应了,但是最新版本的pcdet能够进行多卡训练,我的设备是8*3090!请问你遇到过这个问题吗!

@yu-tnt
Copy link

yu-tnt commented May 9, 2024

/pcdet/utils/common_utils.py中的init_dist_pytorch函数初始的过程注释掉一部分参数。如下:
dist.init_process_group(
backend=backend,
# init_method='tcp://127.0.0.1:%d' % tcp_port,
# rank=local_rank,
# world_size=num_gpus
)

@Karkers
Copy link
Author

Karkers commented May 11, 2024

非常感谢,成功运行了!!!

@DietCoke5
Copy link

2024-10-10 21:24:50,763 INFO Start training kitti_models/CasA-V(default)
epochs: 0%| | 0/80 [00:00<?, ?it/s]
Traceback (most recent call last): | 0/1856 [00:00<?, ?it/s]
File "train.py", line 197, in
main()
File "train.py", line 169, in main
merge_all_iters_to_one_epoch=args.merge_all_iters_to_one_epoch
File "/home/ly/test/CasA-master/CasA-master/tools/train_utils/train_utils.py", line 101, in train_model
dataloader_iter=dataloader_iter
File "/home/ly/test/CasA-master/CasA-master/tools/train_utils/train_utils.py", line 25, in train_one_epoch
batch = next(dataloader_iter)
File "/home/ly/anaconda3/envs/casa/lib/python3.6/site-packages/prefetch_generator/init.py", line 116, in next
raise next_item
File "/home/ly/anaconda3/envs/casa/lib/python3.6/site-packages/prefetch_generator/init.py", line 98, in run
for item in self.generator: self.queue.put((True , item))
File "/home/ly/anaconda3/envs/casa/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 521, in next
data = self._next_data()
File "/home/ly/anaconda3/envs/casa/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 561, in _next_data
data = self._dataset_fetcher.fetch(index) # may raise StopIteration
File "/home/ly/anaconda3/envs/casa/lib/python3.6/site-packages/torch/utils/data/_utils/fetch.py", line 49, in fetch
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/home/ly/anaconda3/envs/casa/lib/python3.6/site-packages/torch/utils/data/_utils/fetch.py", line 49, in
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/home/ly/test/CasA-master/CasA-master/pcdet/datasets/kitti/kitti_dataset.py", line 388, in getitem
data_dict = self.prepare_data(data_dict=input_dict)
File "/home/ly/test/CasA-master/CasA-master/pcdet/datasets/dataset.py", line 140, in prepare_data
**data_dict,
File "/home/ly/test/CasA-master/CasA-master/pcdet/datasets/augmentor/data_augmentor.py", line 182, in forward
data_dict = cur_augmentor(data_dict=data_dict)
File "/home/ly/test/CasA-master/CasA-master/pcdet/datasets/augmentor/database_sampler.py", line 417, in call
data_dict = self.add_sampled_boxes_to_scene(data_dict, sampled_gt_boxes, total_valid_sampled_dict)
File "/home/ly/test/CasA-master/CasA-master/pcdet/datasets/augmentor/database_sampler.py", line 334, in add_sampled_boxes_to_scene
sampled_gt_boxes, data_dict['road_plane'], data_dict['calib']
KeyError: 'road_plane'这个问题应该如何解决 感谢

/pcdet/utils/common_utils.py中的init_dist_pytorch函数初始的过程注释掉一部分参数。如下: dist.init_process_group( backend=backend, # init_method='tcp://127.0.0.1:%d' % tcp_port, # rank=local_rank, # world_size=num_gpus )

@Karkers
Copy link
Author

Karkers commented Oct 12, 2024

这个问题我没遇到过,可能是road_plane数据集的问题?或者是yaml里边 USE_RODEPLAN那个?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants