ZFTurbo / Weighted-Boxes-Fusion

Set of methods to ensemble boxes from different object detection models, including implementation of "Weighted boxes fusion (WBF)" method.
MIT License
1.72k stars 238 forks source link

Errors? #5

Open JustSoDiao opened 4 years ago

JustSoDiao commented 4 years ago

According to the function, the results of NMW score shouldn't be larger than 1, however, I can get many scores that are larger than 1. I can test this error in your example if we set all elements as 1.

for i in range(len(weights)):

scores_list[i] = (np.array(scores_list[i]) * weights[i]) / weights.sum()