Git Product home page Git Product logo

karan2808 / stealth Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 76.04 MB

We tackle the problem of computing disparity or depth of objects in a scene using Infrared Images. As far as we know, this is the first repository to deal with disparity computation using Infrared Images.

MATLAB 0.38% Python 31.79% Shell 2.15% C++ 4.32% Cuda 10.55% Jupyter Notebook 50.81%
stereo-matching thermal-camera aanet ganet

stealth's Introduction

STEALTH Stereo Analysis Using Low Texture Thermal Images.

Brief Introduction: We tackle the problem of computing disparity or depth of objects in a scene using Infrared Images. As far as we know, this is the first repository to deal with disparity computation using Infrared Images. We have selected GANet and AANet for this task as the baseline models. Furthermore, we have implemented a modified PSMNet architecture with CLAHE pre-processing and a super resolution module as our final model. Arch diagram

Usage:

AANet: To train the model from the beginning, run the following command,

python train.py --data_dir $Path to Dataset$ --dataset_name $Dataset Name$ --mode train --checkpoint_dir $Checkpoint Directory$ --batch_size 2 --val_batch_size 1 --img_height 480 --img_width 636 --val_img_height 480 --val_img_width 636 --feature_type aanet --feature_pyramid_network --highest_loss_only --learning_rate 1e-4 --milestones 400,600,800,900 --max_epoch 1000 --save_ckpt_freq 100 --no_validate --max_disp 96 --no_intermediate_supervision.

To test your model, run the following prediction script,

python predict.py --data_dir demo --pretrained_aanet $model path$ --feature_type aanet --feature_pyramid_network --no_intermediate_supervision

GANet:To train the model from the beggining, run the following command,

python train.py --batchSize=2
--crop_height=240
--crop_width=528
--max_disp=96
--thread=1
--data_path=$Path to the dataset$
--training_list=$Path to the list with image names$
--save_path='./checkpoint/cmuset_ckpt'
--kitti2015=1
--shift=3
--nEpochs=1000

To test your model, run the following prediction script.

python predict.py --crop_height=512
--crop_width=640
--max_disp=96
--data_path='$Path to the dataset.'
--test_list='lists/CMU_set_val_list.list'
--save_path='./result_cmu_set/'
--kitti2015=1
--resume='./checkpoint/cmu_set_ckpt.pth'

PSMNet Variants: To train any of the PSMNet variants, run the following command. (The PSMNet variants can be found in individual folders in the master branch). Replace the command-line arguments with appropriate values/filenames/paths. You can refer to the code for description of each argument.

python train.py max_disp batch_size num_epochs learning_rate data_directory dataset_name model_save_path

To test the model, run the following evaluation scipt.

python eval.py max_disp batch_size data_dir dataset_name saved_model eval_path test_filenames

For the PSMNet variants, we have also provided a Google Colab notebook file for your reference.

Acknowledgements: Part of our code is adopted from previous works, AANet (https://github.com/haofeixu/aanet), GANet (https://github.com/feihuzhang/GANet) and PSMNet(https://github.com/JiaRenChang/PSMNet), which deal with RGB Images. We have used the CATS (A Color And Thermal Stereo Dataset, http://bigdatavision.org/CATS/) for training and evaluation.

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.