pairs_from_retrieval.main(
global_descriptors, loc_pairs, num_loc,
query_prefix="", db_prefix="")
# for getting Image pairs
# num_loc = 50 in this case
sfm_dir = outputs / 'sfm_superpoint+superglue'
reconstruction.main(sfm_dir, images, loc_pairs, feature_path, loc_matches)
# For SFM reconstruction
# images - path to dir which contains all the images. ( I moved images from different seq folder to a single folder )
As mentioned previously, the ground truth models were generated by running COLMAP based on SIFT local features, not using hloc.
The SfM pipeline has some randomness and has unconstrained scale, so large differences are expected.
The SfM process seem to fail. This is likely due to incorrect initial intrinsic camera parameters. By default COLMAP will read the exif data, which is likely incorrect here. A more sensible approach (and probably the one used to generate the GT models) is to initialize with the intrinsics obtained from the original dataset GT.
You might want to use sequential matching rather than only retrieval.
Hi I have tried to create pose data for Cambridge KingsCollege dataset using HLOC custom pipeline.
After running for a long time I got results as -
Output directory structure -
outputs
/sfm_superpoint+superglue/models/0
-->images.bin
,points3D.bin
,cameras.bin
I was expecting output filed to be inside
outputs
/sfm_superpoint+superglue
.When I compared the poses in
images.bin
and poses from urlempty_all/images.txt
, results are totally different.Can please help me get the explanation for this?
for ref