Open kbratsy opened 1 year ago
If you want to customize your dataset, you should add your preprocess code and modify the choices of argument dataset
If you want to customize your dataset, you should add your preprocess code and modify the choices of argument
dataset
Could you give some more detailed information? Because when I tried to follow the steps in the parts I shared in the image below, I encountered the problem above. Link: (https://mmdetection3d.readthedocs.io/en/latest/)
I have the same problem, can you help us?
if u want to use custom dataset u have to write a new data_converter and pkl_maker, the converter in mm3d only suits for standard datasets
Hi @HydrogenWasser can you share a sample code? I am facing the same issue here. Thank you
Hi @HydrogenWasser can you share a sample code? I am facing the same issue here. Thank you
share ur email
@HydrogenWasser running into the same issue.
I also don't really understand whats the point of the documentation. If you have a standardized custom format I assume it's also possible to provide a data_converter for it :(
Anyways, it would help me quite a lot if you could also share your impl. marvin.klemp@kit.edu
Hi @HydrogenWasser can you share a sample code? I am facing the same issue here. Thank you
share ur email
Can you share it with me also? atasoy.kubraa@hotmail.com
Hi @HydrogenWasser can you share a sample code? I am facing the same issue here. Thank you
share ur email
agbeliemmanuel@gmail.com
Thank you for your assistance. This would be helpful to me. I think they should update the documentation when it comes to custom datasets.
Hi @HydrogenWasser can you share a sample code? I am facing the same issue here. Thank you
reinierrg.2020@gmail.com
@HydrogenWasser Hi. can you share a sample code? I am facing the same issue here. Thank you very much! 970506520@qq.com
@HydrogenWasser, would be grateful if you can share a sample code to me. o.d.a.prima@gmail.com Thank you in advance.
@HydrogenWasser I'm running into the same question. This is my email kengmin8933@gmail.com. Thanks in advance!
Hi @HydrogenWasser .Can you share the sample code? I am facing the same issue here. Thank in advance! jonijojoz23@gmail.com
Hi @HydrogenWasser . Could you please share the sample code? dwcha5015@gmail.com Thanks in advance!
Hi @HydrogenWasser , I'm running into the same question, could you share the sample code? hanlinhung@gmail.com Tranks in advance.
@Agbeli @MarvinKlemp @kbratsy @HydrogenWasser Could you share the sample code? itisandrewlee@gmail.com This would be a great help. Thanks in advance.
Hi @HydrogenWasser can you share a sample code? I am facing the same issue here. Thank you
share ur email
Your code would be a great help for me, too. Thanks a lot in advance! alex-luna@gmx.de
Hi,Could you share the sample code? It would be very useful to me. xz15209852118@163.com Thanks you very much!!! @HydrogenWasser @kbratsy @Agbeli
Hi @HydrogenWasser . Could you please share the sample code? yonglinh611@gmail.com Thanks in advance!
Hi @HydrogenWasser . Could you please share the sample code? 12221089@zju.edu.cn Thanks in advance!
Hi @HydrogenWasser I've got the same problem while developing my master thesis, could you share the sample code with me too? martina.annicelli@gmail.com Thanks in advance
Hi @HydrogenWasser . Could you please share the sample code? 23121778@bjtu.edu.cn. Thanks in advance!
Hi @HydrogenWasser . Could you please share the sample code to me as well? I am struggling to create a custom dataset. joseph.sjcetmech@gmail.com
Hi, @HydrogenWasser @Agbeli .Could you please share the sample code to me as well? It would be extremely helpful. 62990023@kmitl.ac.th Thanks in advance!
Hi @HydrogenWasser . Could you please share the sample code to me as well? I am struggling to create a custom dataset. 1104461939@qq.com
I cost me some time, but I have implemented the training for pointcloud only datasets and could easily manage to create a PR and some docs which would reduce the effort to implement this task to hours.
However, I am still struggling with two things @JingweiZhang12 :
First: For what is the gt
directory at all? Why is it created? Is it only for the ObjectSampler
?
Second: #2242 I am unable to get the evaluation running at all because the KITTI Evaluator requires images. And I don't really understand how this was solved in the issue @m-shahbaz-kharal maybe you could help?
I cost me some time, but I have implemented the training for pointcloud only datasets and could easily manage to create a PR and some docs which would reduce the effort to implement this task to hours.
However, I am still struggling with two things @JingweiZhang12 : First: For what is the
gt
directory at all? Why is it created? Is it only for theObjectSampler
? Second: #2242 I am unable to get the evaluation running at all because the KITTI Evaluator requires images. And I don't really understand how this was solved in the issue @m-shahbaz-kharal maybe you could help?
@MarvinKlemp, gt
directory is generated as sort of an efficiency procedure, it is generated by cropping objects of interest (for example vehicles, pedestrians, cyclists, etc.) from point-cloud frames and storing them (the cropped point-clouds containing individual objects of interest). This is done utilizing the ground-truth labels. Once gt
directory is created it is easy to compare the detections to ground-truth objects individually to calculate the scoring metric (mAP).
Regarding KITTI Evaluator, I wasn't able to get results. If you are working on point-cloud only dataset I'd suggest you use OpenPCDet. That is more clean and easy to understand library from open-mmlab
.
@m-shahbaz-kharal thanks for the fast answer.
About the gt
dir I'm not sure if it is really used in validation. Because from what I can see its only used for the ObjectSampler
in training
About the Evaluator, that's sad to hear. I spend yesterday to try to get it running and have a "running" version. But it feels hacked. The one used in OpenPCDet also seems to be quite hard to use and buggy. Furthermore it also requires the 2D Information.
However, I think that the Waymo Evaluation only uses 3D information, hence it might be possible to easily generate gt.bin/pred.bin
files from your labels and predictions.
I will test that out.
GT dir is not being used in validation rather it is being used in training itself. We can train a model without GT dir as well. GT dir is basically some sampling techniques and filtering is getting applied on the input data esp on point clouds. I mostly adopted NuScenes format for both .pkl generation and evaluation code and it works fine.
I cost me some time, but I have implemented the training for pointcloud only datasets and could easily manage to create a PR and some docs which would reduce the effort to implement this task to hours.
However, I am still struggling with two things @JingweiZhang12 : First: For what is the
gt
directory at all? Why is it created? Is it only for theObjectSampler
? Second: #2242 I am unable to get the evaluation running at all because the KITTI Evaluator requires images. And I don't really understand how this was solved in the issue @m-shahbaz-kharal maybe you could help?
@MarvinKlemp Do you mind sharing some insights. I also want to implement training for pointcloud only datasets.
if u want to use custom dataset u have to write a new data_converter and pkl_maker, the converter in mm3d only suits for standard datasets
Hi @HydrogenWasser @MarvinKlemp @VeeranjaneyuluToka
Could you please share your insights on data preparation? I understand that the 'custom' tag is not implemented in create_data.py. This is confusing because the documentation refers to it as if it were already implemented.
Additionally, what is described as 'basic data format' in the documentation does not exactly match the KITTI format when you examine the label format.
Given this, I assume we need to convert our data to a standard format like KITTI. FYI, I work with image-only datasets.
Thank you for your time.
@PraveenKumar-Rajendran , Below are the steps that i followed to adopt to custom dataset Step1: Implement custom dataset class which is derived from Det3DDataset in mmdet3d->datasets folder Step2: Create a new config based on the architecture that we choose (for example centerpoint) and update dataset_type with the above custom data class name Step3: Create data converter by following either Kitti or NuScenes format. I followed NeScenes format. I have done lots of modifications to just populate the required dict format to forward function. This is completely based on this git repo (https://github.com/mit-han-lab/bevfusion/tree/main/tools/data_converter)
The above three steps should allow you train model successfully. You need to follow another step to evaluate the model.
Step4: Adopt to either kitti or NuScenes evaluation metric to evaluate your model. I followed NuScenes evaluation based on (https://github.com/nutonomy/nuscenes-devkit) and modified as i need.
Hope this will help you, let me know if you need any more details. Thanks!
@HydrogenWasser running into the same issue.
I also don't really understand whats the point of the documentation. If you have a standardized custom format I assume it's also possible to provide a data_converter for it :(
Anyways, it would help me quite a lot if you could also share your impl. 291087211@qq.com
Prerequisite
Task
I'm using the official example scripts/configs for the officially supported tasks/models/datasets.
Branch
main branch https://github.com/open-mmlab/mmdetection3d
Environment
Name Version Build Channel
mmcv 2.0.0 pypi_0 pypi mmdet 3.0.0 pypi_0 pypi mmdet3d 1.1.1 dev_0
mmengine 0.7.4 pypi_0 pypi
numpy 1.24.3 pypi_0 pypi
open3d 0.17.0 pypi_0 pypi
openmim 0.3.7 pypi_0 pypi
python 3.8.16 h4de0772_1_cpython conda-forge
Reproduces the problem - code sample
Reproduces the problem - command or script
Reproduces the problem - error message
def get_thresholds(scores: np.ndarray, num_gt, num_sample_pts=41): Traceback (most recent call last): File "tools/create_data.py", line 380, in
raise NotImplementedError(f'Don\'t support {args.dataset} dataset.')
NotImplementedError: Don't support custom dataset.
Additional information