CoolFace
Modelpublic

qualcomm/AOT-GAN

sourceHugging Facemitupdated 2d agoView on Hugging Face
13likes442downloads
Model Card

AOT-GAN: Optimized for Qualcomm Devices

AOT-GAN is a machine learning model that allows to erase and in-paint part of given input image.

This is based on the implementation of AOT-GAN 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

There are two ways to deploy this model on your device:

Option 1: Download Pre-Exported Models

Below are pre-exported model assets ready for deployment.

RuntimePrecisionChipsetSDK VersionsDownload
ONNXfloatUniversalQAIRT 2.50, ONNX Runtime 1.27.1Download
QNN_DLCfloatUniversalQAIRT 2.50Download
TFLITEfloatUniversalQAIRT 2.50Download

For more device-specific assets and performance metrics, visit [AOT-GAN on Qualcomm® AI Hub](https://aihub.qualcomm.com/models/aotgan).

Option 2: Export with Custom Configurations

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

This option is ideal if you need to customize the model beyond the default configuration provided here.

See our repository for AOT-GAN on GitHub for usage instructions.

Model Details

Model Type: Modelusecase.image_editing

Model Stats:

  • —Input resolution: 512x512
  • —Model checkpoint: CelebAHQ
  • —Model size (float): 58.0 MB
  • —Number of parameters: 15.2M

Performance Summary

ModelRuntimePrecisionChipsetInference Time (ms)Peak Memory Range (MB)Primary Compute Unit
AOT-GANONNXfloatSnapdragon® 8 Elite Gen 5 For Galaxy Mobile44.543 ms5 - 466 MBNPU
AOT-GANONNXfloatSnapdragon® 8 Elite For Galaxy Mobile69.497 ms6 - 542 MBNPU
AOT-GANONNXfloatSnapdragon® X2 Elite47.777 ms8 - 8 MBNPU
AOT-GANONNXfloatSnapdragon® X Elite124.281 ms32 - 32 MBNPU
AOT-GANONNXfloatSnapdragon® 8 Gen 3 Mobile87.669 ms0 - 642 MBNPU
AOT-GANONNXfloatSnapdragon® 8 Gen 1 Mobile180.78 ms1 - 578 MBNPU
AOT-GANONNXfloatQualcomm® Dragonwing™ IQ-8275176.574 ms4 - 12 MBNPU
AOT-GANONNXfloatQualcomm® Dragonwing™ QCS8550 (Proxy)120.926 ms10 - 13 MBNPU
AOT-GANONNXfloatQualcomm® QCS8450180.78 ms1 - 578 MBNPU
AOT-GANONNXfloatQualcomm® Dragonwing™ IQ-9075161.989 ms4 - 11 MBNPU
AOT-GANONNXfloatQualcomm® Dragonwing™ IQ-X7181124.281 ms32 - 32 MBNPU
AOT-GANONNXfloatQualcomm® Dragonwing™ Q-875069.497 ms6 - 542 MBNPU
AOT-GANQNN_DLCfloatSnapdragon® 8 Elite Gen 5 For Galaxy Mobile44.855 ms3 - 455 MBNPU
AOT-GANQNN_DLCfloatSnapdragon® 8 Elite For Galaxy Mobile66.711 ms0 - 531 MBNPU
AOT-GANQNN_DLCfloatSnapdragon® X2 Elite46.023 ms4 - 4 MBNPU
AOT-GANQNN_DLCfloatSnapdragon® X Elite119.313 ms4 - 4 MBNPU
AOT-GANQNN_DLCfloatSnapdragon® 8 Gen 3 Mobile85.324 ms0 - 648 MBNPU
AOT-GANQNN_DLCfloatSnapdragon® 8 Gen 1 Mobile181.046 ms3 - 574 MBNPU
AOT-GANQNN_DLCfloatQualcomm® Dragonwing™ IQ-8275173.081 ms4 - 14 MBNPU
AOT-GANQNN_DLCfloatQualcomm® Dragonwing™ QCS8550 (Proxy)117.168 ms4 - 7 MBNPU
AOT-GANQNN_DLCfloatQualcomm® SA8650P161.352 ms1 - 542 MBNPU
AOT-GANQNN_DLCfloatQualcomm® SA8255P161.352 ms1 - 542 MBNPU
AOT-GANQNN_DLCfloatQualcomm® QCS8450181.046 ms3 - 574 MBNPU
AOT-GANQNN_DLCfloatQualcomm® Dragonwing™ IQ-9075157.394 ms4 - 13 MBNPU
AOT-GANQNN_DLCfloatQualcomm® Dragonwing™ IQ-X7181119.313 ms4 - 4 MBNPU
AOT-GANQNN_DLCfloatQualcomm® Dragonwing™ Q-875066.711 ms0 - 531 MBNPU
AOT-GANQNN_DLCfloatQualcomm® SA8295P181.082 ms1 - 440 MBNPU
AOT-GANTFLITEfloatSnapdragon® 8 Elite Gen 5 For Galaxy Mobile44.535 ms2 - 467 MBNPU
AOT-GANTFLITEfloatSnapdragon® 8 Elite For Galaxy Mobile67.38 ms3 - 542 MBNPU
AOT-GANTFLITEfloatSnapdragon® 8 Gen 3 Mobile86.13 ms2 - 677 MBNPU
AOT-GANTFLITEfloatSnapdragon® 8 Gen 1 Mobile181.151 ms3 - 607 MBNPU
AOT-GANTFLITEfloatQualcomm® Dragonwing™ IQ-8275173.246 ms3 - 48 MBNPU
AOT-GANTFLITEfloatQualcomm® Dragonwing™ QCS8550 (Proxy)118.526 ms0 - 3 MBNPU
AOT-GANTFLITEfloatQualcomm® SA8650P161.524 ms3 - 558 MBNPU
AOT-GANTFLITEfloatQualcomm® SA8255P161.524 ms3 - 558 MBNPU
AOT-GANTFLITEfloatQualcomm® QCS8450181.151 ms3 - 607 MBNPU
AOT-GANTFLITEfloatQualcomm® Dragonwing™ IQ-9075157.334 ms2 - 46 MBNPU
AOT-GANTFLITEfloatQualcomm® Dragonwing™ Q-875067.38 ms3 - 542 MBNPU
AOT-GANTFLITEfloatQualcomm® SA8295P181.8 ms3 - 457 MBNPU

License

  • —The license for the original implementation of AOT-GAN can be found here.

References

Community