mlboydaisuke commited on
Commit
2ac54fd
Β·
verified Β·
1 Parent(s): 98a233a

Card: add a measured Performance table (Pixel 8a, benchmark_model GPU+CPU), naming the runtime for each row

Browse files
Files changed (1) hide show
  1. README.md +17 -0
README.md CHANGED
@@ -78,6 +78,23 @@ tflite-vs-torch corr **1.0**, device-vs-torch corr **0.9999**.
78
 
79
  Center-crop to square, resize to 256Γ—256, RGB **0–255** (no normalization), NCHW. Output is 0–255 RGB (clamp).
80
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
81
  ## License
82
 
83
  [BSD-3-Clause](https://github.com/pytorch/examples/blob/main/LICENSE). Upstream:
 
78
 
79
  Center-crop to square, resize to 256Γ—256, RGB **0–255** (no normalization), NCHW. Output is 0–255 RGB (clamp).
80
 
81
+ ## Performance
82
+
83
+ Measured on a **Pixel 8a** (Tensor G3, Android 16) with the standard TFLite [`benchmark_model`](https://ai.google.dev/edge/litert/models/measurement) tool β€” 10 warm-up runs then 50 timed runs, reported as the tool's mean.
84
+
85
+ | Runtime | Backend | Graph on GPU | Latency |
86
+ |---|---|---|---|
87
+ | TFLite `benchmark_model` (`TfLiteGpuDelegateV2`) β€” `style_udnie_fp16.tflite` | GPU (OpenCL) | 350 / 350 | 37.4 ms |
88
+ | TFLite `benchmark_model` (`TfLiteGpuDelegateV2`) β€” `style_mosaic_fp16.tflite` | GPU (OpenCL) | 350 / 350 | 37.5 ms |
89
+ | TFLite `benchmark_model` (`TfLiteGpuDelegateV2`) β€” `style_rain_princess_fp16.tflite` | GPU (OpenCL) | 350 / 350 | 37.7 ms |
90
+ | TFLite `benchmark_model` (`TfLiteGpuDelegateV2`) β€” `style_candy_fp16.tflite` | GPU (OpenCL) | 350 / 350 | 37.7 ms |
91
+ | TFLite `benchmark_model` β€” `style_udnie_fp16.tflite` | CPU (XNNPACK, 4 threads) | β€” | 406.0 ms |
92
+ | TFLite `benchmark_model` β€” `style_mosaic_fp16.tflite` | CPU (XNNPACK, 4 threads) | β€” | 404.3 ms |
93
+ | TFLite `benchmark_model` β€” `style_rain_princess_fp16.tflite` | CPU (XNNPACK, 4 threads) | β€” | 404.5 ms |
94
+ | TFLite `benchmark_model` β€” `style_candy_fp16.tflite` | CPU (XNNPACK, 4 threads) | β€” | 402.5 ms |
95
+
96
+ **Any on-device figure recorded when this model shipped came from a different runtime.** It was taken through LiteRT's own `CompiledModel` accelerator (logcat reports it as `LITERT_CL`), which is the path the Kotlin sample app and the LiteRT API use, and it appears elsewhere on this card. The rows above are the classic TFLite OpenCL delegate, measured with a tool anyone can download and re-run. The two are not comparable, so read the rows above as a reproducible floor rather than as this model's speed on LiteRT.
97
+
98
  ## License
99
 
100
  [BSD-3-Clause](https://github.com/pytorch/examples/blob/main/LICENSE). Upstream: