CoolFace
Modelpublic

qualcomm/Unet-Segmentation

sourceHugging Facegpl-3.0updated 10d agoView on Hugging Face
8likes1.3kdownloads
Model Card

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: Modelusecase.semantic_segmentation

Model Stats:

  • Input resolution: 640x1280
  • Model checkpoint: unetcarvanascale1.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

ModelRuntimePrecisionChipsetInference Time (ms)Peak Memory Range (MB)Primary Compute Unit
Unet-SegmentationONNXfloatSnapdragon® X2 Elite74.872 ms16 - 16 MBNPU
Unet-SegmentationONNXfloatSnapdragon® X Elite141.902 ms54 - 54 MBNPU
Unet-SegmentationONNXfloatSnapdragon® 8 Gen 3 Mobile115.045 ms24 - 546 MBNPU
Unet-SegmentationONNXfloatSnapdragon® 8 Gen 1 Mobile282.092 ms1 - 548 MBNPU
Unet-SegmentationONNXfloatQualcomm® Dragonwing™ IQ-8275285.991 ms9 - 22 MBNPU
Unet-SegmentationONNXfloatQualcomm® Dragonwing™ QCS8550 (Proxy)153.301 ms0 - 57 MBNPU
Unet-SegmentationONNXfloatQualcomm® QCS8450282.092 ms1 - 548 MBNPU
Unet-SegmentationONNXfloatQualcomm® Dragonwing™ IQ-9075250.636 ms9 - 22 MBNPU
Unet-SegmentationONNXfloatQualcomm® Dragonwing™ IQ-X7181141.902 ms54 - 54 MBNPU
Unet-SegmentationONNXfloatQualcomm® Dragonwing™ Q-875092.842 ms15 - 333 MBNPU
Unet-SegmentationONNXfloatSnapdragon® 8 Elite Mobile92.842 ms15 - 333 MBNPU
Unet-SegmentationONNXfloatSnapdragon® 8 Elite Gen 5 Mobile65.231 ms14 - 343 MBNPU
Unet-SegmentationONNXw8a8Snapdragon® X2 Elite18.908 ms5 - 5 MBNPU
Unet-SegmentationONNXw8a8Snapdragon® X Elite37.626 ms29 - 29 MBNPU
Unet-SegmentationONNXw8a8Snapdragon® 8 Gen 3 Mobile29.867 ms6 - 338 MBNPU
Unet-SegmentationONNXw8a8Snapdragon® 8 Gen 1 Mobile62.637 ms6 - 341 MBNPU
Unet-SegmentationONNXw8a8Qualcomm® Dragonwing™ QCS6490299.62 ms3 - 8 MBNPU
Unet-SegmentationONNXw8a8Qualcomm® Dragonwing™ IQ-827540.828 ms4 - 7 MBNPU
Unet-SegmentationONNXw8a8Qualcomm® Dragonwing™ QCS8550 (Proxy)38.12 ms0 - 32 MBNPU
Unet-SegmentationONNXw8a8Qualcomm® QCS845062.637 ms6 - 341 MBNPU
Unet-SegmentationONNXw8a8Qualcomm® Dragonwing™ IQ-907535.132 ms4 - 7 MBNPU
Unet-SegmentationONNXw8a8Qualcomm® Dragonwing™ IQ-X718137.626 ms29 - 29 MBNPU
Unet-SegmentationONNXw8a8Qualcomm® Dragonwing™ Q-66901231.467 ms0 - 542 MBNPU
Unet-SegmentationONNXw8a8Qualcomm® Dragonwing™ Q-779081.435 ms8 - 282 MBNPU
Unet-SegmentationONNXw8a8Qualcomm® Dragonwing™ Q-875024.358 ms3 - 190 MBNPU
Unet-SegmentationONNXw8a8Snapdragon® 8 Elite Mobile24.358 ms3 - 190 MBNPU
Unet-SegmentationONNXw8a8Snapdragon® 8 Elite Gen 5 Mobile16.714 ms3 - 190 MBNPU
Unet-SegmentationONNXw8a8Snapdragon® 7 Gen 4 Mobile81.435 ms8 - 282 MBNPU
Unet-SegmentationQNN_DLCfloatSnapdragon® X2 Elite71.738 ms9 - 9 MBNPU
Unet-SegmentationQNN_DLCfloatSnapdragon® X Elite132.584 ms9 - 9 MBNPU
Unet-SegmentationQNN_DLCfloatSnapdragon® 8 Gen 3 Mobile102.25 ms9 - 526 MBNPU
Unet-SegmentationQNN_DLCfloatSnapdragon® 8 Gen 1 Mobile273.152 ms9 - 545 MBNPU
Unet-SegmentationQNN_DLCfloatQualcomm® Dragonwing™ IQ-8275274.137 ms9 - 27 MBNPU
Unet-SegmentationQNN_DLCfloatQualcomm® Dragonwing™ QCS8550 (Proxy)137.703 ms10 - 19 MBNPU
Unet-SegmentationQNN_DLCfloatQualcomm® SA8775P240.377 ms1 - 325 MBNPU
Unet-SegmentationQNN_DLCfloatQualcomm® SA8650P240.377 ms1 - 325 MBNPU
Unet-SegmentationQNN_DLCfloatQualcomm® SA8255P240.377 ms1 - 325 MBNPU
Unet-SegmentationQNN_DLCfloatQualcomm® QCS8450273.152 ms9 - 545 MBNPU
Unet-SegmentationQNN_DLCfloatQualcomm® Dragonwing™ IQ-9075239.327 ms9 - 27 MBNPU
Unet-SegmentationQNN_DLCfloatQualcomm® Dragonwing™ IQ-X7181132.584 ms9 - 9 MBNPU
Unet-SegmentationQNN_DLCfloatQualcomm® Dragonwing™ Q-875082.577 ms0 - 331 MBNPU
Unet-SegmentationQNN_DLCfloatQualcomm® SA7255P953.29 ms0 - 324 MBNPU
Unet-SegmentationQNN_DLCfloatQualcomm® SA8295P274.483 ms0 - 323 MBNPU
Unet-SegmentationQNN_DLCfloatSnapdragon® 8 Elite Mobile82.577 ms0 - 331 MBNPU
Unet-SegmentationQNN_DLCfloatSnapdragon® 8 Elite Gen 5 Mobile61.334 ms3 - 348 MBNPU
Unet-SegmentationQNN_DLCw8a8Snapdragon® X2 Elite27.399 ms2 - 2 MBNPU
Unet-SegmentationQNN_DLCw8a8Snapdragon® X Elite35.741 ms2 - 2 MBNPU
Unet-SegmentationQNN_DLCw8a8Snapdragon® 8 Gen 3 Mobile26.305 ms2 - 318 MBNPU
Unet-SegmentationQNN_DLCw8a8Snapdragon® 8 Gen 1 Mobile54.11 ms2 - 317 MBNPU
Unet-SegmentationQNN_DLCw8a8Qualcomm® Dragonwing™ QCS6490288.689 ms2 - 8 MBNPU
Unet-SegmentationQNN_DLCw8a8Qualcomm® Dragonwing™ IQ-827537.219 ms2 - 9 MBNPU
Unet-SegmentationQNN_DLCw8a8Qualcomm® Dragonwing™ QCS8550 (Proxy)34.613 ms2 - 5 MBNPU
Unet-SegmentationQNN_DLCw8a8Qualcomm® SA8775P32.179 ms1 - 181 MBNPU
Unet-SegmentationQNN_DLCw8a8Qualcomm® SA8650P32.179 ms1 - 181 MBNPU
Unet-SegmentationQNN_DLCw8a8Qualcomm® SA8255P32.179 ms1 - 181 MBNPU
Unet-SegmentationQNN_DLCw8a8Qualcomm® QCS845054.11 ms2 - 317 MBNPU
Unet-SegmentationQNN_DLCw8a8Qualcomm® Dragonwing™ IQ-907532.609 ms1 - 7 MBNPU
Unet-SegmentationQNN_DLCw8a8Qualcomm® Dragonwing™ IQ-X718135.741 ms2 - 2 MBNPU
Unet-SegmentationQNN_DLCw8a8Qualcomm® Dragonwing™ Q-66901200.713 ms2 - 525 MBNPU
Unet-SegmentationQNN_DLCw8a8Qualcomm® Dragonwing™ Q-779078.744 ms2 - 273 MBNPU
Unet-SegmentationQNN_DLCw8a8Qualcomm® Dragonwing™ Q-875021.682 ms2 - 187 MBNPU
Unet-SegmentationQNN_DLCw8a8Qualcomm® SA7255P121.489 ms2 - 181 MBNPU
Unet-SegmentationQNN_DLCw8a8Qualcomm® SA8295P63.732 ms0 - 179 MBNPU
Unet-SegmentationQNN_DLCw8a8Snapdragon® 8 Elite Mobile21.682 ms2 - 187 MBNPU
Unet-SegmentationQNN_DLCw8a8Snapdragon® 8 Elite Gen 5 Mobile15.72 ms2 - 201 MBNPU
Unet-SegmentationQNN_DLCw8a8Snapdragon® 7 Gen 4 Mobile78.744 ms2 - 273 MBNPU
Unet-SegmentationTFLITEfloatSnapdragon® 8 Gen 3 Mobile103.236 ms6 - 574 MBNPU
Unet-SegmentationTFLITEfloatSnapdragon® 8 Gen 1 Mobile276.654 ms7 - 590 MBNPU
Unet-SegmentationTFLITEfloatQualcomm® Dragonwing™ IQ-8275274.063 ms0 - 81 MBNPU
Unet-SegmentationTFLITEfloatQualcomm® Dragonwing™ QCS8550 (Proxy)141.99 ms7 - 218 MBNPU
Unet-SegmentationTFLITEfloatQualcomm® SA8775P240.507 ms7 - 331 MBNPU
Unet-SegmentationTFLITEfloatQualcomm® SA8650P240.507 ms7 - 331 MBNPU
Unet-SegmentationTFLITEfloatQualcomm® SA8255P240.507 ms7 - 331 MBNPU
Unet-SegmentationTFLITEfloatQualcomm® QCS8450276.654 ms7 - 590 MBNPU
Unet-SegmentationTFLITEfloatQualcomm® Dragonwing™ IQ-9075238.517 ms0 - 80 MBNPU
Unet-SegmentationTFLITEfloatQualcomm® Dragonwing™ Q-875082.2 ms6 - 336 MBNPU
Unet-SegmentationTFLITEfloatQualcomm® SA7255P953.454 ms5 - 328 MBNPU
Unet-SegmentationTFLITEfloatQualcomm® SA8295P274.486 ms7 - 329 MBNPU
Unet-SegmentationTFLITEfloatSnapdragon® 8 Elite Mobile82.2 ms6 - 336 MBNPU
Unet-SegmentationTFLITEfloatSnapdragon® 8 Elite Gen 5 Mobile61.864 ms6 - 354 MBNPU
Unet-SegmentationTFLITEw8a8Snapdragon® 8 Gen 3 Mobile26.181 ms1 - 317 MBNPU
Unet-SegmentationTFLITEw8a8Snapdragon® 8 Gen 1 Mobile58.358 ms2 - 318 MBNPU
Unet-SegmentationTFLITEw8a8Qualcomm® Dragonwing™ QCS6490288.847 ms0 - 41 MBNPU
Unet-SegmentationTFLITEw8a8Qualcomm® Dragonwing™ IQ-827537.257 ms2 - 39 MBNPU
Unet-SegmentationTFLITEw8a8Qualcomm® Dragonwing™ QCS8550 (Proxy)32.487 ms1 - 4 MBNPU
Unet-SegmentationTFLITEw8a8Qualcomm® SA8775P32.211 ms2 - 180 MBNPU
Unet-SegmentationTFLITEw8a8Qualcomm® SA8650P32.211 ms2 - 180 MBNPU
Unet-SegmentationTFLITEw8a8Qualcomm® SA8255P32.211 ms2 - 180 MBNPU
Unet-SegmentationTFLITEw8a8Qualcomm® QCS845058.358 ms2 - 318 MBNPU
Unet-SegmentationTFLITEw8a8Qualcomm® Dragonwing™ IQ-907532.585 ms1 - 38 MBNPU
Unet-SegmentationTFLITEw8a8Qualcomm® Dragonwing™ Q-66901175.945 ms0 - 522 MBNPU
Unet-SegmentationTFLITEw8a8Qualcomm® Dragonwing™ Q-779079.045 ms0 - 264 MBNPU
Unet-SegmentationTFLITEw8a8Qualcomm® Dragonwing™ Q-875021.803 ms1 - 187 MBNPU
Unet-SegmentationTFLITEw8a8Qualcomm® SA7255P121.59 ms2 - 181 MBNPU
Unet-SegmentationTFLITEw8a8Qualcomm® SA8295P63.769 ms2 - 180 MBNPU
Unet-SegmentationTFLITEw8a8Snapdragon® 8 Elite Mobile21.803 ms1 - 187 MBNPU
Unet-SegmentationTFLITEw8a8Snapdragon® 8 Elite Gen 5 Mobile16.058 ms2 - 198 MBNPU
Unet-SegmentationTFLITEw8a8Snapdragon® 7 Gen 4 Mobile79.045 ms0 - 264 MBNPU

License

  • The license for the original implementation of Unet-Segmentation can be found here.

References

Community