This is a better and simpler implementation for "SRHEN: Stepwise-Refining Homography Estimation Network via Parsing Geometric Correspondences in Deep Latent Space".
MACE=1.18 on Synthetic COCO dataset. (MACE=9.19 in the original paper, without using the coarse-to-fine framework).
If you find this work useful, please consider citing:
@inproceedings{li2020srhen,
title={SRHEN: Stepwise-Refining Homography Estimation Network via Parsing Geometric Correspondences in Deep Latent Space},
author={Li, Yi and Pei, Wenjie and He, Zhenyu},
booktitle={Proceedings of the 28th ACM International Conference on Multimedia},
pages={3063--3071},
year={2020}
}
- We use pretrained ResNet34 instead of VGG-like network as backbone.
- COCO images are resized to 320X320 rather than 320X240, to better avoid black border.
- Patch pairs are generated online rather then offline, to alleviate the overfitting problem.
- We compute a global cost volume (i.e., the correspondence map in the paper) rather than a local one.
- The coarse-to-fine framework and the pyramidal supervision scheme is NOT included in this implementation.
- python 3.6.7
- opencv-python 4.1.0
- torch 1.10.0
- torchvision 0.7.0
- Download COCO dataset. https://paperswithcode.com/dataset/coco.
- Change the directory setting in
"preprocess_images_offline.py"
, i.e.,DIR_IMG
andDIR_OUT
according to your own directory. - Run
"python preprocess_images_offline.py"
.
- Change the directory setting in
"train.py"
, i.e.,DIR_IMG
andDIR_MOD
for train images and trained models, respectively. - Run
"python train.py"
.
- Change the directory setting in
"test.py"
, i.e.,DIR_IMG
andDIR_MOD
for test images and saved models, respectively. - Run
"python test.py"
.
Link: https://pan.baidu.com/s/1u-9Bu72OY_wC7CoocorZXQ?pwd=94rq Extraction Code: 94rq