GithubHelp home page GithubHelp logo

jiancui1992 / deep_calib Goto Github PK

View Code? Open in Web Editor NEW

This project forked from twankim/deep_calib

0.0 1.0 0.0 2.28 MB

Calibration of sensors using deep learning

License: Apache License 2.0

Python 93.91% Shell 6.09%

deep_calib's Introduction

deep_calib

Calibration of sensors using deep learning

Structure of the code is motivated from TensorFlow-Slim image classification library and Caffe

Some library functions use TensorFlow-Slim image classification library with and without modification.

Generate KITTI Dataset for calibration in TfRecord Format

python tf_kitti_to_calib.py -gid {gpu IDs} -dir_in {Path to KITTI DATASET} -dir_out {Path to save tfrecord files}

ex)

python tf_kitti_to_calib.py -gid 0 -dir_in /data/kitti -dir_out /data/tf/kitti_calib

Path to KITTI DATASET must have Object Detection data in following format (calib, image_2, velodyne)

{KITTI_PATH}/object/data_object_calib
{KITTI_PATH}/object/data_object_image_2
{KITTI_PATH}/object/data_object_velodyne

Train using KITTI dataset.

First, you need to locate pretrained checkpoint file for each model. We assumed that the files are located at the folder pretrained. Pretrained models can be downloaded from the TensorFlow-Slim image classification library's Pretrained models

ex) VGG_16 Files located at:

{CURRENT_PATH}/pretrained/vgg_16.ckpt

Then you can run

CUDA_VISIBLE_DEVICES=1 ./scripts/train_vgg_16_gpu.sh

Train & Test using KITTI dataset.

You can run scripts based on weight between rotation and translation. We are printing both MSE of 7 parameters and weighted MSE of 7 parameters.

ex) VGG_16, weight=10

CUDA_VISIBLE_DEVICES=1 ./scripts/train_test_vgg_16_gpu_10.sh

Use trained model to save calibrated image and parameters.

Load image, lidar, calibration files, and generate randomly decalibrated samples. Then we predict 7-dimensional decalibration vector to calibrate. Output: image which contains both RGB and depth info, 7-dim vectors, MSE

ex) VGG_16, weight=10

CUDA_VISIBLE_DEVICES=1 ./scripts/eval_vgg_16_gpu_10.sh

deep_calib's People

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.