GithubHelp home page GithubHelp logo

kongcang / deep-dim Goto Github PK

View Code? Open in Web Editor NEW

This project forked from iminfine/deep-dim

0.0 0.0 0.0 12.15 MB

This is the official repo for the paper ‘’Robust Template Matching via Hierarchical Convolutional Features from a Shape Biased CNN''.

Python 100.00%

deep-dim's Introduction


This is the official repo for the paper Robust Template Matching via Hierarchical Convolutional Features from a Shape Biased CNN. For more details, please refer to

@InProceedings{gao2021robust,
      title={Robust Template Matching via Hierarchical Convolutional Features from a Shape Biased CNN}, 
      author={Bo Gao and M. W. Spratling},
      year={2021},
      eprint={arXiv:2007.15817},
}

Motivation

The idea is straightforward which is to investigate if enhancing the CNN's encoding of shape information can produce more distinguishable features that improve the performance of template matching.

Results

Dependencies

  • Dependencies in our experiment, not necessary to be exactly same version but later version is preferred
  • python=3.7
  • pytorch=1.2.0

Demo Code

Download the pretrained model from here and put it into ./model

The results of using features from all combinations of three layers can be downloaded from here.

Run DIM on BBS dataset using features form the best combination.

python deep_DIM.py --Dataset BBS --Mode Best 

Run DIM on BBS dataset using features from all possible combinations of three layers.

python deep_DIM.py --Dataset BBS --Mode All 

What is DIM?

DIM is a recent state-of-the-art template matching method using the mechanism explaining away. An illustration of explaining away can be found below. Red rectangle area in the left image (template image) is the template for matching, and four same size green rectangle areas are the additional templates. These templates compete with each other to be matched to the search image (Right). To be specific, only one template is supported to be the best matching one at every location whereas the similarities of others are suppressed or explained away. The corresponding matching results are shown in the right. The details of DIM can be found here.

deep-dim's People

Contributors

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