Coder Social home page Coder Social logo

saharzafari / fast-shadow-detection Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sepidehhosseinzadeh/fast-shadow-detection

0.0 0.0 0.0 13.43 MB

Fast Shadow Detection from a Single Image Using a Patched CNN

Python 7.10% C 6.19% C++ 63.44% MATLAB 18.61% Makefile 0.10% HTML 4.56%

fast-shadow-detection's Introduction

Fast Shadow Detection from a Single Image Using a Patched CNN

This code is for the paper: S Hosseinzadeh, etc. "Fast Shadow Detection from a Single Image Using a Patched Convolutional Neural Network", Proceedings of the IEEE/IROS 2018, https://arxiv.org/abs/1709.09283

GitHub Logo

Generating The Shadow Prior Map Images

Dependencies:

  1. nolearn
  2. lasagne
  3. theano
  4. scipy
  5. sklearn
  6. matplotlib
  7. skimage
  8. Python’s basic libraries (pickle, sys, os, urllib, gzip, cPickle, h5py, math, time, pdb)

How To Run The Code:

  • python2.7: run main_fast_shadow_detection.py
  • python3: run main_fast_shadow_detection_p3.py

Notes:

  • Build folders "data_cache" and "prediction_output_v1" for data training/testing output files, and output prediction result files.
  • TrainImgeFolder: Training Images
  • TrainMaskFolder: Training Masks (Ground Truth)
  • TrainFCNFolder: Shadow Prior Map Images
  • Likewise for testing images…
  • The Mask and Shadow Prior files should have 1 dimension, and Mask files also should be binary.

Using GPU:

Build a file in your home ~/.theanorc with a content of:

[global]
floatX = float32
[nvcc]
fastmath = True

fast-shadow-detection's People

Contributors

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