Giter Site home page Giter Site logo

grseb9s / hca_saliency_codes Goto Github PK

View Code? Open in Web Editor NEW

This project forked from archerfmy/hca_saliency_codes

0.0 1.0 0.0 93.51 MB

Codes for HCA (Hierarchical Cellular Automata for Visual Saliency) accepted by IJCV 2018.

License: MIT License

MATLAB 34.17% Makefile 1.28% TeX 11.35% Python 7.70% CSS 0.46% JavaScript 0.06% HTML 0.61% C++ 16.16% Cuda 23.90% C 1.88% Shell 2.39% M 0.04%

hca_saliency_codes's Introduction

License

Hierarchical Cellular Automata for Visual Saliency

HCA pipline

Introduction

HCA is a temporally evolving model to intelligently detect salient objects. This package contains the source codes to reproduce the experimental results of HCA. The source code is mainly written in MATLAB.

Publication Pub.

Our paper "Hierarchical Cellular Automata for Visual Saliency" has been accepted for publication in Iternational Journal of Computer Vision (IJCV), 2018. [Online-Version]

License

This code is released under the MIT License (refer to the LICENSE file for details).

Contents

  1. Requirements: software
  2. Requirements: hardware
  3. Basic installation
  4. Demo
  5. Pre-computed saliency maps
  6. Visual comparison with state-of-the-art methods

Requirements: software

  1. Requirements for MatConvNet (see: MatConvNet installation instruction).

  2. MATLAB.

  3. [optional] CUDA (we use CPU to compute FCN features, if you want to use GPU, please compile MatConvNet with CUDA enabled).

  4. Supported OS: the source code was tested on 64-bit Windows OS, it used SLIC to pre-process the images into super-pixels. Here we used the mex file in Windows OS, so the HCA code may not worked on Linux OS for now.

Requirements: hardware

If you compile MatConvNet with CUDA supported, a GPU with at least 3G of memory suffices.

Installation (sufficient for the demo)

  1. Clone the HCA repository
git clone https://github.com/ArcherFMY/HCA_saliency_codes.git
  1. cd to the root directory of HCA (we will call the directory HCA_ROOT), use MATLAB to run compile_matconvnet.m.

  2. Download the pre-trained FCN-32s models from here. Then put it under $HCA_ROOT/matconvnet-1.0-beta19/Data/ folder with name pascal-fcn32s-dag.mat.

note

Here we just compiled the MatConvNet with CPU. Users could compile with GPU supported yourself.

Demo

To run the demo, simply run $HCA_ROOT/runme.m with MATLAB. Saliency maps will be saved in $HCA_ROOT/saliencmaps/ folder.

Precomputed saliency maps

We provided pre-computed saliency maps for convenience.

Included Datasets: ECSSD, HKU-IS, DUT-OMRON, PASCAL-S and MSRA5000.

pre-computed saliency maps

Visualization

visualization

FAQ

Q: Error when running extract_fcn_im_features at line(23)

A: We modified the matconvnet-1.0-beta19/matlab/+dagnn/@DagNN/eval.m to allow users to extract features from every layers (conv, pool, relu). So if you are using your own matconvnet, please modify the corresponding .m file as we did.

hca_saliency_codes's People

Contributors

archerfmy avatar

Watchers

 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.