Coder Social home page Coder Social logo

kitti3d_to_fat_converter's Introduction

KITTI 3D to FAT Converter

Converts KITTI 3D Object Detection Evaluation 2017 Object Pose Estimation training dataset
to Falling Things Format.

Debug output

The code was written and tested with Python 3.8.

Installation

pip3 install pyjson pyyaml numpy Pillow scipy

Prerequesites

  1. Download the following from KITTI 3D Object Detection Website:

  2. Extract files so that your directory tree is as follows:

.
├── calib
│   ├── 000000.txt
│   ├── 000001.txt
│   └── ...
├── image_2
│   ├── 000000.png
│   ├── 000001.png
│   └── ...
└── label_2
    ├── 000000.txt
    ├── 000001.txt
    └── ...

Usage

usage: convert.py [-h] --kitti-dir DIR --output-dir DIR [--distance-in-cm] [--save-camera-info] [--debug]

Converts given KITTI 3D Object Detection Training Dataset to Falling Things Format.

optional arguments:
  -h, --help           show this help message and exit
  --kitti-dir DIR      Path to KITTI root directory.
  --output-dir DIR     Path to store converted dataset.
  --distance-in-cm     Distance unit for output dataset is centimeters.
  --save-camera-info   Stores CameraInfo yaml files for each frame.
  --debug              Draws cuboids on the output image.

Shortcommings

  • Does not create the _object_settings.json and _camera_settings.json
  • Ccclusion is handled as follows: kitti_occlusion_to_fat_occlusion = {0: 0.0, 1: 0.25, 2: 0.75, 3: 0.0}.
  • Since KITTI does not provide a visibility value, the following code reproduces the visibility:
visibility = 1.0 - truncation
visibility = max(0, visibility - occlusion)

kitti3d_to_fat_converter's People

Contributors

belorenz avatar

Stargazers

 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.