--- library_name: pytorch license: creativeml-openrail-m tags: - generative_ai - android pipeline_tag: unconditional-image-generation --- ![](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/stable_diffusion_v2_1/web-assets/model_demo.png) # Stable-Diffusion-v2.1: Optimized for Qualcomm Devices Generates high resolution images from text prompts using a latent diffusion model. This model uses CLIP ViT-L/14 as text encoder, U-Net based latent denoising, and VAE based decoder to generate the final image. This is based on the implementation of Stable-Diffusion-v2.1 found [here](https://github.com/CompVis/stable-diffusion/tree/main). This repository contains pre-exported model files optimized for Qualcomm® devices. You can use the [Qualcomm® AI Hub Models](https://github.com/qualcomm/ai-hub-models/blob/v0.68.0/src/qai_hub_models/models/stable_diffusion_v2_1) library to export with custom configurations. More details on model performance across various devices, can be found [here](#performance-summary). Qualcomm AI Hub Models uses [Qualcomm AI Hub Workbench](https://workbench.aihub.qualcomm.com) to compile, profile, and evaluate this model. [Sign up](https://myaccount.qualcomm.com/signup) to run these models on a hosted Qualcomm® device. ## Deploy to Snapdragon X Elite NPU Please follow the [Stable Diffusion Windows App](https://github.com/quic/ai-hub-apps/tree/main/apps/windows/python/StableDiffusion) tutorial to quantize model with custom weights. ## Quantize and Deploy Your Own Fine-Tuned Stable Diffusion Please follow the [Quantize Stable Diffusion]({REPOSITORY_URL}/tutorials/stable_diffusion/quantize_stable_diffusion.md) tutorial to quantize model with custom weights. ## 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. | Runtime | Precision | Chipset | SDK Versions | Download | |---|---|---|---|---| | PRECOMPILED_QNN_ONNX | w8a16 | Snapdragon® 8 Elite Gen 5 For Galaxy Mobile | QAIRT 2.51, ONNX Runtime 1.30.0 | [Download](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/stable_diffusion_v2_1/releases/v0.68.0/stable_diffusion_v2_1-precompiled_qnn_onnx-w8a16-qualcomm_snapdragon_8_elite_gen5_for_galaxy.zip) | PRECOMPILED_QNN_ONNX | w8a16 | Snapdragon® 8 Elite For Galaxy Mobile | QAIRT 2.51, ONNX Runtime 1.30.0 | [Download](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/stable_diffusion_v2_1/releases/v0.68.0/stable_diffusion_v2_1-precompiled_qnn_onnx-w8a16-qualcomm_snapdragon_8_elite_for_galaxy.zip) | PRECOMPILED_QNN_ONNX | w8a16 | Snapdragon® X2 Elite | QAIRT 2.51, ONNX Runtime 1.30.0 | [Download](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/stable_diffusion_v2_1/releases/v0.68.0/stable_diffusion_v2_1-precompiled_qnn_onnx-w8a16-qualcomm_snapdragon_x2_elite.zip) | PRECOMPILED_QNN_ONNX | w8a16 | Snapdragon® X Elite | QAIRT 2.51, ONNX Runtime 1.30.0 | [Download](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/stable_diffusion_v2_1/releases/v0.68.0/stable_diffusion_v2_1-precompiled_qnn_onnx-w8a16-qualcomm_snapdragon_x_elite.zip) | PRECOMPILED_QNN_ONNX | w8a16 | Snapdragon® X Plus 8-Core | QAIRT 2.51, ONNX Runtime 1.30.0 | [Download](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/stable_diffusion_v2_1/releases/v0.68.0/stable_diffusion_v2_1-precompiled_qnn_onnx-w8a16-qualcomm_snapdragon_x_plus_8_core.zip) | PRECOMPILED_QNN_ONNX | w8a16 | Snapdragon® 8 Gen 3 Mobile | QAIRT 2.50, ONNX Runtime 1.30.0 | [Download](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/stable_diffusion_v2_1/releases/v0.68.0/stable_diffusion_v2_1-precompiled_qnn_onnx-w8a16-qualcomm_snapdragon_8gen3.zip) | PRECOMPILED_QNN_ONNX | w8a16 | Snapdragon® 8 Gen 1 Mobile | QAIRT 2.51, ONNX Runtime 1.30.0 | [Download](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/stable_diffusion_v2_1/releases/v0.68.0/stable_diffusion_v2_1-precompiled_qnn_onnx-w8a16-qualcomm_snapdragon_8gen1.zip) | PRECOMPILED_QNN_ONNX | w8a16 | Qualcomm® Dragonwing™ QCS6490 | QAIRT 2.51, ONNX Runtime 1.30.0 | [Download](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/stable_diffusion_v2_1/releases/v0.68.0/stable_diffusion_v2_1-precompiled_qnn_onnx-w8a16-qualcomm_qcs6490.zip) | PRECOMPILED_QNN_ONNX | w8a16 | Qualcomm® Dragonwing™ IQ-8275 | QAIRT 2.51, ONNX Runtime 1.30.0 | [Download](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/stable_diffusion_v2_1/releases/v0.68.0/stable_diffusion_v2_1-precompiled_qnn_onnx-w8a16-qualcomm_qcs8275.zip) | PRECOMPILED_QNN_ONNX | w8a16 | Qualcomm® Dragonwing™ QCS8550 (Proxy) | QAIRT 2.51, ONNX Runtime 1.30.0 | [Download](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/stable_diffusion_v2_1/releases/v0.68.0/stable_diffusion_v2_1-precompiled_qnn_onnx-w8a16-qualcomm_qcs8550_proxy.zip) | PRECOMPILED_QNN_ONNX | w8a16 | Qualcomm® Dragonwing™ Q-6690 | QAIRT 2.51, ONNX Runtime 1.30.0 | [Download](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/stable_diffusion_v2_1/releases/v0.68.0/stable_diffusion_v2_1-precompiled_qnn_onnx-w8a16-qualcomm_qcm6690.zip) | PRECOMPILED_QNN_ONNX | w8a16 | Qualcomm® Dragonwing™ IQ-9075 | QAIRT 2.51, ONNX Runtime 1.30.0 | [Download](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/stable_diffusion_v2_1/releases/v0.68.0/stable_diffusion_v2_1-precompiled_qnn_onnx-w8a16-qualcomm_qcs9075.zip) | PRECOMPILED_QNN_ONNX | w8a16 | Snapdragon® 7 Gen 4 Mobile | QAIRT 2.51, ONNX Runtime 1.30.0 | [Download](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/stable_diffusion_v2_1/releases/v0.68.0/stable_diffusion_v2_1-precompiled_qnn_onnx-w8a16-qualcomm_snapdragon_7gen4.zip) | PRECOMPILED_QNN_ONNX | w8a16 | Snapdragon® 8 Elite Extreme Gen 6 Mobile | QAIRT 2.51, ONNX Runtime 1.30.0 | [Download](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/stable_diffusion_v2_1/releases/v0.68.0/stable_diffusion_v2_1-precompiled_qnn_onnx-w8a16-qualcomm_snapdragon_8_elite_extreme_gen6.zip) | PRECOMPILED_QNN_ONNX | w8a16 | Snapdragon® 8 Elite Gen 6 Mobile | QAIRT 2.51, ONNX Runtime 1.30.0 | [Download](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/stable_diffusion_v2_1/releases/v0.68.0/stable_diffusion_v2_1-precompiled_qnn_onnx-w8a16-qualcomm_snapdragon_8_elite_gen6.zip) | QNN_CONTEXT_BINARY | w8a16 | Snapdragon® 8 Elite Gen 5 For Galaxy Mobile | QAIRT 2.51 | [Download](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/stable_diffusion_v2_1/releases/v0.68.0/stable_diffusion_v2_1-qnn_context_binary-w8a16-qualcomm_snapdragon_8_elite_gen5_for_galaxy.zip) | QNN_CONTEXT_BINARY | w8a16 | Snapdragon® 8 Elite For Galaxy Mobile | QAIRT 2.51 | [Download](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/stable_diffusion_v2_1/releases/v0.68.0/stable_diffusion_v2_1-qnn_context_binary-w8a16-qualcomm_snapdragon_8_elite_for_galaxy.zip) | QNN_CONTEXT_BINARY | w8a16 | Snapdragon® X2 Elite | QAIRT 2.51 | [Download](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/stable_diffusion_v2_1/releases/v0.68.0/stable_diffusion_v2_1-qnn_context_binary-w8a16-qualcomm_snapdragon_x2_elite.zip) | QNN_CONTEXT_BINARY | w8a16 | Snapdragon® X Elite | QAIRT 2.51 | [Download](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/stable_diffusion_v2_1/releases/v0.68.0/stable_diffusion_v2_1-qnn_context_binary-w8a16-qualcomm_snapdragon_x_elite.zip) | QNN_CONTEXT_BINARY | w8a16 | Snapdragon® X Plus 8-Core | QAIRT 2.51 | [Download](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/stable_diffusion_v2_1/releases/v0.68.0/stable_diffusion_v2_1-qnn_context_binary-w8a16-qualcomm_snapdragon_x_plus_8_core.zip) | QNN_CONTEXT_BINARY | w8a16 | Snapdragon® 8 Gen 3 Mobile | QAIRT 2.50 | [Download](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/stable_diffusion_v2_1/releases/v0.68.0/stable_diffusion_v2_1-qnn_context_binary-w8a16-qualcomm_snapdragon_8gen3.zip) | QNN_CONTEXT_BINARY | w8a16 | Snapdragon® 8 Gen 1 Mobile | QAIRT 2.51 | [Download](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/stable_diffusion_v2_1/releases/v0.68.0/stable_diffusion_v2_1-qnn_context_binary-w8a16-qualcomm_snapdragon_8gen1.zip) | QNN_CONTEXT_BINARY | w8a16 | Qualcomm® Dragonwing™ QCS6490 | QAIRT 2.51 | [Download](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/stable_diffusion_v2_1/releases/v0.68.0/stable_diffusion_v2_1-qnn_context_binary-w8a16-qualcomm_qcs6490.zip) | QNN_CONTEXT_BINARY | w8a16 | Qualcomm® Dragonwing™ IQ-8275 | QAIRT 2.51 | [Download](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/stable_diffusion_v2_1/releases/v0.68.0/stable_diffusion_v2_1-qnn_context_binary-w8a16-qualcomm_qcs8275.zip) | QNN_CONTEXT_BINARY | w8a16 | Qualcomm® Dragonwing™ QCS8550 (Proxy) | QAIRT 2.51 | [Download](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/stable_diffusion_v2_1/releases/v0.68.0/stable_diffusion_v2_1-qnn_context_binary-w8a16-qualcomm_qcs8550_proxy.zip) | QNN_CONTEXT_BINARY | w8a16 | Qualcomm® SA8775P | QAIRT 2.51 | [Download](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/stable_diffusion_v2_1/releases/v0.68.0/stable_diffusion_v2_1-qnn_context_binary-w8a16-qualcomm_sa8775p.zip) | QNN_CONTEXT_BINARY | w8a16 | Qualcomm® Dragonwing™ Q-6690 | QAIRT 2.51 | [Download](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/stable_diffusion_v2_1/releases/v0.68.0/stable_diffusion_v2_1-qnn_context_binary-w8a16-qualcomm_qcm6690.zip) | QNN_CONTEXT_BINARY | w8a16 | Qualcomm® Dragonwing™ IQ-9075 | QAIRT 2.51 | [Download](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/stable_diffusion_v2_1/releases/v0.68.0/stable_diffusion_v2_1-qnn_context_binary-w8a16-qualcomm_qcs9075.zip) | QNN_CONTEXT_BINARY | w8a16 | Qualcomm® SA7255P | QAIRT 2.51 | [Download](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/stable_diffusion_v2_1/releases/v0.68.0/stable_diffusion_v2_1-qnn_context_binary-w8a16-qualcomm_sa7255p.zip) | QNN_CONTEXT_BINARY | w8a16 | Qualcomm® SA8295P | QAIRT 2.51 | [Download](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/stable_diffusion_v2_1/releases/v0.68.0/stable_diffusion_v2_1-qnn_context_binary-w8a16-qualcomm_sa8295p.zip) | QNN_CONTEXT_BINARY | w8a16 | Snapdragon® 7 Gen 4 Mobile | QAIRT 2.51 | [Download](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/stable_diffusion_v2_1/releases/v0.68.0/stable_diffusion_v2_1-qnn_context_binary-w8a16-qualcomm_snapdragon_7gen4.zip) | QNN_CONTEXT_BINARY | w8a16 | Snapdragon® 8 Elite Extreme Gen 6 Mobile | QAIRT 2.51 | [Download](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/stable_diffusion_v2_1/releases/v0.68.0/stable_diffusion_v2_1-qnn_context_binary-w8a16-qualcomm_snapdragon_8_elite_extreme_gen6.zip) | QNN_CONTEXT_BINARY | w8a16 | Snapdragon® 8 Elite Gen 6 Mobile | QAIRT 2.51 | [Download](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/stable_diffusion_v2_1/releases/v0.68.0/stable_diffusion_v2_1-qnn_context_binary-w8a16-qualcomm_snapdragon_8_elite_gen6.zip) For more device-specific assets and performance metrics, visit **[Stable-Diffusion-v2.1 on Qualcomm® AI Hub](https://aihub.qualcomm.com/models/stable_diffusion_v2_1)**. ### Option 2: Export with Custom Configurations Use the [Qualcomm® AI Hub Models](https://github.com/qualcomm/ai-hub-models/blob/v0.68.0/src/qai_hub_models/models/stable_diffusion_v2_1) 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 [Stable-Diffusion-v2.1 on GitHub](https://github.com/qualcomm/ai-hub-models/blob/v0.68.0/src/qai_hub_models/models/stable_diffusion_v2_1) for usage instructions. ## Model Details **Model Type:** Model_use_case.image_generation **Model Stats:** - Input: Text prompt to generate image ## Performance Summary | Model | Runtime | Precision | Chipset | Inference Time (ms) | Peak Memory Range (MB) | Primary Compute Unit |---|---|---|---|---|---|--- | text_encoder | PRECOMPILED_QNN_ONNX | w8a16 | Snapdragon® 8 Elite Gen 5 For Galaxy Mobile | 5.131 ms | 0 - 14 MB | NPU | text_encoder | PRECOMPILED_QNN_ONNX | w8a16 | Snapdragon® 8 Elite For Galaxy Mobile | 4.927 ms | 0 - 12 MB | NPU | text_encoder | PRECOMPILED_QNN_ONNX | w8a16 | Snapdragon® X2 Elite | 4.041 ms | 1 - 1 MB | NPU | text_encoder | PRECOMPILED_QNN_ONNX | w8a16 | Snapdragon® X Elite | 7.371 ms | 420 - 420 MB | NPU | text_encoder | PRECOMPILED_QNN_ONNX | w8a16 | Snapdragon® 8 Gen 3 Mobile | 5.89 ms | 0 - 13 MB | NPU | text_encoder | PRECOMPILED_QNN_ONNX | w8a16 | Snapdragon® 8 Gen 1 Mobile | 10.379 ms | 0 - 15 MB | NPU | text_encoder | PRECOMPILED_QNN_ONNX | w8a16 | Qualcomm® Dragonwing™ QCS6490 | 25.918 ms | 0 - 4 MB | NPU | text_encoder | PRECOMPILED_QNN_ONNX | w8a16 | Qualcomm® Dragonwing™ IQ-8275 | 7.869 ms | 0 - 5 MB | NPU | text_encoder | PRECOMPILED_QNN_ONNX | w8a16 | Qualcomm® Dragonwing™ QCS8550 (Proxy) | 7.873 ms | 0 - 450 MB | NPU | text_encoder | PRECOMPILED_QNN_ONNX | w8a16 | Qualcomm® QCS8450 | 10.379 ms | 0 - 15 MB | NPU | text_encoder | PRECOMPILED_QNN_ONNX | w8a16 | Qualcomm® Dragonwing™ IQ-9075 | 7.735 ms | 0 - 4 MB | NPU | text_encoder | PRECOMPILED_QNN_ONNX | w8a16 | Qualcomm® Dragonwing™ IQ-X7181 | 7.371 ms | 420 - 420 MB | NPU | text_encoder | PRECOMPILED_QNN_ONNX | w8a16 | Qualcomm® Dragonwing™ Q-6690 | 68.259 ms | 0 - 11 MB | NPU | text_encoder | PRECOMPILED_QNN_ONNX | w8a16 | Qualcomm® Dragonwing™ Q-7790 | 11.937 ms | 0 - 11 MB | NPU | text_encoder | PRECOMPILED_QNN_ONNX | w8a16 | Qualcomm® Dragonwing™ Q-8750 | 4.927 ms | 0 - 12 MB | NPU | text_encoder | PRECOMPILED_QNN_ONNX | w8a16 | Snapdragon® 7 Gen 4 Mobile | 11.937 ms | 0 - 11 MB | NPU | text_encoder | PRECOMPILED_QNN_ONNX | w8a16 | Snapdragon® 8 Elite Extreme Gen 6 Mobile | 4.459 ms | 0 - 7 MB | NPU | text_encoder | PRECOMPILED_QNN_ONNX | w8a16 | Snapdragon® 8 Elite Gen 6 Mobile | 4.401 ms | 0 - 6 MB | NPU | text_encoder | QNN_CONTEXT_BINARY | w8a16 | Snapdragon® 8 Elite Gen 5 For Galaxy Mobile | 5.113 ms | 0 - 8 MB | NPU | text_encoder | QNN_CONTEXT_BINARY | w8a16 | Snapdragon® 8 Elite For Galaxy Mobile | 4.924 ms | 0 - 9 MB | NPU | text_encoder | QNN_CONTEXT_BINARY | w8a16 | Snapdragon® X2 Elite | 4.486 ms | 1 - 1 MB | NPU | text_encoder | QNN_CONTEXT_BINARY | w8a16 | Snapdragon® X Elite | 7.689 ms | 0 - 0 MB | NPU | text_encoder | QNN_CONTEXT_BINARY | w8a16 | Snapdragon® 8 Gen 3 Mobile | 5.954 ms | 0 - 8 MB | NPU | text_encoder | QNN_CONTEXT_BINARY | w8a16 | Snapdragon® 8 Gen 1 Mobile | 10.042 ms | 0 - 9 MB | NPU | text_encoder | QNN_CONTEXT_BINARY | w8a16 | Qualcomm® Dragonwing™ QCS6490 | 26.292 ms | 2 - 4 MB | NPU | text_encoder | QNN_CONTEXT_BINARY | w8a16 | Qualcomm® Dragonwing™ IQ-8275 | 7.587 ms | 0 - 3 MB | NPU | text_encoder | QNN_CONTEXT_BINARY | w8a16 | Qualcomm® Dragonwing™ QCS8550 (Proxy) | 7.751 ms | 0 - 2 MB | NPU | text_encoder | QNN_CONTEXT_BINARY | w8a16 | Qualcomm® SA8650P | 8.368 ms | 0 - 9 MB | NPU | text_encoder | QNN_CONTEXT_BINARY | w8a16 | Qualcomm® SA8255P | 8.368 ms | 0 - 9 MB | NPU | text_encoder | QNN_CONTEXT_BINARY | w8a16 | Qualcomm® QCS8450 | 10.042 ms | 0 - 9 MB | NPU | text_encoder | QNN_CONTEXT_BINARY | w8a16 | Qualcomm® Dragonwing™ IQ-9075 | 7.749 ms | 2 - 5 MB | NPU | text_encoder | QNN_CONTEXT_BINARY | w8a16 | Qualcomm® Dragonwing™ IQ-X7181 | 7.689 ms | 0 - 0 MB | NPU | text_encoder | QNN_CONTEXT_BINARY | w8a16 | Qualcomm® Dragonwing™ Q-6690 | 71.96 ms | 0 - 7 MB | NPU | text_encoder | QNN_CONTEXT_BINARY | w8a16 | Qualcomm® Dragonwing™ Q-7790 | 11.952 ms | 0 - 6 MB | NPU | text_encoder | QNN_CONTEXT_BINARY | w8a16 | Qualcomm® Dragonwing™ Q-8750 | 4.924 ms | 0 - 9 MB | NPU | text_encoder | QNN_CONTEXT_BINARY | w8a16 | Qualcomm® SA8295P | 10.246 ms | 0 - 5 MB | NPU | text_encoder | QNN_CONTEXT_BINARY | w8a16 | Snapdragon® 7 Gen 4 Mobile | 11.952 ms | 0 - 6 MB | NPU | text_encoder | QNN_CONTEXT_BINARY | w8a16 | Snapdragon® 8 Elite Extreme Gen 6 Mobile | 4.317 ms | 0 - 8 MB | NPU | text_encoder | QNN_CONTEXT_BINARY | w8a16 | Snapdragon® 8 Elite Gen 6 Mobile | 4.443 ms | 0 - 8 MB | NPU | unet | PRECOMPILED_QNN_ONNX | w8a16 | Snapdragon® 8 Elite Gen 5 For Galaxy Mobile | 67.936 ms | 0 - 13 MB | NPU | unet | PRECOMPILED_QNN_ONNX | w8a16 | Snapdragon® 8 Elite For Galaxy Mobile | 89.415 ms | 0 - 13 MB | NPU | unet | PRECOMPILED_QNN_ONNX | w8a16 | Snapdragon® X2 Elite | 63.656 ms | 1 - 1 MB | NPU | unet | PRECOMPILED_QNN_ONNX | w8a16 | Snapdragon® X Elite | 157.292 ms | 842 - 842 MB | NPU | unet | PRECOMPILED_QNN_ONNX | w8a16 | Snapdragon® 8 Gen 3 Mobile | 115.689 ms | 0 - 12 MB | NPU | unet | PRECOMPILED_QNN_ONNX | w8a16 | Snapdragon® 8 Gen 1 Mobile | 196.63 ms | 0 - 15 MB | NPU | unet | PRECOMPILED_QNN_ONNX | w8a16 | Qualcomm® Dragonwing™ QCS6490 | 704.098 ms | 0 - 4 MB | NPU | unet | PRECOMPILED_QNN_ONNX | w8a16 | Qualcomm® Dragonwing™ IQ-8275 | 142.181 ms | 0 - 5 MB | NPU | unet | PRECOMPILED_QNN_ONNX | w8a16 | Qualcomm® Dragonwing™ QCS8550 (Proxy) | 156.417 ms | 0 - 898 MB | NPU | unet | PRECOMPILED_QNN_ONNX | w8a16 | Qualcomm® QCS8450 | 196.63 ms | 0 - 15 MB | NPU | unet | PRECOMPILED_QNN_ONNX | w8a16 | Qualcomm® Dragonwing™ IQ-9075 | 142.505 ms | 0 - 4 MB | NPU | unet | PRECOMPILED_QNN_ONNX | w8a16 | Qualcomm® Dragonwing™ IQ-X7181 | 157.292 ms | 842 - 842 MB | NPU | unet | PRECOMPILED_QNN_ONNX | w8a16 | Qualcomm® Dragonwing™ Q-6690 | 2001.639 ms | 1 - 11 MB | NPU | unet | PRECOMPILED_QNN_ONNX | w8a16 | Qualcomm® Dragonwing™ Q-7790 | 204.554 ms | 0 - 12 MB | NPU | unet | PRECOMPILED_QNN_ONNX | w8a16 | Qualcomm® Dragonwing™ Q-8750 | 89.415 ms | 0 - 13 MB | NPU | unet | PRECOMPILED_QNN_ONNX | w8a16 | Snapdragon® 7 Gen 4 Mobile | 204.554 ms | 0 - 12 MB | NPU | unet | PRECOMPILED_QNN_ONNX | w8a16 | Snapdragon® 8 Elite Extreme Gen 6 Mobile | 56.054 ms | 7 - 15 MB | NPU | unet | PRECOMPILED_QNN_ONNX | w8a16 | Snapdragon® 8 Elite Gen 6 Mobile | 99.469 ms | 1 - 9 MB | NPU | unet | QNN_CONTEXT_BINARY | w8a16 | Snapdragon® 8 Elite Gen 5 For Galaxy Mobile | 64.763 ms | 0 - 9 MB | NPU | unet | QNN_CONTEXT_BINARY | w8a16 | Snapdragon® 8 Elite For Galaxy Mobile | 88.872 ms | 1 - 9 MB | NPU | unet | QNN_CONTEXT_BINARY | w8a16 | Snapdragon® X2 Elite | 63.588 ms | 1 - 1 MB | NPU | unet | QNN_CONTEXT_BINARY | w8a16 | Snapdragon® X Elite | 157.726 ms | 0 - 0 MB | NPU | unet | QNN_CONTEXT_BINARY | w8a16 | Snapdragon® 8 Gen 3 Mobile | 114.953 ms | 0 - 9 MB | NPU | unet | QNN_CONTEXT_BINARY | w8a16 | Snapdragon® 8 Gen 1 Mobile | 189.169 ms | 1 - 10 MB | NPU | unet | QNN_CONTEXT_BINARY | w8a16 | Qualcomm® Dragonwing™ QCS6490 | 705.116 ms | 0 - 3 MB | NPU | unet | QNN_CONTEXT_BINARY | w8a16 | Qualcomm® Dragonwing™ IQ-8275 | 142.207 ms | 0 - 4 MB | NPU | unet | QNN_CONTEXT_BINARY | w8a16 | Qualcomm® Dragonwing™ QCS8550 (Proxy) | 157.045 ms | 1 - 3 MB | NPU | unet | QNN_CONTEXT_BINARY | w8a16 | Qualcomm® SA8650P | 147.773 ms | 0 - 9 MB | NPU | unet | QNN_CONTEXT_BINARY | w8a16 | Qualcomm® SA8255P | 147.773 ms | 0 - 9 MB | NPU | unet | QNN_CONTEXT_BINARY | w8a16 | Qualcomm® QCS8450 | 189.169 ms | 1 - 10 MB | NPU | unet | QNN_CONTEXT_BINARY | w8a16 | Qualcomm® Dragonwing™ IQ-9075 | 144.302 ms | 0 - 3 MB | NPU | unet | QNN_CONTEXT_BINARY | w8a16 | Qualcomm® Dragonwing™ IQ-X7181 | 157.726 ms | 0 - 0 MB | NPU | unet | QNN_CONTEXT_BINARY | w8a16 | Qualcomm® Dragonwing™ Q-6690 | 1987.596 ms | 1 - 12 MB | NPU | unet | QNN_CONTEXT_BINARY | w8a16 | Qualcomm® Dragonwing™ Q-7790 | 205.786 ms | 0 - 8 MB | NPU | unet | QNN_CONTEXT_BINARY | w8a16 | Qualcomm® Dragonwing™ Q-8750 | 88.872 ms | 1 - 9 MB | NPU | unet | QNN_CONTEXT_BINARY | w8a16 | Qualcomm® SA8295P | 205.392 ms | 1 - 6 MB | NPU | unet | QNN_CONTEXT_BINARY | w8a16 | Snapdragon® 7 Gen 4 Mobile | 205.786 ms | 0 - 8 MB | NPU | unet | QNN_CONTEXT_BINARY | w8a16 | Snapdragon® 8 Elite Extreme Gen 6 Mobile | 55.84 ms | 7 - 16 MB | NPU | unet | QNN_CONTEXT_BINARY | w8a16 | Snapdragon® 8 Elite Gen 6 Mobile | 99.368 ms | 1 - 11 MB | NPU | vae | PRECOMPILED_QNN_ONNX | w8a16 | Snapdragon® 8 Elite Gen 5 For Galaxy Mobile | 78.811 ms | 3 - 12 MB | NPU | vae | PRECOMPILED_QNN_ONNX | w8a16 | Snapdragon® 8 Elite For Galaxy Mobile | 124.774 ms | 4 - 10 MB | NPU | vae | PRECOMPILED_QNN_ONNX | w8a16 | Snapdragon® X2 Elite | 90.608 ms | 4 - 4 MB | NPU | vae | PRECOMPILED_QNN_ONNX | w8a16 | Snapdragon® X Elite | 215.103 ms | 61 - 61 MB | NPU | vae | PRECOMPILED_QNN_ONNX | w8a16 | Snapdragon® 8 Gen 3 Mobile | 150.871 ms | 3 - 10 MB | NPU | vae | PRECOMPILED_QNN_ONNX | w8a16 | Snapdragon® 8 Gen 1 Mobile | 277.962 ms | 3 - 19 MB | NPU | vae | PRECOMPILED_QNN_ONNX | w8a16 | Qualcomm® Dragonwing™ QCS6490 | 1122.461 ms | 0 - 3 MB | NPU | vae | PRECOMPILED_QNN_ONNX | w8a16 | Qualcomm® Dragonwing™ IQ-8275 | 210.71 ms | 3 - 7 MB | NPU | vae | PRECOMPILED_QNN_ONNX | w8a16 | Qualcomm® Dragonwing™ QCS8550 (Proxy) | 219.303 ms | 0 - 65 MB | NPU | vae | PRECOMPILED_QNN_ONNX | w8a16 | Qualcomm® QCS8450 | 277.962 ms | 3 - 19 MB | NPU | vae | PRECOMPILED_QNN_ONNX | w8a16 | Qualcomm® Dragonwing™ IQ-9075 | 190.172 ms | 3 - 7 MB | NPU | vae | PRECOMPILED_QNN_ONNX | w8a16 | Qualcomm® Dragonwing™ IQ-X7181 | 215.103 ms | 61 - 61 MB | NPU | vae | PRECOMPILED_QNN_ONNX | w8a16 | Qualcomm® Dragonwing™ Q-6690 | 5494.445 ms | 1 - 12 MB | NPU | vae | PRECOMPILED_QNN_ONNX | w8a16 | Qualcomm® Dragonwing™ Q-7790 | 379.853 ms | 3 - 9 MB | NPU | vae | PRECOMPILED_QNN_ONNX | w8a16 | Qualcomm® Dragonwing™ Q-8750 | 124.774 ms | 4 - 10 MB | NPU | vae | PRECOMPILED_QNN_ONNX | w8a16 | Snapdragon® 7 Gen 4 Mobile | 379.853 ms | 3 - 9 MB | NPU | vae | PRECOMPILED_QNN_ONNX | w8a16 | Snapdragon® 8 Elite Extreme Gen 6 Mobile | 57.188 ms | 3 - 10 MB | NPU | vae | PRECOMPILED_QNN_ONNX | w8a16 | Snapdragon® 8 Elite Gen 6 Mobile | 66.614 ms | 3 - 10 MB | NPU | vae | QNN_CONTEXT_BINARY | w8a16 | Snapdragon® 8 Elite Gen 5 For Galaxy Mobile | 78.48 ms | 2 - 11 MB | NPU | vae | QNN_CONTEXT_BINARY | w8a16 | Snapdragon® 8 Elite For Galaxy Mobile | 125.171 ms | 1 - 9 MB | NPU | vae | QNN_CONTEXT_BINARY | w8a16 | Snapdragon® X2 Elite | 90.676 ms | 0 - 0 MB | NPU | vae | QNN_CONTEXT_BINARY | w8a16 | Snapdragon® X Elite | 215.315 ms | 0 - 0 MB | NPU | vae | QNN_CONTEXT_BINARY | w8a16 | Snapdragon® 8 Gen 3 Mobile | 151.923 ms | 1 - 7 MB | NPU | vae | QNN_CONTEXT_BINARY | w8a16 | Snapdragon® 8 Gen 1 Mobile | 274.506 ms | 0 - 10 MB | NPU | vae | QNN_CONTEXT_BINARY | w8a16 | Qualcomm® Dragonwing™ QCS6490 | 1128.358 ms | 2 - 6 MB | NPU | vae | QNN_CONTEXT_BINARY | w8a16 | Qualcomm® Dragonwing™ IQ-8275 | 211.077 ms | 0 - 5 MB | NPU | vae | QNN_CONTEXT_BINARY | w8a16 | Qualcomm® Dragonwing™ QCS8550 (Proxy) | 219.83 ms | 0 - 2 MB | NPU | vae | QNN_CONTEXT_BINARY | w8a16 | Qualcomm® SA8650P | 244.78 ms | 0 - 9 MB | NPU | vae | QNN_CONTEXT_BINARY | w8a16 | Qualcomm® SA8255P | 244.78 ms | 0 - 9 MB | NPU | vae | QNN_CONTEXT_BINARY | w8a16 | Qualcomm® QCS8450 | 274.506 ms | 0 - 10 MB | NPU | vae | QNN_CONTEXT_BINARY | w8a16 | Qualcomm® Dragonwing™ IQ-9075 | 190.034 ms | 0 - 4 MB | NPU | vae | QNN_CONTEXT_BINARY | w8a16 | Qualcomm® Dragonwing™ IQ-X7181 | 215.315 ms | 0 - 0 MB | NPU | vae | QNN_CONTEXT_BINARY | w8a16 | Qualcomm® Dragonwing™ Q-6690 | 5456.466 ms | 0 - 6 MB | NPU | vae | QNN_CONTEXT_BINARY | w8a16 | Qualcomm® Dragonwing™ Q-7790 | 380.09 ms | 0 - 7 MB | NPU | vae | QNN_CONTEXT_BINARY | w8a16 | Qualcomm® Dragonwing™ Q-8750 | 125.171 ms | 1 - 9 MB | NPU | vae | QNN_CONTEXT_BINARY | w8a16 | Qualcomm® SA8295P | 326.678 ms | 0 - 6 MB | NPU | vae | QNN_CONTEXT_BINARY | w8a16 | Snapdragon® 7 Gen 4 Mobile | 380.09 ms | 0 - 7 MB | NPU | vae | QNN_CONTEXT_BINARY | w8a16 | Snapdragon® 8 Elite Extreme Gen 6 Mobile | 56.541 ms | 0 - 9 MB | NPU | vae | QNN_CONTEXT_BINARY | w8a16 | Snapdragon® 8 Elite Gen 6 Mobile | 64.958 ms | 0 - 9 MB | NPU ## License * The license for the original implementation of Stable-Diffusion-v2.1 can be found [here](https://github.com/CompVis/stable-diffusion/blob/main/LICENSE). ## References * [High-Resolution Image Synthesis with Latent Diffusion Models](https://arxiv.org/abs/2112.10752) * [Source Model Implementation](https://github.com/CompVis/stable-diffusion/tree/main) ## Community * Join [our AI Hub Slack community](https://aihub.qualcomm.com/community/slack) to collaborate, post questions and learn more about on-device AI. * For questions or feedback please [reach out to us](mailto:ai-hub-support@qti.qualcomm.com). ## Usage and Limitations This model may not be used for or in connection with any of the following applications: - Accessing essential private and public services and benefits; - Administration of justice and democratic processes; - Assessing or recognizing the emotional state of a person; - Biometric and biometrics-based systems, including categorization of persons based on sensitive characteristics; - Education and vocational training; - Employment and workers management; - Exploitation of the vulnerabilities of persons resulting in harmful behavior; - General purpose social scoring; - Law enforcement; - Management and operation of critical infrastructure; - Migration, asylum and border control management; - Predictive policing; - Real-time remote biometric identification in public spaces; - Recommender systems of social media platforms; - Scraping of facial images (from the internet or otherwise); and/or - Subliminal manipulation