Code Monkey home page Code Monkey logo

dashcam-illumination-estimation's Introduction

Estimate Outdoor Illumination on Dash-cam images

A re-implemented project which focus on dash-cam images according to the paper (Deep Outdoor Illumination Estimation [Hold-Geoffroy et al. CVPR 2017]) (https://arxiv.org/abs/1611.06403). This project is an end-to-end system that outputs corresponding sun position and physcial sky, camera parameters by inputing single dash-cam image.

Quick start

Download weights

You can download the weights from here and our dataset from here.

Test

If you want to test your own image, run this command:

python inference.py --img_path <image-path> --pre-trained <weight-path>

Training

You can generate the dataset and list by using generate_data.py and the data (360 panorama images seperated into test and train) which followed the format in GS_skymodel.csv.

After generating dataset, run command below for training:

python train.py

The trained weights will be stored as weights.pth .

Evaluation

Evaluate the trained model on the test dataset (data/test_list.csv), it will output the average error of each predictions.

python eval.py --pre-trained <weight-path>

Dependecies

  • numpy
  • skimage
  • pytorch
  • opencv-python
  • progressbar

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.