Update box_utils.py
Browse files- box_utils.py +1 -1
box_utils.py
CHANGED
|
@@ -106,7 +106,7 @@ def postprocess(matches, prompt_labels, img_matches=None):
|
|
| 106 |
m['logit'], [1] *
|
| 107 |
len(m['box_id']),
|
| 108 |
list(np.array(m['cls_emb'])))))
|
| 109 |
-
if img_matches is not None k in img_matches:
|
| 110 |
img_m = img_matches_[k]
|
| 111 |
# and also those non-TopK hits and those non-topk are not anticipating training
|
| 112 |
boxes += [i for i in map(list, zip(img_m['box_id'], img_m['cx'], img_m['cy'], img_m['w'], img_m['h'],
|
|
|
|
| 106 |
m['logit'], [1] *
|
| 107 |
len(m['box_id']),
|
| 108 |
list(np.array(m['cls_emb'])))))
|
| 109 |
+
if img_matches is not None and k in img_matches:
|
| 110 |
img_m = img_matches_[k]
|
| 111 |
# and also those non-TopK hits and those non-topk are not anticipating training
|
| 112 |
boxes += [i for i in map(list, zip(img_m['box_id'], img_m['cx'], img_m['cy'], img_m['w'], img_m['h'],
|