Unet-Segmentation: Optimized for Qualcomm Devices
UNet is a machine learning model that produces a segmentation mask for an image. The most basic use case will label each pixel in the image as being in the foreground or the background. More advanced usage will assign a class label to each pixel. This version of the model was trained on the data from Kaggle's Carvana Image Masking Challenge (see https://www.kaggle.com/c/carvana-image-masking-challenge) and is used for vehicle segmentation.
This is based on the implementation of Unet-Segmentation found here. This repository contains pre-exported model files optimized for Qualcomm® devices. You can use the Qualcomm® AI Hub Models library to export with custom configurations. More details on model performance across various devices, can be found here.
Qualcomm AI Hub Models uses Qualcomm AI Hub Workbench to compile, profile, and evaluate this model. Sign up to run these models on a hosted Qualcomm® device.
Getting Started
Due to licensing restrictions, we cannot distribute pre-exported model assets for this model. Use the Qualcomm® AI Hub Models Python library to compile and export the model with your own:
- Custom weights (e.g., fine-tuned checkpoints)
- Custom input shapes
- Target device and runtime configurations
See our repository for Unet-Segmentation on GitHub for usage instructions.
Model Details
Model Type: Model_use_case.semantic_segmentation
Model Stats:
- Input resolution: 640x1280
- Model checkpoint: unet_carvana_scale1.0_epoch2
- Model size (float): 118 MB
- Model size (w8a8): 29.8 MB
- Number of output classes: 2 (foreground / background)
- Number of parameters: 31.0M
Performance Summary
| Model | Runtime | Precision | Chipset | Inference Time (ms) | Peak Memory Range (MB) | Primary Compute Unit |
|---|---|---|---|---|---|---|
| Unet-Segmentation | ONNX | float | Snapdragon® 8 Elite Gen 5 For Galaxy Mobile | 58.613 ms | 16 - 276 MB | NPU |
| Unet-Segmentation | ONNX | float | Snapdragon® 8 Elite For Galaxy Mobile | 80.046 ms | 16 - 263 MB | NPU |
| Unet-Segmentation | ONNX | float | Snapdragon® X2 Elite | 70.327 ms | 17 - 17 MB | NPU |
| Unet-Segmentation | ONNX | float | Snapdragon® X Elite | 131.451 ms | 54 - 54 MB | NPU |
| Unet-Segmentation | ONNX | float | Snapdragon® 8 Gen 3 Mobile | 101.666 ms | 3 - 455 MB | NPU |
| Unet-Segmentation | ONNX | float | Snapdragon® 8 Gen 1 Mobile | 275.602 ms | 22 - 511 MB | NPU |
| Unet-Segmentation | ONNX | float | Qualcomm® Dragonwing™ IQ-8275 | 274.295 ms | 9 - 23 MB | NPU |
| Unet-Segmentation | ONNX | float | Qualcomm® Dragonwing™ QCS8550 (Proxy) | 132.632 ms | 0 - 567 MB | NPU |
| Unet-Segmentation | ONNX | float | Qualcomm® QCS8450 | 275.602 ms | 22 - 511 MB | NPU |
| Unet-Segmentation | ONNX | float | Qualcomm® Dragonwing™ IQ-9075 | 239.259 ms | 9 - 22 MB | NPU |
| Unet-Segmentation | ONNX | float | Qualcomm® Dragonwing™ IQ-X7181 | 131.451 ms | 54 - 54 MB | NPU |
| Unet-Segmentation | ONNX | float | Qualcomm® Dragonwing™ Q-8750 | 80.046 ms | 16 - 263 MB | NPU |
| Unet-Segmentation | ONNX | float | Snapdragon® 8 Elite Extreme Gen 6 Mobile | 48.839 ms | 23 - 273 MB | NPU |
| Unet-Segmentation | ONNX | float | Snapdragon® 8 Elite Gen 6 Mobile | 56.283 ms | 5 - 264 MB | NPU |
| Unet-Segmentation | ONNX | w8a8 | Snapdragon® 8 Elite Gen 5 For Galaxy Mobile | 16.184 ms | 3 - 182 MB | NPU |
| Unet-Segmentation | ONNX | w8a8 | Snapdragon® 8 Elite For Galaxy Mobile | 21.537 ms | 3 - 179 MB | NPU |
| Unet-Segmentation | ONNX | w8a8 | Snapdragon® X2 Elite | 18.685 ms | 4 - 4 MB | NPU |
| Unet-Segmentation | ONNX | w8a8 | Snapdragon® X Elite | 36.617 ms | 30 - 30 MB | NPU |
| Unet-Segmentation | ONNX | w8a8 | Snapdragon® 8 Gen 3 Mobile | 26.128 ms | 6 - 328 MB | NPU |
| Unet-Segmentation | ONNX | w8a8 | Snapdragon® 8 Gen 1 Mobile | 48.493 ms | 6 - 329 MB | NPU |
| Unet-Segmentation | ONNX | w8a8 | Qualcomm® Dragonwing™ QCS6490 | 246.558 ms | 3 - 9 MB | NPU |
| Unet-Segmentation | ONNX | w8a8 | Qualcomm® Dragonwing™ IQ-8275 | 37.368 ms | 4 - 8 MB | NPU |
| Unet-Segmentation | ONNX | w8a8 | Qualcomm® Dragonwing™ QCS8550 (Proxy) | 37.402 ms | 0 - 32 MB | NPU |
| Unet-Segmentation | ONNX | w8a8 | Qualcomm® QCS8450 | 48.493 ms | 6 - 329 MB | NPU |
| Unet-Segmentation | ONNX | w8a8 | Qualcomm® Dragonwing™ IQ-9075 | 32.794 ms | 4 - 7 MB | NPU |
| Unet-Segmentation | ONNX | w8a8 | Qualcomm® Dragonwing™ IQ-X7181 | 36.617 ms | 30 - 30 MB | NPU |
| Unet-Segmentation | ONNX | w8a8 | Qualcomm® Dragonwing™ Q-6690 | 1061.222 ms | 0 - 485 MB | NPU |
| Unet-Segmentation | ONNX | w8a8 | Qualcomm® Dragonwing™ Q-7790 | 74.947 ms | 6 - 259 MB | NPU |
| Unet-Segmentation | ONNX | w8a8 | Qualcomm® Dragonwing™ Q-8750 | 21.537 ms | 3 - 179 MB | NPU |
| Unet-Segmentation | ONNX | w8a8 | Snapdragon® 7 Gen 4 Mobile | 74.947 ms | 6 - 259 MB | NPU |
| Unet-Segmentation | ONNX | w8a8 | Snapdragon® 8 Elite Extreme Gen 6 Mobile | 13.732 ms | 6 - 183 MB | NPU |
| Unet-Segmentation | ONNX | w8a8 | Snapdragon® 8 Elite Gen 6 Mobile | 13.359 ms | 6 - 185 MB | NPU |
| Unet-Segmentation | QNN_DLC | float | Snapdragon® 8 Elite Gen 5 For Galaxy Mobile | 54.533 ms | 0 - 275 MB | NPU |
| Unet-Segmentation | QNN_DLC | float | Snapdragon® 8 Elite For Galaxy Mobile | 76.214 ms | 9 - 271 MB | NPU |
| Unet-Segmentation | QNN_DLC | float | Snapdragon® X2 Elite | 67.671 ms | 9 - 9 MB | NPU |
| Unet-Segmentation | QNN_DLC | float | Snapdragon® X Elite | 125.338 ms | 9 - 9 MB | NPU |
| Unet-Segmentation | QNN_DLC | float | Snapdragon® 8 Gen 3 Mobile | 102.472 ms | 9 - 461 MB | NPU |
| Unet-Segmentation | QNN_DLC | float | Snapdragon® 8 Gen 1 Mobile | 228.512 ms | 6 - 467 MB | NPU |
| Unet-Segmentation | QNN_DLC | float | Qualcomm® Dragonwing™ IQ-8275 | 265.766 ms | 9 - 28 MB | NPU |
| Unet-Segmentation | QNN_DLC | float | Qualcomm® Dragonwing™ QCS8550 (Proxy) | 124.391 ms | 10 - 835 MB | NPU |
| Unet-Segmentation | QNN_DLC | float | Qualcomm® QCS8450 | 228.512 ms | 6 - 467 MB | NPU |
| Unet-Segmentation | QNN_DLC | float | Qualcomm® Dragonwing™ IQ-9075 | 231.865 ms | 9 - 27 MB | NPU |
| Unet-Segmentation | QNN_DLC | float | Qualcomm® Dragonwing™ IQ-X7181 | 125.338 ms | 9 - 9 MB | NPU |
| Unet-Segmentation | QNN_DLC | float | Qualcomm® Dragonwing™ Q-8750 | 76.214 ms | 9 - 271 MB | NPU |
| Unet-Segmentation | QNN_DLC | float | Qualcomm® SA8295P | 253.735 ms | 0 - 253 MB | NPU |
| Unet-Segmentation | QNN_DLC | float | Snapdragon® 8 Elite Extreme Gen 6 Mobile | 45.964 ms | 9 - 272 MB | NPU |
| Unet-Segmentation | QNN_DLC | float | Snapdragon® 8 Elite Gen 6 Mobile | 49.861 ms | 9 - 268 MB | NPU |
| Unet-Segmentation | QNN_DLC | w8a8 | Snapdragon® 8 Elite Gen 5 For Galaxy Mobile | 15.318 ms | 2 - 190 MB | NPU |
| Unet-Segmentation | QNN_DLC | w8a8 | Snapdragon® 8 Elite For Galaxy Mobile | 21.83 ms | 2 - 181 MB | NPU |
| Unet-Segmentation | QNN_DLC | w8a8 | Snapdragon® X2 Elite | 18.222 ms | 2 - 2 MB | NPU |
| Unet-Segmentation | QNN_DLC | w8a8 | Snapdragon® X Elite | 34.683 ms | 2 - 2 MB | NPU |
| Unet-Segmentation | QNN_DLC | w8a8 | Snapdragon® 8 Gen 3 Mobile | 25.242 ms | 2 - 312 MB | NPU |
| Unet-Segmentation | QNN_DLC | w8a8 | Snapdragon® 8 Gen 1 Mobile | 45.541 ms | 2 - 314 MB | NPU |
| Unet-Segmentation | QNN_DLC | w8a8 | Qualcomm® Dragonwing™ QCS6490 | 237.713 ms | 2 - 8 MB | NPU |
| Unet-Segmentation | QNN_DLC | w8a8 | Qualcomm® Dragonwing™ IQ-8275 | 36.299 ms | 2 - 9 MB | NPU |
| Unet-Segmentation | QNN_DLC | w8a8 | Qualcomm® Dragonwing™ QCS8550 (Proxy) | 33.336 ms | 3 - 4 MB | NPU |
| Unet-Segmentation | QNN_DLC | w8a8 | Qualcomm® SA8775P | 30.664 ms | 1 - 172 MB | NPU |
| Unet-Segmentation | QNN_DLC | w8a8 | Qualcomm® SA8650P | 30.664 ms | 1 - 172 MB | NPU |
| Unet-Segmentation | QNN_DLC | w8a8 | Qualcomm® SA8255P | 30.664 ms | 1 - 172 MB | NPU |
| Unet-Segmentation | QNN_DLC | w8a8 | Qualcomm® QCS8450 | 45.541 ms | 2 - 314 MB | NPU |
| Unet-Segmentation | QNN_DLC | w8a8 | Qualcomm® Dragonwing™ IQ-9075 | 31.496 ms | 1 - 7 MB | NPU |
| Unet-Segmentation | QNN_DLC | w8a8 | Qualcomm® Dragonwing™ IQ-X7181 | 34.683 ms | 2 - 2 MB | NPU |
| Unet-Segmentation | QNN_DLC | w8a8 | Qualcomm® Dragonwing™ Q-6690 | 1043.264 ms | 2 - 474 MB | NPU |
| Unet-Segmentation | QNN_DLC | w8a8 | Qualcomm® Dragonwing™ Q-7790 | 70.468 ms | 2 - 249 MB | NPU |
| Unet-Segmentation | QNN_DLC | w8a8 | Qualcomm® Dragonwing™ Q-8750 | 21.83 ms | 2 - 181 MB | NPU |
| Unet-Segmentation | QNN_DLC | w8a8 | Qualcomm® SA7255P | 119.675 ms | 1 - 172 MB | NPU |
| Unet-Segmentation | QNN_DLC | w8a8 | Qualcomm® SA8295P | 62.205 ms | 0 - 171 MB | NPU |
| Unet-Segmentation | QNN_DLC | w8a8 | Snapdragon® 7 Gen 4 Mobile | 70.468 ms | 2 - 249 MB | NPU |
| Unet-Segmentation | QNN_DLC | w8a8 | Snapdragon® 8 Elite Extreme Gen 6 Mobile | 12.981 ms | 2 - 181 MB | NPU |
| Unet-Segmentation | QNN_DLC | w8a8 | Snapdragon® 8 Elite Gen 6 Mobile | 12.708 ms | 2 - 170 MB | NPU |
| Unet-Segmentation | TFLITE | float | Snapdragon® 8 Elite Gen 5 For Galaxy Mobile | 54.97 ms | 4 - 278 MB | NPU |
| Unet-Segmentation | TFLITE | float | Snapdragon® 8 Elite For Galaxy Mobile | 75.895 ms | 3 - 264 MB | NPU |
| Unet-Segmentation | TFLITE | float | Snapdragon® 8 Gen 3 Mobile | 102.833 ms | 6 - 511 MB | NPU |
| Unet-Segmentation | TFLITE | float | Snapdragon® 8 Gen 1 Mobile | 234.657 ms | 7 - 526 MB | NPU |
| Unet-Segmentation | TFLITE | float | Qualcomm® Dragonwing™ IQ-8275 | 266.104 ms | 0 - 81 MB | NPU |
| Unet-Segmentation | TFLITE | float | Qualcomm® Dragonwing™ QCS8550 (Proxy) | 128.067 ms | 7 - 443 MB | NPU |
| Unet-Segmentation | TFLITE | float | Qualcomm® SA8775P | 233.631 ms | 7 - 260 MB | NPU |
| Unet-Segmentation | TFLITE | float | Qualcomm® SA8650P | 233.631 ms | 7 - 260 MB | NPU |
| Unet-Segmentation | TFLITE | float | Qualcomm® SA8255P | 233.631 ms | 7 - 260 MB | NPU |
| Unet-Segmentation | TFLITE | float | Qualcomm® QCS8450 | 234.657 ms | 7 - 526 MB | NPU |
| Unet-Segmentation | TFLITE | float | Qualcomm® Dragonwing™ IQ-9075 | 232.206 ms | 0 - 80 MB | NPU |
| Unet-Segmentation | TFLITE | float | Qualcomm® Dragonwing™ Q-8750 | 75.895 ms | 3 - 264 MB | NPU |
| Unet-Segmentation | TFLITE | float | Qualcomm® SA7255P | 944.341 ms | 7 - 260 MB | NPU |
| Unet-Segmentation | TFLITE | float | Qualcomm® SA8295P | 253.682 ms | 7 - 259 MB | NPU |
| Unet-Segmentation | TFLITE | float | Snapdragon® 8 Elite Extreme Gen 6 Mobile | 46.506 ms | 6 - 269 MB | NPU |
| Unet-Segmentation | TFLITE | float | Snapdragon® 8 Elite Gen 6 Mobile | 52.918 ms | 6 - 263 MB | NPU |
| Unet-Segmentation | TFLITE | w8a8 | Snapdragon® 8 Elite Gen 5 For Galaxy Mobile | 15.315 ms | 1 - 187 MB | NPU |
| Unet-Segmentation | TFLITE | w8a8 | Snapdragon® 8 Elite For Galaxy Mobile | 21.72 ms | 1 - 179 MB | NPU |
| Unet-Segmentation | TFLITE | w8a8 | Snapdragon® 8 Gen 3 Mobile | 25.044 ms | 1 - 308 MB | NPU |
| Unet-Segmentation | TFLITE | w8a8 | Snapdragon® 8 Gen 1 Mobile | 48.429 ms | 2 - 313 MB | NPU |
| Unet-Segmentation | TFLITE | w8a8 | Qualcomm® Dragonwing™ QCS6490 | 243.372 ms | 0 - 42 MB | NPU |
| Unet-Segmentation | TFLITE | w8a8 | Qualcomm® Dragonwing™ IQ-8275 | 36.466 ms | 2 - 39 MB | NPU |
| Unet-Segmentation | TFLITE | w8a8 | Qualcomm® Dragonwing™ QCS8550 (Proxy) | 31.213 ms | 2 - 4 MB | NPU |
| Unet-Segmentation | TFLITE | w8a8 | Qualcomm® SA8775P | 30.718 ms | 2 - 173 MB | NPU |
| Unet-Segmentation | TFLITE | w8a8 | Qualcomm® SA8650P | 30.718 ms | 2 - 173 MB | NPU |
| Unet-Segmentation | TFLITE | w8a8 | Qualcomm® SA8255P | 30.718 ms | 2 - 173 MB | NPU |
| Unet-Segmentation | TFLITE | w8a8 | Qualcomm® QCS8450 | 48.429 ms | 2 - 313 MB | NPU |
| Unet-Segmentation | TFLITE | w8a8 | Qualcomm® Dragonwing™ IQ-9075 | 31.07 ms | 0 - 37 MB | NPU |
| Unet-Segmentation | TFLITE | w8a8 | Qualcomm® Dragonwing™ Q-6690 | 1056.797 ms | 0 - 472 MB | NPU |
| Unet-Segmentation | TFLITE | w8a8 | Qualcomm® Dragonwing™ Q-7790 | 70.978 ms | 2 - 249 MB | NPU |
| Unet-Segmentation | TFLITE | w8a8 | Qualcomm® Dragonwing™ Q-8750 | 21.72 ms | 1 - 179 MB | NPU |
| Unet-Segmentation | TFLITE | w8a8 | Qualcomm® SA8295P | 62.227 ms | 2 - 171 MB | NPU |
| Unet-Segmentation | TFLITE | w8a8 | Snapdragon® 7 Gen 4 Mobile | 70.978 ms | 2 - 249 MB | NPU |
| Unet-Segmentation | TFLITE | w8a8 | Snapdragon® 8 Elite Extreme Gen 6 Mobile | 12.947 ms | 1 - 180 MB | NPU |
| Unet-Segmentation | TFLITE | w8a8 | Snapdragon® 8 Elite Gen 6 Mobile | 12.703 ms | 1 - 169 MB | NPU |
License
- The license for the original implementation of Unet-Segmentation can be found here.
References
Community
- Join our AI Hub Slack community to collaborate, post questions and learn more about on-device AI.
- For questions or feedback please reach out to us.
