File size: 1,674 Bytes
ca9896d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
# Video Effects Test Models
This directory contains test models for use with the video effects service.
They are obtained from the mediapipe repository and can be downloaded by
appending the file name to the following URL:
https://storage.googleapis.com/mediapipe-assets/
Please keep the following table updated with the version information for each
model file when updating them.
| Model | Modified Date |
|:-------------------------------------|:--------------|
|selfie_segmentation.tflite | 2023-05-06 |
|selfie_segmentation_landscape.crx3 | 2023-05-06 |
|selfie_segmentation_landscape.tflite | 2023-05-06 |
## Testing
In addition to the .tflite file, this directory contains a .crx3 file derived
from the TFLite model. This file contains the model in a format suitable for
using in Chrome. In order to override the model file to be used, the flag
`--optimization-guide-model-override` can be passed in when launching Chrome.
For example, in order to allow the Video Effects Service to use the segmentation
model contained in this directory, run Chrome as follows:
```
src> outdir/chrome --optimization-guide-model-override=OPTIMIZATION_TARGET_CAMERA_BACKGROUND_SEGMENTATION|services/test/data/video_effects/models/selfie_segmentation_landscape.crx3
```
In cmd.exe on Windows, the pipe (`|`) character is reserved and must be escaped
by using `^|` character sequence. When running on Windows, use the following:
```
src> outdir\chrome.exe --optimization-guide-model-override=OPTIMIZATION_TARGET_CAMERA_BACKGROUND_SEGMENTATION^|services\test\data\video_effects\models\selfie_segmentation_landscape.crx3
```
|