First-Order-Motion-Model: Optimized for Qualcomm Devices
FOMM is a machine learning model that animates a still image to mirror the movements from a target video.
This is based on the implementation of First-Order-Motion-Model 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.
| Runtime | Precision | Chipset | SDK Versions | Download |
|---|---|---|---|---|
| ONNX | float | Universal | QAIRT 2.42, ONNX Runtime 1.24.3 | Download |
For more device-specific assets and performance metrics, visit First-Order-Motion-Model on Qualcomm® AI Hub.
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 First-Order-Motion-Model on GitHub for usage instructions.
Model Details
Model Type: Model_use_case.video_generation
Model Stats:
- Model checkpoint: vox-256
- Input resolution: 256x256
- Model size (detector) (float): 54.2 MB
- Model size (generator) (float): 174 MB
Performance Summary
| Model | Runtime | Precision | Chipset | Inference Time (ms) | Peak Memory Range (MB) | Primary Compute Unit |
|---|---|---|---|---|---|---|
| detector | ONNX | float | Snapdragon® 8 Elite Gen 5 Mobile | 2.752 ms | 0 - 24 MB | NPU |
| detector | ONNX | float | Snapdragon® 8 Elite Mobile | 2.92 ms | 0 - 22 MB | NPU |
| detector | ONNX | float | Snapdragon® X2 Elite | 2.663 ms | 28 - 28 MB | NPU |
| detector | ONNX | float | Snapdragon® X Elite | 4.589 ms | 27 - 27 MB | NPU |
| detector | ONNX | float | Snapdragon® X Elite | 4.589 ms | 27 - 27 MB | NPU |
| detector | ONNX | float | Snapdragon® 8 Gen 3 Mobile | 3.279 ms | 0 - 36 MB | NPU |
| detector | ONNX | float | Qualcomm® QCS8550 (Proxy) | 4.372 ms | 1 - 2 MB | NPU |
| detector | ONNX | float | Qualcomm® QCS9075 | 5.799 ms | 1 - 4 MB | NPU |
| detector | ONNX | float | Snapdragon® 8 Elite For Galaxy Mobile | 2.92 ms | 0 - 22 MB | NPU |
| generator | ONNX | float | Snapdragon® 8 Elite Gen 5 Mobile | 10.413 ms | 2 - 197 MB | NPU |
| generator | ONNX | float | Snapdragon® 8 Elite Mobile | 13.413 ms | 17 - 184 MB | NPU |
| generator | ONNX | float | Snapdragon® X2 Elite | 11.884 ms | 91 - 91 MB | NPU |
| generator | ONNX | float | Snapdragon® X Elite | 26.464 ms | 89 - 89 MB | NPU |
| generator | ONNX | float | Snapdragon® X Elite | 26.464 ms | 89 - 89 MB | NPU |
| generator | ONNX | float | Snapdragon® 8 Gen 3 Mobile | 16.422 ms | 20 - 240 MB | NPU |
| generator | ONNX | float | Qualcomm® QCS8550 (Proxy) | 21.753 ms | 16 - 18 MB | NPU |
| generator | ONNX | float | Qualcomm® QCS9075 | 34.202 ms | 17 - 21 MB | NPU |
| generator | ONNX | float | Snapdragon® 8 Elite For Galaxy Mobile | 13.413 ms | 17 - 184 MB | NPU |
License
- The license for the original implementation of First-Order-Motion-Model 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.
