-
Notifications
You must be signed in to change notification settings - Fork 6
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
issues about create_data #5
Comments
You should set
:D Since the released codes are only supporting pre-training on KITTI, data preparation is similar to standard mmdet3d. So, you can utilize the standard mmdet3d (correct version introduced in README.md) to run |
Thank you for your quick reply.
It seems no P0 key. And there are some different places compared with the mmdet3d one. How should I properly creat the data? |
Sorry that I missed your problems since I was busy recently. There is a problem with my last answer. You should set Actually, I recommend that you clone the mmdet3d and utilize the official codes to generate the KITTI dataset. You can directly link the mmdet3d-generated KITTI to the SimIPU repo. |
Got it. Thanks for your reply. |
But I encounter a problem when I attempt to conduct Camera-lidar fusion-based 3D object detection on kitti dataset. But there is a problem when loading data. Does it seem related to the data label? Could please help me? Original Traceback (most recent call last): |
Oh, this issue is caused by the key of Hence, if you create the Kitti dataset via the official mmdet3d codebase, I think you should run the |
Thanks a lot. I used the official mmdet3d to create the data label before. I'll follow your instruction to run the create_groundtruth_database function. |
Hi. I tried to run the create_groundtruth_database function. But it seems we go back to the previous problem: [ ] 0/3712, elapsed: 0s, ETA:Traceback (most recent call last): |
Let me explain why there are problems. We first conduct experiments on KITTI dataset, where the used images come from the second camera. So, when creating the KITTI, all PX should be P2 (utilize the camera parameters from the second camera). Later, we try to do experiments on Waymo, where the utilized images are in the front view, having a number of 0. Hence, we hack the codes to generate related data with P0. However, when I push the codes that only support KITTI, I forget to change the data-related codes to the KITTI version. So, you meet problems about |
Hi, thanks for your help. I successfully created the label after changing P0-->P2. Original Traceback (most recent call last): |
I will have a check from scratch ASAP and update this repo. Btw, that's the problem only for the Moca training (our downstream task on 3D detection). While the gt_sampler does not work, you can still run the SimIPU since our pre-training method does not need any gt information. |
Yeah, I've tried the pretraining code, which is totally ok. Thanks for your help. |
Hi @zhyever, I am running into the same error (KeyError: 'box2d_camera') for the downstream evaluation on Kitti dataset. Pretraining step does not have any issue. Let me know if there is an update. Thanks for the help! |
Hi, is there any new thing about solving the problem? |
Sorry for the late. Download the pkl and the zipped gt_database. Rename the pkl file to Then, run the training script again. |
Thanks a lot for your apply. It seems the data problem is solved. But there are still some problems while training. Traceback (most recent call last): |
I tried to pass the keyword argument |
Set this flag in your config file instead of passing it by the shell. You can add a line of |
Yes. It works! Many thanks for your help. |
Thanks @zhyever. The funetuning on kitti3d detection is resolved now. But there seems to be an error during the evaluation (after 30 epochs). Here is the log for the error.
|
That's something related to the build of mmdet3d (in this repo, SimIPU). Refer to Issue for more information. |
Hi, thanks for sharing your great work. I encounter some issues during creating data by running create_data.py
First
create reduced point cloud for training set
[ ] 0/3712, elapsed: 0s, ETA:Traceback (most recent call last):
File "tools/create_data.py", line 247, in
out_dir=args.out_dir)
File "tools/create_data.py", line 24, in kitti_data_prep
kitti.create_reduced_point_cloud(root_path, info_prefix)
File "/mnt/lustre/chenzhuo1/hzha/SimIPU/tools/data_converter/kitti_converter.py", line 374, in create_reduced_point_cloud
_create_reduced_point_cloud(data_path, train_info_path, save_path)
File "/mnt/lustre/chenzhuo1/hzha/SimIPU/tools/data_converter/kitti_converter.py", line 314, in _create_reduced_point_cloud
count=-1).reshape([-1, num_features])
ValueError: cannot reshape array of size 461536 into shape (6)
It seems to set the num_features=4 and front_camera_id=2?
in this line:
SimIPU/tools/data_converter/kitti_converter.py
Line 291 in 5b346e3
I assume doing this can solve the problem but encounter another problem when
Create GT Database of KittiDataset
[ ] 0/3712, elapsed: 0s, ETA:Traceback (most recent call last):
File "tools/create_data.py", line 247, in
out_dir=args.out_dir)
File "tools/create_data.py", line 44, in kitti_data_prep
with_bbox=True) # for moca
File "/mnt/lustre/chenzhuo1/hzha/SimIPU/tools/data_converter/create_gt_database.py", line 275, in create_groundtruth_database
P0 = np.array(example['P0']).reshape(4, 4)
KeyError: 'P0'
Can you help me figure out how to solve these issues?
The text was updated successfully, but these errors were encountered: