tree: ad294e77ff2a262c34253fd193995bdba22b519d [path history] [tgz]
  1. README.md
ml_benchmark/model_zoo/README.md

ChromeOS ML Model Zoo

This is a collection of TFLite models that can be used to benchmark devices for typical ML use cases within ChromeOS. Where applicable, baseline figures are provided to indicate the minimum performance requirements for these models to meet the user experience goals of those use cases.

These models can be easily deployed to /usr/local/share/ml-test-assets on a DUT via the chromeos-base/ml-test-assets package:

emerge-${BOARD} ml-test-assets && cros deploy <DUT> ml-test-assets

The models can be downloaded directly here

Tools

Latency, Max Memory

Latency and maximum memory usage is measured by the TFLite Benchmark Model Tool.

This is installed by default on all ChromeOS test images.

Example usage:

benchmark_model --graph=${tflite_file} --min_secs=20 <delegate options>

Accuracy

Accuracy is measured by the TFLite Inference Diff Tool.

This is installed by default on all ChromeOS test images.

Example usage:

inference_diff_eval --graph=${tflite_file} <delegate options>

Use Cases

Video Conferencing

  • Note 1 : These models are CNN based.
  • Note 2 : selfie_segmentation_landscape_256x256 has an F16 and F32 variant, indicated by the filename.

The convolution_benchmark_*_144x256 models are production model graphs with randomized weights, so we don't measure the accuracy of these models.

ModelLatency (ms)AccuracyPower UsageMax Memory
selfie_segmentation_landscape_256x256<= 6avg_err <=0.0000003
std_dev<=5e-06
TBD<=100MB
convolution_benchmark_1_144x256<= 4-TBD<=100MB
convolution_benchmark_2_144x256<= 4-TBD<=100MB

Image Search

Note: These models are CNN based.

ModelLatency (ms)AccuracyPower UsageMax Memory
mobilenet_v2_1.0_224<= 5avg_err <=0.00005
std_dev <=6e-06
TBD<=150MB
mobilenet_v2_1.0_224_quant<= 5avg_err <=1.5
std_dev <=0.2
TBD<=150MB

Audio Models

Note: These models are running on CPU in production

Note2: While running benchmark_model with following models, add --run_delay=<secs> to simulate audio server behavior.

ModelLatency on CPU (ms)Extra argumentssha256
lstm<= 1--run_delay=0.01381506dd6209615e57285531d5e97c159ff41605341d184c7fd869eb8e364cfe
seanet_wave<= 2--run_delay=0.0278c23dbb0e82d3cd59d0027fbf5b4351c4125494d7bccb52eb6b509c5e72fca8
seanet_stft<= 2--run_delay=0.02a46d719aa611ceddc41f6a9437946f8ebb06cd774fc6db01b766110113f9be1b