We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f88e9b2 commit 912904cCopy full SHA for 912904c
models/face_detection_yunet/yunet.py
@@ -52,4 +52,4 @@ def setInputSize(self, input_size):
52
def infer(self, image):
53
# Forward
54
faces = self._model.detect(image)
55
- return np.array([]) if faces[1] is None else faces[1]
+ return np.empty(shape=(0, 5)) if faces[1] is None else faces[1]
0 commit comments