Skip to content

Latest commit

 

History

History
98 lines (66 loc) · 4.33 KB

README.md

File metadata and controls

98 lines (66 loc) · 4.33 KB

Lidar_Openpcdet_ST3D

Visitors

Introduction

Recently, I've been working with my own dataset. I realized many might be unfamiliar with how to utilize the advanced LiDAR open source tool, Openpcdet, to train their custom datasets. Hence, I've documented the steps I followed. Regardless of the type of LiDAR you use, ensure you have data in the format (x,y,z,intensity). The subsequent conversions are straightforward, ranging from formats like .txt, .pcd, .bin, to .npy.

Progress

  • ✅ Build a dataloader and import your own data
  • 📝 Training my own dataset (TODO)
  • 📝 Test my own dataset (TODO)

1. Dataloader

1.1 Prepare Your Own LiDAR Data

ST3D/Openpcdet
├── data
│   ├── mydata
│   │   │── lidar
│   │   │── label

│ │ │── lidar

  • lidar information

Image text

│ │ │── label

  • label information

Image text Image text

1.2 Align the coordinates of your own dataset with openpcdet

        # My dataset coordinates are:
        # - x pointing to the right
        # - y pointing to the front
        # - z pointing up
        # Openpcdet Normative coordinates are:
        # - x pointing foreward
        # - y pointings to the left
        # - z pointing to the top
        # So a transformation is required to the match the normative coordinates
        points = points[:, [1, 0, 2]] # switch x and y
        points[:, 1] = - points[:, 1] # revert y axis

Image text

1.3 Modify & create the three configuration files

1.3.1 ~/pcdet/datasets/__init__.py

from .mydata.mydata_dataset import mydataDataset
'mydataDataset':mydataDataset

Feel free to replace mydata with your own dataset name.

1.3.2 ~/pcdet/datasets/mydata/mydata_dataset.py

1.3.3 ~/tools/cfgs/dataset_configs/mydata_dataset.yaml

  • Basically copy from kitti_dataset.yaml

https://github.com/Leozyc-waseda/Lidar_Openpcdet_ST3D/blob/365ac6b57906a01aeac27bfbdd8f1df29b5c2744/ST3D/tools/cfgs/dataset_configs/mydata_dataset.yaml

1.4 Generate the data infos by running the following command:

python -m pcdet.datasets.mydata.mydata_dataset create_mydata_infos tools/cfgs/dataset_configs/mydata_dataset.yaml
  1. Training my own dataset (📝 TODO)
  2. Test my own dataset (📝 TODO)

📜 License

This project is licensed under the MIT License.

For more details, see LICENSE file.