Skip to content
This repository has been archived by the owner on Dec 8, 2020. It is now read-only.
/ qnet Public archive

Cross-Spectral Local Descriptors via Quadruplet Network

License

Notifications You must be signed in to change notification settings

ngunsu/qnet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cross-Spectral Local Descriptors via Quadruplet Network

PDF

Bibtex

@Article{s17040873,
AUTHOR = {Aguilera, Cristhian A. and Sappa, Angel D. and Aguilera, Cristhian and Toledo, Ricardo},
TITLE = {Cross-Spectral Local Descriptors via Quadruplet Network},
JOURNAL = {Sensors},
VOLUME = {17},
YEAR = {2017},
NUMBER = {4},
ARTICLE NUMBER = {873},
URL = {http://www.mdpi.com/1424-8220/17/4/873},
ISSN = {1424-8220},
DOI = {10.3390/s17040873}
}

Instructions

First install the torch framework and cudnn

  1. Install torch
  2. Cudnn torch

Datasets

Nirscenes patches

Two options: Download the generated t7 dataset from

Training and evaluation t7 files are different

VIS-LWIR ICIP2015

  1. Download the dataset from

Eval

Nirscenes eval (requires cuda, cudnn)

Evaluation code can be found in the eval folder. To eval one sequence:

  1. You have to generate or download the nirscenes patch dataset
  2. Install xlua
luarocks install xlua
luarocks install moses
  1. Run
cd eval
th nirscenes_eval.lua -dataset_path [path] -net [trained network]

For example, to eval the field sequence using the Q-Net article trained network.

th nirscenes_eval.lua -dataset_path ../datasets/nirscenes/test -net ../trained_networks/qnet.t7

For more options, run

th nirscenes_eval -h

VIS-LWIR eval (ICIP2015) (just cuda support)

  1. You have to download the dataset first
  2. Run
cd eval
th icip2015_eval.lua -dataset_path ../datasets/icip2015/ -net [trained network] 

For example. To eval Q-Net

cd eval
th icip2015_eval.lua -dataset_path ../datasets/icip2015/ -net ../trained_networks/qnet.t7 

Training

  1. Install penlight, torchx and json
luarocks install penlight
luarocks install torchx
luarocks install json
  1. Train a network
cd train
th nirscenes_quadruplets_train.lua

Run

th nirscenes_quadruplets_train.lua -h

to see the options

Note The training code is different from the one used in the article. This new version is smaller. Additionally, the dataset was generated from zero. So, small differences in FPR95 may happen.

About

Cross-Spectral Local Descriptors via Quadruplet Network

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published