cvlab-epfl / disk

Disk code release
Apache License 2.0
317 stars 46 forks source link

How to get matched keypoints #16

Closed Draconda closed 2 years ago

Draconda commented 2 years ago

Hi, thank you for opensourcing such a great model,

I'm now trying to run keypoint matching between two images ("image_0.png", "image_1.png"), and set those images into the directory ./pairs , & created outputs directory of h5 files ./output , & set contents of this repo codes ./ too, I ran

python detect.py output ./pairs python match.py output

and seems it worked & created

ls output

descriptors.h5 keypoints.h5 matches.h5

, but when I checked with

keypoint_f = h5py.File('output/keypoints.h5', 'r') , it doesn't contain any keys, is it working fine?

thanks a lot,

jatentaki commented 2 years ago

Hey, by default detect.py handles files ending in jpg. You can run the script with --image-extension png and it should detect all images of interest :) (note this is case-sensitive)

Draconda commented 2 years ago

Thank you for your reply, Okay, I'll try with it, thanks again!! ;)