Skip to content

Commit

Permalink
Update to add Model Provenance placeholder and a better definition of…
Browse files Browse the repository at this point in the history
… non-maximum suppression on the Facemesh & Handpose docs
  • Loading branch information
bomanimc committed Oct 15, 2020
1 parent 0014ae7 commit 273461c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
7 changes: 6 additions & 1 deletion docs/reference/facemesh.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ const facemesh = ml5.facemesh(?video, ?options, ?callback);
maxContinuousChecks: 5, // How many frames to go without running the bounding box detector. Only relevant if maxFaces > 1. Defaults to 5.
detectionConfidence: 0.9, // Threshold for discarding a prediction. Defaults to 0.9.
maxFaces: 10, // The maximum number of faces detected in the input. Should be set to the minimum number for performance. Defaults to 10.
scoreThreshold: 0.75, // A threshold for removing multiple (likely duplicate) detections based on a "non-maximum suppression" algorithm. Defaults to 0.75.
iouThreshold: 0.3, // A float representing the threshold for deciding whether boxes overlap too much in non-maximum suppression. Must be between [0, 1]. Defaults to 0.3.
scoreThreshold: 0.75, // A threshold for deciding when to remove boxes based on score in non-maximum suppression. Defaults to 0.75
}
```
Expand Down Expand Up @@ -176,6 +176,11 @@ No demos yet - contribute one today!
No tutorials yet - contribute one today!
## Model and Data Provenance
> A project started by [Ellen Nickles](https://github.com/ellennickles/)
Coming soon!
## Acknowledgements
**Contributors**:
Expand Down
15 changes: 10 additions & 5 deletions docs/reference/handpose.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@ const handpose = ml5.handpose(?video, ?options, ?callback);
* **options**: OPTIONAL. A object that contains properties that effect the Handpose model accuracy, results, etc. See documentation on the available options in [TensorFlow's Handpose documentation](https://github.com/tensorflow/tfjs-models/tree/master/handpose#parameters-for-handposeload).
```js
const options = {
flipHorizontal: false, // boolean value for if the video should be flipped, defaults to false
maxContinuousChecks: Infinity, // How many frames to go without running the bounding box detector. Defaults to infinity, but try a lower value if the detector is consistently producing bad predictions.
detectionConfidence: 0.8, // Threshold for discarding a prediction. Defaults to 0.8.
iouThreshold: 0.3, // A float representing the threshold for deciding whether boxes overlap too much in non-maximum suppression. Must be between [0, 1]. Defaults to 0.3.
scoreThreshold: 0.75, // A threshold for deciding when to remove boxes based on score in non-maximum suppression. Defaults to 0.75
flipHorizontal: false, // boolean value for if the video should be flipped, defaults to false
maxContinuousChecks: Infinity, // How many frames to go without running the bounding box detector. Defaults to infinity, but try a lower value if the detector is consistently producing bad predictions.
detectionConfidence: 0.8, // Threshold for discarding a prediction. Defaults to 0.8.
scoreThreshold: 0.75, // A threshold for removing multiple (likely duplicate) detections based on a "non-maximum suppression" algorithm. Defaults to 0.75
iouThreshold: 0.3, // A float representing the threshold for deciding whether boxes overlap too much in non-maximum suppression. Must be between [0, 1]. Defaults to 0.3.
}
```
Expand Down Expand Up @@ -171,6 +171,11 @@ No demos yet - contribute one today!
No tutorials yet - contribute one today!
## Model and Data Provenance
> A project started by [Ellen Nickles](https://github.com/ellennickles/)
Coming soon!
## Acknowledgements
**Contributors**:
Expand Down

0 comments on commit 273461c

Please sign in to comment.