Skip to content

Commit

Permalink
Fix: #54 (#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincentqyw authored Aug 21, 2024
1 parent e4a103b commit 07c30b9
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
Expand Up @@ -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
Expand Down Expand Up @@ -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")
Expand Down

0 comments on commit 07c30b9

Please sign in to comment.