Skip to content

adaption of HomographyNet by DeTone et al. for learning rotations between identical images

Notifications You must be signed in to change notification settings

yannikmotzet/homographynet-rotation

Repository files navigation

rotation-net

adaption of HomographyNet (regression head) by DeTone et al. for learning rotations of images with pytorch/tensorflow

homography net architecture

Content of repo

Image Pairs Generation

01_data_generation.ipynb cut out grayscale patch A from MS COCO image and randomly rotate patch A between -180° and 180° to get patch B

image pair sample

Training

02_network_training_torch.ipynb / 02_network_training_tf.ipynb train and evaluate HomographyNet with train and val image pairs

model loss

Test

03_network_inference_torch.ipynb / 03_network_inference_tf.ipynb test with test pairs and calculate rotation error

  • mean rotation error: 4.1°
  • median rotation error: 2.5°

historgram with rotation error

Prerequisites

  • download MS COCO dataset (train/val/test) and unzip to data/ folder
  • (optional) download trained model here

Credits

About

adaption of HomographyNet by DeTone et al. for learning rotations between identical images

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published