This commit is contained in:
24
react/features/stream-effects/virtual-background/vendor/README.md
vendored
Normal file
24
react/features/stream-effects/virtual-background/vendor/README.md
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
# Virtual Background on stream effects
|
||||
|
||||
> From https://google.github.io/mediapipe/solutions/models.html#selfie-segmentation
|
||||
|
||||
#### Canvas 2D + CPU
|
||||
|
||||
This rendering pipeline is pretty much the same as for BodyPix. It relies on Canvas compositing properties to blend rendering layers according to the segmentation mask.
|
||||
|
||||
Interactions with TFLite inference tool are executed on CPU to convert from UInt8 to Float32 for the model input and to apply softmax on the model output.
|
||||
|
||||
The framerate is higher and the quality looks better than BodyPix
|
||||
|
||||
#### SIMD and non-SIMD
|
||||
|
||||
How to test on SIMD:
|
||||
1. Go to chrome://flags/
|
||||
2. Search for SIMD flag
|
||||
3. Enable WebAssembly SIMD support(Enables support for the WebAssembly SIMD proposal).
|
||||
4. Reopen Google Chrome
|
||||
|
||||
More details:
|
||||
- [WebAssembly](https://webassembly.org/)
|
||||
- [WebAssembly SIMD](https://github.com/WebAssembly/simd)
|
||||
- [TFLite](https://blog.tensorflow.org/2020/07/accelerating-tensorflow-lite-xnnpack-integration.html)
|
||||
BIN
react/features/stream-effects/virtual-background/vendor/models/selfie_segmentation_landscape.tflite
vendored
Executable file
BIN
react/features/stream-effects/virtual-background/vendor/models/selfie_segmentation_landscape.tflite
vendored
Executable file
Binary file not shown.
17
react/features/stream-effects/virtual-background/vendor/tflite/tflite-simd.js
vendored
Normal file
17
react/features/stream-effects/virtual-background/vendor/tflite/tflite-simd.js
vendored
Normal file
File diff suppressed because one or more lines are too long
BIN
react/features/stream-effects/virtual-background/vendor/tflite/tflite-simd.wasm
vendored
Executable file
BIN
react/features/stream-effects/virtual-background/vendor/tflite/tflite-simd.wasm
vendored
Executable file
Binary file not shown.
17
react/features/stream-effects/virtual-background/vendor/tflite/tflite.js
vendored
Normal file
17
react/features/stream-effects/virtual-background/vendor/tflite/tflite.js
vendored
Normal file
File diff suppressed because one or more lines are too long
BIN
react/features/stream-effects/virtual-background/vendor/tflite/tflite.wasm
vendored
Executable file
BIN
react/features/stream-effects/virtual-background/vendor/tflite/tflite.wasm
vendored
Executable file
Binary file not shown.
Reference in New Issue
Block a user