Code Monkey home page Code Monkey logo

fork-etssr's Introduction

Fast Stereo Camera Simulation using Super Resolution Techniques for Automotive Applications

We propose a method for acceleration of stereo camera simulation using stereo super resolution (SSR). This repository mainly contains the implementation of our SSR model (ETSSR) and other super-resolution (SR) models cited in the paper.

drawing

You can view the examples of ETSSR super-resolved images in the provided demo.

Table of Contents

Installation

Dependencies

  • Create a conda environment and activate it.

    $ conda create --name etssr python=3.6

    $ conda activate etssr

  • Install PyTorch following official instructions

The code has been tested on Ubuntu 18.04 with CUDA 11.4 and Pytorch 1.10.2.

  • Install other python packages listed in requirements.txt

    $ pip install -r requirements.txt

Dataset

Training

  • To train the super-resolution (SR) models (including ETSSR) on CMRSI dataset, first generate image patches of CMRSI using:
python generate_patches.py

You need to set the directory of downloaded CMRSI dataset and the destination directory of image patches in the generate_patches.py code.

  • Set the training parameters in the train.yaml file located in the ./configs folder.

You must change the "data_dir" to the path to the CMRSI image patches and "test_data_dir" to the path to the orignal CMRSI dataset.

  • Run the training code using:
python train.py --cfg ./configs/train.yaml

The log of the training, including tensorboard plots and the model weights are saved in "checkpoint_dir"/"exp_name".

Testing

  • To test the SR models on the CMRSI test set, set the testing parameters in the test.yaml file located in the ./configs folder.

You must change "data_dir" parameter in the config file to the path to CMRSI dataset.

  • Run the test code using:
python test.py --cfg ./configs/test.yaml

The code calculates PSNR/SSIM on the CMRSI test set and saves output images in the "checkpoint_dir".

Profiling

To calculate the number of parameters and Flops of SR models run:

python profiler.py

Set the model name inside the python code.

Acknowledgements

fork-etssr's People

Contributors

hamedhaghighi 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.