Git Product home page Git Product logo

fgsegnet's Introduction

FgSegNet : Foreground Segmentation Network

This repository contains source codes and training set for the following paper:

"Foreground Segmentation Using a Triplet Convolutional Neural Network for Multiscale Feature Encoding" by Long Ang LIM, Hacer YALIM KELES

Paper Link : https://arxiv.org/abs/1801.02225

alt tag

Citation

If you find FgSegNet useful in your research, please consider citing:

@article{lim2018foreground,
  title={Foreground Segmentation Using a Triplet Convolutional Neural Network for Multiscale Feature Encoding},
  author={Lim, Long Ang and Keles, Hacer Yalim},
  journal={arXiv preprint arXiv:1801.02225},
  year={2018}
}

Requirements

This work was implemented with the following frameworks:

  • Python 3.6.3
  • Keras 2.0.6
  • Tensorflow-gpu 1.1.0

Usage

Easy to train! Just a SINGLE click, gooo!!!

  1. Modify the following files in your installed dir with the files in utils dir:

    • <Your Keras DIR>\layers\convolutional.py
    • <Your Keras DIR>\backend\tensorflow_backend.py
    • <Your Keras DIR>\keras\losses.py
    • <Your Keras DIR>\metrics.py
    • <Your PYTHON 3.6>\site-packages\skimage\transform\pyramids.py
      replace
      out_rows = math.ceil(rows / float(downscale))
      out_cols = math.ceil(cols / float(downscale))
      with
      out_rows = math.floor(rows / float(downscale))
      out_cols = math.floor(cols / float(downscale))
  2. Download VGG16 weights from HERE and place it in appropriate directory (e.g. FgSegNet dir), or it will be downloaded and stored in /.keras/models/ automatically.

  3. Download our train+val frames from HRER and CDnet2014 dataset, then place them into corresponding directory.

    Example:

      FgSegNet/
           FgSegNet/FgSegNet.py
                   /FgSegNetModule.py
           FgSegNet_dataset2014/
                     baseline/
                          highway50
                          highway200
                          pedestrians50
                          pedestrians200
                          ...
                      badWeather/
                          skating50
                          skating200
                          ...
                     ...
            CDnet2014_dataset/
                      baseline/
                           highway
                           pedestrians
                           ...
                      badWeather/
                           skating
                           ...
                      ...      
    

Evaluation

We perform two separated evaluations and report our results on two test splits (test dev & test challenge):

  1. We compute our results locally. (on test dev dataset)
  2. We upload our results to Change Detection 2014 Challenge. (on test challenge dataset where ground truth values are not shared with the public dataset)
    (Both results are reported in our paper. Please refer to it for details)

Compute metrics locally using CDnet Utilities

Note:

  • test dev: by considering only the range of the frames that contain the ground truth labels by excluding training frames (50 or 200 frames)
  • test challenge: dataset on the server side (http://changedetection.net)

License

For research purpose only. For commercial license, please contact the authors.

Contact

lim.longang at gmail.com
Any issues/discussions are welcome.

fgsegnet's People

Contributors

lim-anggun avatar

Watchers

Amit Kayal 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.