开源软件名称(OpenSource Name):lzx551402/ASLFeat开源软件地址(OpenSource Url):https://github.com/lzx551402/ASLFeat开源编程语言(OpenSource Language):Python 100.0%开源软件介绍(OpenSource Introduction):ASLFeat implementationTensorFlow implementation of ASLFeat for CVPR'20 paper "ASLFeat: Learning Local Features of Accurate Shape and Localization", by Zixin Luo, Lei Zhou, Xuyang Bai, Hongkai Chen, Jiahui Zhang, Yao Yao, Shiwei Li, Tian Fang and Long Quan. This paper presents a joint learning framework of local feature detectors and descriptors. Two aspects are addressed to learn a powerful feature: 1) shape-awareness of feature points, and 2) the localization accuracy of keypoints. If you find this project useful, please cite:
RequirementsPlease use Python 3.7, install NumPy, OpenCV (3.4.2) and TensorFlow (1.15.2). Refer to requirements.txt for some other dependencies. If you are using conda, you may configure ASLFeat as: conda create --name aslfeat python=3.7 -y && \
pip install -r requirements.txt && \
conda activate aslfeat 4/14/2020 UpdateWe here release ASLFeat with post-CVPR update, which we find to perform consistently better among the evaluations. The model can be accessed by: wget https://research.altizure.com/data/aslfeat_models/aslfeatv2.tar On HPatches dataset, the MMA@3 is improved from 72.29 to 74.31 in single scale prediction, while the multi-scale prediction now achieves 75.26. The major difference comes from 1) using blended images and rendered depths, which is proposed in BlendedMVS and integrated in GL3D, 2) using circle loss and 3) conducting early stopping. Details can be found in the updated arxiv paper. The above implementation is also available in TFMatch. Get startedClone the repo and download the pretrained model: git clone https://github.com/lzx551402/aslfeat.git && \
cd ASLFeat/pretrained && \
wget https://research.altizure.com/data/aslfeat_models/aslfeat.tar && \
tar -xvf aslfeat.tar A quick example for image matching can be called by: cd /local/aslfeat && python image_matching.py --config configs/matching_eval.yaml You will be able to see the matching results by displaying disp.jpg. You may configure Training scriptsWe release the training scripts in a separate project, TFMatch, which also contains our previous research works (GeoDesc, ECCV'18 and ContextDesc, CVPR'19). Evaluation scriptsHPatches dataset1. Benchmark onDownload the original sequences (i.e., cd /local/aslfeat && python hseq_eval.py --config configs/hseq_eval.yaml At the end of running, we report the average number of features, repeatability, precision, matching score, recall and mean matching accuracy (a.k.a. MMA). The evaluation results will be displayed as: 0 /data/hpatches-sequences-release/v_abstract
5000 [0.65887743 0.7993664 0.49892387 0.73872983 0.7671514 0.6]
1 /data/hpatches-sequences-release/v_adam
1620 [0.6605903 0.88857824 0.45584163 0.6810486 0.88263476 0.6]
...
----------i_eval_stats----------
...
----------v_eval_stats----------
...
----------all_eval_stats----------
avg_n_feat 3924
avg_rep 0.62246275
avg_precision 0.73995966
avg_matching_score 0.41950417
avg_recall 0.63767093
avg_MMA 0.7228764
avg_homography_accuracy 0.72037053 As a reference, ASLFeat with post-CVPR update achieves: ----------all_eval_stats----------
avg_n_feat 3617
avg_rep 0.6026927
avg_precision 0.75740457
avg_matching_score 0.42784035
avg_recall 0.6682571
avg_MMA 0.74305236
avg_homography_accuracy 0.7314815 When multi-scale (MS) inference is enabled, the results become: ----------all_eval_stats----------
avg_n_feat 4241
avg_rep 0.6737002
avg_precision 0.7681067
avg_matching_score 0.41503817
avg_recall 0.58123404
avg_MMA 0.7526477
avg_homography_accuracy 0.7537038 The results for repeatability and matching score is different from what we have reported in the paper, as we now apply a symmetric check when counting the number of covisible features (referring to SuperPoint). This change may not influence the conclusion in the section of ablation study, but would be useful for making comparision with other relavant papers. We thank for Sida Peng for pointing this out when reproducing this work. To plot the results (i.e., reproduce Fig.3 in the paper, shown below), please include the cached files, use the tool provided by D2-Net. FM-Bench2. Benchmark onDownload the (customized for data loading and randomness eschewing) evaluation pipeline, and follow the instruction to download the testing data: git clone https://github.com/lzx551402/FM-Bench.git Configure cd /local/aslfeat && python evaluations.py --config configs/fmbench_eval.yaml The extracted features will be stored in The cached results of ASLFeat can be reached here. visual localization3. Benchmark onDownload the Aachen Day-Night dataset and follow the instructions to configure the evaluation. Configure cd /local/aslfeat && python evaluations.py --config configs/aachen_eval.yaml The extracted features will be saved alongside their corresponding images, e.g., the features for image Finally, refer to the evaluation script to generate and submit the results to the challenge website. Oxford Buildings dataset for image retrieval4. Benchmark onTake Oxford Buildings dataset as an example. First, download the evaluation data and (parsed) groundtruth files: mkdir Oxford5k && \
cd Oxford5k && \
mkdir images && \
wget https://www.robots.ox.ac.uk/~vgg/data/oxbuildings/oxbuild_images.tgz && \
tar -xvf oxbuild_images.tgz -C images && \
wget https://research.altizure.com/data/aslfeat_models/oxford5k_gt_files.tar && \
tar -xvf ... This script also allows for evaluating Paris dataset. The (parsed) groundtruth files can be found here. Be noted to delete the corrupted images of the dataset, and put the remaining images under the same folder. Next, configure cd /local/aslfeat && python evaluations.py --config configs/oxford_eval.yaml We use Bag-of-Words (BoW) method for image retrieval. To do so, clone and compile libvot: cd Oxford5k && \
git clone https://github.com/hlzz/libvot.git && \
mkdir build && \
cd build && \
cmake -DLIBVOT_BUILD_TESTS=OFF -DLIBVOT_USE_OPENCV=OFF .. && \
make and the mAP can be obtained by: cd Oxford5k && \
python benchmark.py --method_name aslfeat_ms Please cite libvot if you find it useful. ETH dataset5. Benchmark onFollow the instruction to download the data, configure cda /local/aslfeat && python evaluations.py --config configs/eth_eval.yaml To extract the features. IMW20206. Benchmark onDownload the data (validation/test) Link, then configure cd /local/aslfeat && python evaluations.py --config configs/imw2020_eval.yaml MiscAcknowledgements
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论