Skip to content

Commit

Permalink
Bugfix in benchmark.py
Browse files Browse the repository at this point in the history
  • Loading branch information
sarlinpe committed Nov 21, 2023
1 parent 29f3e44 commit b1cd942
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ def print_as_table(d, title, cnames):
image0, image1 = [x.to(device) for x in inputs[pair_name]]
runtimes = []
for num_kpts in args.num_keypoints:
extractor.conf["max_num_keypoints"] = num_kpts
extractor.conf.max_num_keypoints = num_kpts
feats0 = extractor.extract(image0)
feats1 = extractor.extract(image1)
runtime = measure(
Expand Down Expand Up @@ -217,7 +217,7 @@ def print_as_table(d, title, cnames):
image0, image1 = [x.to(device) for x in inputs[pair_name]]
runtimes = []
for num_kpts in args.num_keypoints:
extractor.conf["max_num_keypoints"] = num_kpts
extractor.conf.max_num_keypoints = num_kpts
feats0 = extractor.extract(image0)
feats1 = extractor.extract(image1)
data = {
Expand Down

0 comments on commit b1cd942

Please sign in to comment.