How to install the ailia SDK
We will explain how to install the ailia SDK and how to run the samples. We will explain in order for Python, Unity, Flutter, and C++.
About ailia SDK
ailia SDK is a cross-platform AI inference library. By using ailia SDK and ailia MODELS, AI functions can be easily integrated into applications.
Installation methods by platform
Python
Run the following command in an environment where Python is installed to install the ailia SDK.
pip3 install ailia
Clone the ailia MODELS repository.
git clone https://github.com/axinc-ai/ailia-models.git
Install dependent libraries.
pip3 install -r requirements.txt
Launching the launcher.
python3 launchar.py
To run a model, select the model you want to run and press the “Run model” button.
The tutorial is as follows.
It is also possible to use it with just a browser.
Unity
Clone the repository of ailia MODELS Unity.
git clone https://github.com/axinc-ai/ailia-models-unity.git
Open and execute it in Unity. The ailia SDK will be automatically downloaded via the Package Manager.
Scenes are stored by category.
After opening the scene, the AI model can be modified in the Controller’s Inspector.
Execute the scene.
Flutter
Clone the ailia MODELS Flutter repository.
git clone https://github.com/axinc-ai/ailia-models-flutter.git
Open the project in VSCode and execute flutter pub get. The ailia SDK will be automatically downloaded via pubspec.yaml.
Run the sample, select a model, and execute the AI with the plus button.
C++
Clone the ailia MODELS cpp repository.
git clone https://github.com/axinc-ai/ailia-models-cpp.git
Download the ailia SDK via submodule.
git subomdule init
git submodule update
Download the license file for ailia SDK.
cd ailia
python3 download_license.py
For macOS, install cmake and opencv with brew.
brew install cmake
brew install opencv
Building.
cmake .
cmake --build .
I will execute it.
cd object_detection/yolox
./yolox.sh
If you enable the -v 0 option, you can also use the web camera.
cd object_detection/yolox
./yolox.sh -v 0
Additional information
ailia SDK license
Please refer to the following for ailia SDK license information.
For other environments
Please refer to the following samples for Rust, MSVC C#, and Kotlin.
Rust
MSVC C#
Kotlin
ax Inc. provides a wide range of services from consulting and model creation, to the development of AI-based applications and SDKs. Feel free to contact us for any inquiry.