GithubHelp home page GithubHelp logo

kitti3d_to_sparse_depth's Introduction

KITTI3D_to_Sparse_Depth

Motivation

The motivation behind this project arises from the absence of a readily available repository for converting 3D object detection LiDAR files into sparse depth maps. Existing repositories that utilize dense depth maps typically only offer results generated by specific depth completion networks, limiting their applicability to other networks. The key features of this repository include minimal dependencies and straightforward usage, making it easily accessible for users.

Installation

conda create -n kitti_sparse_depth python=3.10
conda activate kitti_sparse_depth
pip install numpy
pip install pillow
pip install opencv-python
pip install tqdm

And you can also build your enviroment through the following command:

conda env create -f kitti_sparse.yaml

DataPreparation

You can download the KITTI 3D Object Detection benchmark from here. After unzipping, the data folder will be like this.

└── kitti
    ├── testing
    │   ├── calib
    │   ├── image_2
    │   ├── velodyne
    └── training
        ├── calib
        ├── image_2
        ├── label_2
        ├── velodyne

And you should link the dataset into the data folder

cd data
ln -s $YOUR_KITTI_DADASET kitti

Now you can generate the sparse depth map of training dataset

python converter/lidar_to_depth.py --split training 

And for testing dataset, use this command:

python converter/lidar_to_depth.py --split testing 

The results will be saved in data/kitti/training or testing/depth_sparse folder.

Acknowledgement

The code is modified from SFD, thanks for their great work!

kitti3d_to_sparse_depth's People

Contributors

zhangtingyu11 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.