Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: #54
Browse files Browse the repository at this point in the history
Vincentqyw committed Aug 21, 2024
1 parent e4a103b commit a89a0d0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ui/utils.py
Original file line number Diff line number Diff line change
@@ -910,8 +910,9 @@ def run_matching(
t1 = time.time()

if model["dense"]:
if not match_conf["preprocessing"]["force_resize"]:
if not match_conf["preprocessing"].get("force_resize", False):
match_conf["preprocessing"]["force_resize"] = force_resize
else:
logger.info("preprocessing is already resized")
if force_resize:
match_conf["preprocessing"]["height"] = image_height
@@ -941,7 +942,7 @@ def run_matching(
else:
extractor = get_feature_model(extract_conf)

if not extract_conf["preprocessing"]["force_resize"]:
if not extract_conf["preprocessing"].get("force_resize", False):
extract_conf["preprocessing"]["force_resize"] = force_resize
else:
logger.info("preprocessing is already resized")

0 comments on commit a89a0d0

Please sign in to comment.