Use ==/!= to compare constant literals (str, bytes, int, float, tuple)

pull/27/head
Christian Clauss 2020-07-25 01:43:38 +02:00 zatwierdzone przez GitHub
rodzic 66086f985f
commit 0343c01a8c
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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)