mirror of
https://github.com/iperov/DeepFaceLab.git
synced 2025-08-22 06:23:20 -07:00
Merge pull request #1 from iperov/master
Identity is not the same thing as equality in Python (#291)
This commit is contained in:
commit
b4b65bd4d0
1 changed files with 1 additions and 1 deletions
|
@ -291,7 +291,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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue