Skip to content

Commit ac8ff64

Browse files
authored
Merge pull request #46 from timesler/dev
Increment version and fix bug in points concat
2 parents 691044b + 33a929c commit ac8ff64

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

models/utils/detect_face.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def detect_face(imgs, minsize, pnet, rnet, onet, threshold, factor, device):
4646
batch_boxes = []
4747
batch_points = []
4848
for img, total_boxes in zip(imgs, total_boxes_all):
49-
points = []
49+
points = np.zeros((2, 5, 0))
5050
numbox = total_boxes.shape[0]
5151
if numbox > 0:
5252
pick = nms(total_boxes, 0.7, "Union")
@@ -127,10 +127,10 @@ def detect_face(imgs, minsize, pnet, rnet, onet, threshold, factor, device):
127127
total_boxes = bbreg(total_boxes, np.transpose(mv))
128128
pick = nms(total_boxes, 0.7, "Min")
129129
total_boxes = total_boxes[pick, :]
130-
points = np.transpose(points[:, :, pick])
130+
points = points[:, :, pick]
131131

132132
batch_boxes.append(total_boxes)
133-
batch_points.append(points)
133+
batch_points.append(np.transpose(points))
134134

135135
return np.array(batch_boxes), np.array(batch_points)
136136

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import setuptools, os
22

33
PACKAGE_NAME = 'facenet-pytorch'
4-
VERSION = '0.5.0'
4+
VERSION = '1.0.1'
55
AUTHOR = 'Tim Esler'
66
EMAIL = 'tim.esler@gmail.com'
77
DESCRIPTION = 'Pretrained Pytorch face detection and recognition models'

0 commit comments

Comments
 (0)