Skip to content

Commit

Permalink
copy bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
1996scarlet committed Oct 25, 2020
1 parent a355c1d commit b2064a0
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
3 changes: 1 addition & 2 deletions face_detector.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ def find_biggest_box(dets):
@staticmethod
def non_maximum_suppression(dets, threshold):
''' ##### Author [email protected]
merged_non_maximum_suppression
Greedily select boxes with high confidence and overlap with threshold.
If the boxes' overlap > threshold, we consider they are the same one.
Expand Down Expand Up @@ -82,7 +81,7 @@ def non_maximum_suppression(dets, threshold):
while order.size > 0:
keep, others = order[0], order[1:]

yield dets[keep]
yield np.copy(dets[keep])

xx1 = maximum(x1[keep], x1[others])
yy1 = maximum(y1[keep], y1[others])
Expand Down
14 changes: 13 additions & 1 deletion weights/model_update.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
import numpy as np

order = np.array([3,5,2,4,1,0])

ovr =

a = np.arange(9)
inds = np.where(a > 5)[0]

print(inds + 1)
exit(0)

import mxnet as mx
from mxnet.contrib import onnx as onnx_mxnet

Expand Down Expand Up @@ -27,4 +39,4 @@
# "op": "Softmax",
# "axis": "1",

# mmtoir -f mxnet -n M25-symbol.json -w M25-0000.params -d resnet152 --inputShape 3,112,112
# mmtoir -f mxnet -n M25-symbol.json -w M25-0000.params -d resnet152 --inputShape 3,112,112

0 comments on commit b2064a0

Please sign in to comment.