open-mmlab / mmdetection3d

OpenMMLab's next-generation platform for general 3D object detection.
https://mmdetection3d.readthedocs.io/en/latest/
Apache License 2.0
5.2k stars 1.53k forks source link

[Docs] Training on custom datasets does not work? #2916

Open lennartoe opened 7 months ago

lennartoe commented 7 months ago

Branch

main branch https://mmdetection3d.readthedocs.io/en/latest/

📚 The doc issue

I followed the mmdetection3d guide on how to create custom datasets (https://github.com/open-mmlab/mmdetection3d/blob/dev-1.x/docs/en/advanced_guides/customize_dataset.md#data-converter) but got stuck on the following step in the Data Converter Section. The documentation says to run the following command: python tools/create_data.py custom --root-path ./data/custom --out-dir ./data/custom --extra-tag custom but when I execute the command i get the following error:

Traceback (most recent call last):
  File "create_data.py", line 380, in <module>
    raise NotImplementedError(f'Don\'t support {args.dataset} dataset.')
NotImplementedError: Don't support custom dataset.

What did I miss here? Or is the documentation incomplete? Im using the following versions: mmcv 2.0.1 https://github.com/open-mmlab/mmcv mmdet 3.1.0 https://github.com/open-mmlab/mmdetection mmdet3d 1.2.0 /home/ubuntu/mmdetection3d mmengine 0.9.1 https://github.com/open-mmlab/mmengine

I'm looking forward to hearing from you 😄

Suggest a potential alternative/fix

No response

MartinChristophTUD commented 6 months ago

Customized datasets arnt supported for tools/create_data.py script. Documentation should be adjusted

lennartoe commented 6 months ago

Customized datasets arnt supported for tools/create_data.py script. Documentation should be adjusted

Thanks for the clarification!

lennartoe commented 6 months ago

Customized datasets arnt supported for tools/create_data.py script. Documentation should be adjusted

Is there another intended way to generate training/validation information files for custom datasets?

VeeranjaneyuluToka commented 6 months ago

I have not tried create_data.py scritp to convert my custom dataset, rather i have adopted most of the nuscenes implementation and created train, validation .pkl files and feed to the network. Am able to train model with custom dataset.

Jane-QinJ commented 4 months ago

Customized datasets arnt supported for tools/create_data.py script. Documentation should be adjusted

Is there another intended way to generate training/validation information files for custom datasets?

I want to know either, now this tool shows the same question when I try to use only Lidar data.

lianghanfang commented 3 months ago

Customized datasets arnt supported for tools/create_data.py script. Documentation should be adjusted

Is there another intended way to generate training/validation information files for custom datasets?

I want to know either, now this tool shows the same question when I try to use only Lidar data.

I have the same qustion when I use only Lidar data, did you solve that? I don't know how to generate a pkl file...

lennartoe commented 2 months ago

The only way I could solve was to load the pkl files of e.g. the kitti dataset with from mmengine import load, dump data = load("train_info.pkl") and then recreate the pkl with information that is needed by the model you are using with mmengine.dump(dict, path)