This repository contains scripts to help you compile models, upload datasets, run inference, and profile models on AIHub. Follow the steps below to get started.
Before running the scripts, ensure you have:
- A registered AIHub account
- Python 3.9+ installed
- The
qai_hubPython SDK installed - A trained model ready for compilation
- A dataset ready for upload
- Go to AIHub's official website.
- Create an account and set up your API credentials.
pip3 install qai-hub
# Navigate to Qualcomm® AI Hub website
# Account -> Settings -> API Token.
qai-hub configure --api_token INSERT_API_TOKEN- Go to lpcv.ai, locate Register button on homepage.
- Register for participating in LPCVC 2025.
- Train your own model
- Run the following script to submit your model for compilation:
python compile_model.pyModify the compile_model.py script to:
- Replace
model = ""with your actual model file. - Set the target device based on your track.
The script will return a compiled job ID—save this for later steps.
Go to lpcv.ai, locate Submit on homepage. Fill out the correct submission form for your track.
IMPORTANT:
In order to submit the compiled model for evaluation, you must share it with the email address lowpowervision@gmail.com. To do this, modify the sharing settings in the script:
compile_job.modify_sharing(add_emails=['lowpowervision@gmail.com'])This will grant the necessary permissions for the evaluation team to access the model. Sharing with this email is required for submitting your model for evaluation.
Run the following script to upload your dataset:
python upload_dataset.pyModify the upload_dataset.py script to:
- Set
image_folder = "Path/to/image/folder"to your dataset folder. - Ensure the dataset consists of valid image files (.jpg, .png, .jpeg).
The script will return a dataset ID—save this for later steps.
Once the model is compiled and dataset uploaded, run inference using:
python run_inference.pyModify the run_inference.py script to:
- Set
compiled_idwith your compiled model ID. - Set
input_datasetwith your dataset ID.
The script will submit an inference job.
To profile the compiled model, run:
python run_profile.pyModify the run_profile.py script to:
- Set
compiled_idwith your compiled model ID.
This script will:
- Submit a profiling job.
- Print the estimated inference time upon completion.
For questions or issues, please use the lpcvc channel in the official Qualcomm® AI Hub slack channel.