You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Tudor D. Pop 946339a52e
feat(blur) replace BodyPix with TFLite
4 vuotta sitten
..
models feat(blur) replace BodyPix with TFLite 4 vuotta sitten
tflite feat(blur) replace BodyPix with TFLite 4 vuotta sitten
README.md feat(blur) replace BodyPix with TFLite 4 vuotta sitten

README.md

Virtual Background on stream effects

Inspired from https://ai.googleblog.com/2020/10/background-features-in-google-meet.html and https://github.com/Volcomix/virtual-background.git

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: