Coder Social home page Coder Social logo

wangyangcharles1 / code-of-ganet Goto Github PK

View Code? Open in Web Editor NEW

This project forked from starainj/code-of-ganet

1.0 0.0 0.0 222.86 MB

code for ""Learning for mismatch removal via graph attention networks

License: MIT License

Shell 0.26% Python 99.74%

code-of-ganet's Introduction

Code-of-GANet

code for "Learning for mismatch removal via graph attention networks"

Authors: Xingyu Jiang, Yang Wang, Aoxiang Fan and Jiayi Ma

Requirements

Please use Python 3.6, opencv-contrib-python (3.4.0.12) and Pytorch (>= 1.1.0). Other dependencies should be easily installed through pip or conda.

Run the code

Test pretrained model

We provide the model trained on YFCC100M and SUN3D described in our paper. Run the test script to get results in our paper.

bash test.sh

Test model on your own data-- see './Data'

python main4OwnData.py --model_path="./log/main.py/test/" 

Test or train model on public YFCC100M and SUN3D dataset

The HDF5 file is provide by the repo zjhthu/OANet, Please follow their way to generate the training/valid/testing set. After generating dataset for YFCC100M/SUN3D, run the following

Test model on YFCC100M

python main.py --use_ransac=False --data_te='/data/yfcc-sift-2000-test.hdf5' --run_mode='test'

Set --use_ransac=True to get results after RANSAC post-processing.

Test model on SUN3D

python main.py --use_ransac=False --data_te='/data/sun3d-sift-2000-test.hdf5' --run_mode='test'

Train model on YFCC100M

python main.py --run_mode= 'train'

You can train the fundamental estimation model by setting --use_fundamental=True --geo_loss_margin=0.03 and use side information by setting --use_ratio=2 --use_mutual=2

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.