Skip to content

Commit 5d78202

Browse files
committed
Pass explicit match path from CLI
1 parent 189c975 commit 5d78202

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

hloc/match_features.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ def main(
162162
overwrite: bool = False,
163163
) -> Path:
164164
if isinstance(features, Path) or Path(features).exists():
165-
features_q = features
165+
features_q = Path(features)
166166
if matches is None:
167167
raise ValueError(
168168
"Either provide both features and matches as Path" " or both as names."
@@ -265,4 +265,10 @@ def match_from_paths(
265265
"--conf", type=str, default="superglue", choices=list(confs.keys())
266266
)
267267
args = parser.parse_args()
268-
main(confs[args.conf], args.pairs, args.features, args.export_dir)
268+
main(
269+
confs[args.conf],
270+
args.pairs,
271+
args.features,
272+
export_dir=args.export_dir,
273+
matches=args.matches,
274+
)

0 commit comments

Comments
 (0)