Skip to content

Commit 5243621

Browse files
committed
fix norm
1 parent 6be536b commit 5243621

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/core/evaluate.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -106,12 +106,12 @@ def accuracy_infinity_coco(output, target, hm_type="gaussian", thr=0.5):
106106
pred_coco = pred.copy()[~infinity_idxs][:, :17, :]
107107

108108
norm_infinity = norm.copy()[infinity_idxs]
109-
norm_anatomical = norm.copy()[infinity_idxs][17:, :]
110-
norm_coco = norm.copy()[~infinity_idxs][:17, :]
109+
norm_anatomical = norm.copy()[infinity_idxs]
110+
norm_coco = norm.copy()[~infinity_idxs]
111111

112112
target_infinity = target.copy()[infinity_idxs]
113-
target_coco = target.copy()[~infinity_idxs][:, :17, :]
114113
target_anatomical = target.copy()[infinity_idxs][:, 17:, :]
114+
target_coco = target.copy()[~infinity_idxs][:, :17, :]
115115

116116
dists_infinity = calc_dists(pred_infinity, target_infinity, norm_infinity)
117117
dists_coco = calc_dists(pred_coco, target_coco, norm_coco)

0 commit comments

Comments
 (0)