ailia Tech BLOG

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/ailia-ai/ailia-models.git

GitHub — ailia-ai/ailia-models: The collection of pre-trained, state-of-the-art AI models for ailia…The collection of pre-trained, state-of-the-art AI models for ailia SDK — ailia-ai/ailia-modelsgithub.com

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.

ailia SDK Tutorial (Python)Here is a tutorial on how to use ailia SDK in Python. ailia SDK allows you to perform deep learning inference using…medium.com

It is also possible to use it with just a browser.

Google Colab and ailia MODELS to Perform AI in the BrowserThis explains how to easily perform AI processing in the browser alone using Google Colab and ailia MODELS.medium.com

Unity

Clone the repository of ailia MODELS Unity.

git clone https://github.com/ailia-ai/ailia-models-unity.git

GitHub — ailia-ai/ailia-models-unity: Unity version of ailia models repositoryUnity version of ailia models repository. Contribute to ailia-ai/ailia-models-unity development by creating an account…github.com

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.

Example of speech recognition

Flutter

Clone the ailia MODELS Flutter repository.

git clone https://github.com/ailia-ai/ailia-models-flutter.git

GitHub — ailia-ai/ailia-models-flutter: ONNX Model Library for FlutterONNX Model Library for Flutter. Contribute to ailia-ai/ailia-models-flutter development by creating an account on…github.com

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.

Select model

Example of running Whisper

C++

Clone the ailia MODELS cpp repository.

git clone https://github.com/ailia-ai/ailia-models-cpp.git

GitHub — ailia-ai/ailia-models-cpp: C++ version of ailia models repositoryC++ version of ailia models repository. Contribute to ailia-ai/ailia-models-cpp development by creating an account on…github.com

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.

ailia SDK Licenseailia SDK License Information [Japanese] [English] About license !! CAUTION !! "ailia" IS NOT OPEN SOURCE SOFTWARE…ailia.ai

For other environments

Please refer to the following samples for Rust, MSVC C#, and Kotlin.

Rust

GitHub — ailia-ai/ailia-models-rustContribute to ailia-ai/ailia-models-rust development by creating an account on GitHub.github.com

MSVC C#

GitHub — ailia-ai/ailia-csharp: ailia SDK example for Visual Studio C#ailia SDK example for Visual Studio C#. Contribute to ailia-ai/ailia-csharp development by creating an account on…github.com

Kotlin

GitHub — ailia-ai/ailia-android-studio-kotlin: Sample project of kotlinSample project of kotlin. Contribute to ailia-ai/ailia-android-studio-kotlin development by creating an account on…github.com


ailia 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.