From fffa02191183f2657a702a747f4c4931c92565df Mon Sep 17 00:00:00 2001 From: Vladimir Mandic Date: Thu, 29 Jul 2021 09:40:06 -0400 Subject: [PATCH] update backend notes --- Backends.md | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/Backends.md b/Backends.md index 7eddcac..43bf150 100644 --- a/Backends.md +++ b/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 + +
### 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 +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 + +
### How to enable WASM SIMD support