Skip to content

Commit 26c7fb4

Browse files
adjust readme, net.forward has to be awaited
1 parent 391caab commit 26c7fb4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ faceapi.drawDetection(canvas, detectionsForSize, { withScore: false })
171171
You can also obtain the tensors of the unfiltered bounding boxes and scores for each image in the batch (tensors have to be disposed manually):
172172

173173
``` javascript
174-
const { boxes, scores } = net.forward('myImg')
174+
const { boxes, scores } = await net.forward('myImg')
175175
```
176176

177177
<a name="usage-face-recognition"></a>
@@ -195,7 +195,7 @@ else
195195
Or simply obtain the tensor (tensor has to be disposed manually):
196196

197197
``` javascript
198-
const t = net.forward('myImg')
198+
const t = await net.forward('myImg')
199199
```
200200

201201
<a name="usage-face-landmark-detection"></a>

0 commit comments

Comments
 (0)