You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Code and weights for local feature affine shape estimation paper "Repeatability Is Not Enough: Learning Discriminative Affine Regions via Discriminability"
Pre-trained models can be found in folder pretrained: AffNet.pth
Usage example
We provide two examples, how to estimate affine shape with AffNet.
First, on patch-column file, in HPatches format, i.e. grayscale image with w = patchSize and h = nPatches * patchSize
cd examples/just_shape
python detect_affine_shape.py imgs/face.png out.txt
Out file format is upright affine frame a11 0 a21 a22
Second, AffNet inside pytorch implementation of Hessian-Affine
Example is in [notebook](examples/hesaffnet/WBS demo.ipynb)
Citation
Please cite us if you use this code:
@inproceedings{AffNet2017,
author = {Dmytro Mishkin, Filip Radenovic, Jiri Matas},
title = "{Repeatability Is Not Enough: Learning Discriminative Affine Regions via Discriminability}",
year = 2018,
month = sep,
booktitle = {Proceedings of ECCV}
}
About
Code and weights for local feature affine shape estimation paper "Repeatability Is Not Enough: Learning Discriminative Affine Regions via Discriminability"