A step-by-step guide to setting up a development environment on Linux so you can start using ailia SDK.
Choose your OS: Windows · Mac · Linux
To use ailia SDK from Python, you need three things: Python, pip, and git. Most Linux distributions ship with Python 3, so you only install what is missing with the package manager. This guide uses Ubuntu / Debian-based systems as an example.
ailia-models sample collection.apt for Ubuntu / Debian-based systems. On Fedora / RHEL-based systems use sudo dnf install, and on Arch-based systems use sudo pacman -S.
First, check whether Python 3 is installed.
python3 --version
If a version is displayed, it is ready to use. If it is not installed, install it with the following commands.
sudo apt update
sudo apt install python3
On Linux, pip is often a separate package, so install it with the following command.
sudo apt install python3-pip
Once installed, verify it.
pip3 --version
Install git to fetch the sample collection (ailia-models) from GitHub.
sudo apt install git
Once installed, verify it.
git --version
Once Python, pip, and git are in place, you can finally install ailia SDK. Run the following.
pip3 install ailia
Next, let's clone the sample collection and run it.
git clone https://github.com/ailia-ai/ailia-models.git
cd ailia-models
pip3 install -r requirements.txt
cd object_detection/yolox
python3 yolox.py -v 0
If object detection results are overlaid on your webcam feed, it worked. For more details on how to use it, see the ailia SDK getting started page.