mirror of https://github.com/vladmandic/human
update backend notes
parent
628f8b9e93
commit
fffa021911
23
Backends.md
23
Backends.md
|
@ -16,11 +16,14 @@ as TensorFlow implementation in JavaScript is by far the slowest
|
|||
|
||||
## WASM Backend
|
||||
|
||||
- WASM backend has good resuts under specific conditions:
|
||||
- Enable WASM SIMD support in your browser
|
||||
(CPU parallel processing instructions)
|
||||
- Reduce size of input image (e.g. webcam)
|
||||
as WASM does not have optimized image extraction methods
|
||||
WASM backend has good resuts under specific conditions:
|
||||
|
||||
- Enable WASM SIMD support in your browser
|
||||
(CPU parallel processing instructions)
|
||||
- Reduce size of input image (e.g. webcam)
|
||||
as WASM does not have optimized image extraction methods
|
||||
|
||||
<br>
|
||||
|
||||
### Loading WASM Files
|
||||
|
||||
|
@ -34,7 +37,15 @@ Cross-Origin-Opener-Policy: same-origin
|
|||
Cross-Origin-Embedder-Policy: require-corp
|
||||
```
|
||||
|
||||
Or load WASM files from a CDN such as <https://www.jsdelivr.com/package/npm/@tensorflow/tfjs-backend-wasm?path=dist>
|
||||
Or configure `Human` load WASM files directly from a CDN:
|
||||
|
||||
```json
|
||||
wasmPath: 'https://cdn.jsdelivr.net/npm/@tensorflow/tfjs-backend-wasm@3.8.0/dist/'
|
||||
```
|
||||
|
||||
Note that version of WASM binaries **must** match version of TFJS used by `Human` library
|
||||
|
||||
<br>
|
||||
|
||||
### How to enable WASM SIMD support
|
||||
|
||||
|
|
Loading…
Reference in New Issue