kopia lustrzana https://github.com/Shawn-Shan/fawkes
Use ==/!= to compare constant literals (str, bytes, int, float, tuple)
rodzic
66086f985f
commit
0343c01a8c
|
@ -704,7 +704,7 @@ def nms(boxes, threshold, method):
|
|||
w = np.maximum(0.0, xx2 - xx1 + 1)
|
||||
h = np.maximum(0.0, yy2 - yy1 + 1)
|
||||
inter = w * h
|
||||
if method is 'Min':
|
||||
if method == 'Min':
|
||||
o = inter / np.minimum(area[i], area[idx])
|
||||
else:
|
||||
o = inter / (area[i] + area[idx] - inter)
|
||||
|
|
Ładowanie…
Reference in New Issue