资源算法DGC-Net

DGC-Net

2019-10-16 | |  89 |   0 |   0

DGC-Net: Dense Geometric Correspondence Network

This is a PyTorch implementation of our work "DGC-Net: Dense Geometric Correspondence Network"

TL;DR A CNN-based approach to obtain dense pixel correspondences between two views.

Installation

  • create and activate conda environment with Python 3.x

conda create -n my_fancy_env python=3.7
source activate my_fancy_env
  • install Pytorch v1.0.0 and torchvision library

pip install torch torchvision
  • install all dependencies by running the following command:

pip install -r requirements.txt

Getting started

  • eval.py demonstrates the results on the HPatches dataset To be able to run eval.py script:

    python eval.py --image-data-path /path/to/hpatches-geometry
    • Download an archive with pre-trained models click and extract it to the project folder

    • Download HPatches dataset (Full image sequences). The dataset is available here at the end of the page

    • Run the following command:

  • train.py is a script to train DGC-Net/DGCM-Net model from scratch. To run this script, please follow the next procedure:

    python train.py --image-data-path /path/to/TokyoTimeMachine

Performance on HPatches dataset

Method / HPatches IDViewpoint 1Viewpoint 2Viewpoint 3Viewpoint 4Viewpoint 5
PWC-Net4.4311.4415.4720.1728.30
GM best model9.5918.5521.1527.8335.19
DGC-Net (paper)1.555.538.9811.6616.70
DGCM-Net (paper)2.976.859.9512.8719.13
DGC-Net (repo)1.745.889.0712.1416.50
DGCM-Net (repo)2.335.629.5511.5916.48

Note: There is a difference in numbers presented in the original paper and obtained by the models of this repo. It might be related to the fact that both models (DGC-Net and DGCM-Net) have been trained using Pytorch v0.3.

More qualitative results are presented on the project page

How to cite

If you use this software in your own research, please cite our publication:

@inproceedings{Melekhov+Tiulpin+Sattler+Pollefeys+Rahtu+Kannala:2018,
      title = {{DGC-Net}: Dense geometric correspondence network},
      author = {Melekhov, Iaroslav and Tiulpin, Aleksei and 
               Sattler, Torsten, and 
               Pollefeys, Marc and 
               Rahtu, Esa and Kannala, Juho},
       year = {2019},
       booktitle = {Proceedings of the IEEE Winter Conference on 
                    Applications of Computer Vision (WACV)}
}

上一篇:breast_cancer_classifier

下一篇:Deep-Reinforcement-Learning-Algorithms-with-PyTorch

用户评价
全部评价

热门资源

  • Keras-ResNeXt

    Keras ResNeXt Implementation of ResNeXt models...

  • seetafaceJNI

    项目介绍 基于中科院seetaface2进行封装的JAVA...

  • spark-corenlp

    This package wraps Stanford CoreNLP annotators ...

  • capsnet-with-caps...

    CapsNet with capsule-wise convolution Project ...

  • inferno-boilerplate

    This is a very basic boilerplate example for pe...