Skip to content

Commit

Permalink
scripts: Fix syntax warnings on Python 3.8.10
Browse files Browse the repository at this point in the history
  • Loading branch information
mintar committed Nov 2, 2022
1 parent 534c437 commit 07107e0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/metrics/add_compute.py
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ def get_models(path,suffix=""):
best_dist = dist
best_index = i_gt

if best_index is not -1:
if best_index != -1:
if not name_guess in adds_objects.keys():
adds_objects[name_guess] = []
adds_all.append(best_dist)
Expand Down
2 changes: 1 addition & 1 deletion scripts/train2/inference/detector.py
Original file line number Diff line number Diff line change
Expand Up @@ -748,7 +748,7 @@ def find_objects(vertex2, aff, config, numvertex=8, run_sampling=False, num_samp
best_angle = dist_angle
best_dist = dist_point

if i_best is -1:
if i_best == -1:
continue

if objects[i_best][1][i_lists] is None \
Expand Down

0 comments on commit 07107e0

Please sign in to comment.