-
Notifications
You must be signed in to change notification settings - Fork 65
Description
A nice Work !.. but i meet some problem.
When I use OpenMVG on Windows, it generates matching results like the image above.
However, when I run:
bash
python main.py --dir /root/buildBase --pipeline superpoint+lightglue --openmvg /root/deep-image-matching/config/openmvg_linux.yaml
I can't find the .desc files and only get some .feat files.
I'm confused because I need the OpenMVG's location functionality for related tasks, but the absence of .desc files is causing issues.
I found the following code section:
python
dim.io.export_to_openmvg(
img_dir=imgs_dir,
feature_path=feature_path,
match_path=match_path,
openmvg_out_path=openmvg_out_path,
openmvg_sfm_bin=openmvg_sfm_bin,
openmvg_database=openmvg_database,
camera_config_path=config.general["camera_options"],
)
Then I modified the code below (removed the # comments), but it still didn’t generate the .desc files:
python
def add_keypoints(h5_path, image_path, matches_dir):
keypoint_f = h5py.File(str(h5_path), "r")
for filename in tqdm(list(keypoint_f.keys())):
keypoints = keypoint_f[filename]["keypoints"].array()
name = Path(filename).stem
path = os.path.join(image_path, filename)
if not os.path.isfile(path):
raise OSError(f"Invalid image path {path}")
if len(keypoints.shape) >= 2:
threading.Thread(
target=lambda: saveFeaturesOpenMVG(matches_dir, name, keypoints)
).start()
# threading.Thread(target=lambda: saveDescriptorsOpenMVG(matches_dir, filename, features.descriptors)).start()
return