mirror of https://github.com/vladmandic/human
update demos
parent
ae05c7d2b2
commit
69a080e64b
|
@ -42,7 +42,7 @@ JavaScript module using TensorFlow/JS Machine Learning library
|
||||||
## Demos
|
## Demos
|
||||||
|
|
||||||
- [**List of all Demo applications**](https://github.com/vladmandic/human/wiki/Demos)
|
- [**List of all Demo applications**](https://github.com/vladmandic/human/wiki/Demos)
|
||||||
- [**Examples galery**](https://vladmandic.github.io/human/samples/samples.html)
|
- [**Live Examples galery**](https://vladmandic.github.io/human/samples/index.html)
|
||||||
|
|
||||||
### Browser Demos
|
### Browser Demos
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
<link rel="shortcut icon" href="../favicon.ico" type="image/x-icon">
|
<link rel="shortcut icon" href="../favicon.ico" type="image/x-icon">
|
||||||
<link rel="apple-touch-icon" href="../assets/icon.png">
|
<link rel="apple-touch-icon" href="../assets/icon.png">
|
||||||
<style>
|
<style>
|
||||||
@font-face { font-family: 'Lato'; font-display: swap; font-style: normal; font-weight: 100; src: local('Lato'), url('../../assets/lato-light.woff2') }
|
@font-face { font-family: 'Lato'; font-display: swap; font-style: normal; font-weight: 100; src: local('Lato'), url('../assets/lato-light.woff2') }
|
||||||
html { font-family: 'Lato', 'Segoe UI'; font-size: 24px; font-variant: small-caps; }
|
html { font-family: 'Lato', 'Segoe UI'; font-size: 24px; font-variant: small-caps; }
|
||||||
body { margin: 24px; background: black; color: white; overflow-x: auto; overflow-y: auto; text-align: -webkit-center; min-height: 100%; max-height: 100%; }
|
body { margin: 24px; background: black; color: white; overflow-x: auto; overflow-y: auto; text-align: -webkit-center; min-height: 100%; max-height: 100%; }
|
||||||
::-webkit-scrollbar { height: 8px; border: 0; border-radius: 0; }
|
::-webkit-scrollbar { height: 8px; border: 0; border-radius: 0; }
|
|
@ -96,7 +96,7 @@ export async function getBoxes(inputImage: Tensor, config: Config) {
|
||||||
confidence,
|
confidence,
|
||||||
};
|
};
|
||||||
const scaledBox = util.scaleBoxCoordinates(rawBox, [(inputImage.shape[2] || 0) / inputSize, (inputImage.shape[1] || 0) / inputSize]);
|
const scaledBox = util.scaleBoxCoordinates(rawBox, [(inputImage.shape[2] || 0) / inputSize, (inputImage.shape[1] || 0) / inputSize]);
|
||||||
const enlargedBox = util.enlargeBox(scaledBox, faceBoxScaleFactor);
|
const enlargedBox = util.enlargeBox(scaledBox, config.face['scale'] || faceBoxScaleFactor);
|
||||||
const squaredBox = util.squarifyBox(enlargedBox);
|
const squaredBox = util.squarifyBox(enlargedBox);
|
||||||
boxes.push(squaredBox);
|
boxes.push(squaredBox);
|
||||||
Object.keys(b).forEach((tensor) => tf.dispose(b[tensor]));
|
Object.keys(b).forEach((tensor) => tf.dispose(b[tensor]));
|
||||||
|
|
2
wiki
2
wiki
|
@ -1 +1 @@
|
||||||
Subproject commit 56347efa606cddca796539b31e5374857dbb008f
|
Subproject commit 8502f7ec4ed5d6a9abe698e628a5baff8c3207e2
|
Loading…
Reference in New Issue