# Deploying Scailable AI with balena

**URL:** <https://forums.balena.io/t/deploying-scailable-ai-with-balena/369820>\
**Category:** Show and Tell\
**Created:** [January 29, 2024, 2:35pm UTC](https://forums.balena.io/t/deploying-scailable-ai-with-balena/369820 "2024-01-29T14:35:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mpous](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/mpous/32/4742_2.png) [@mpous](https://forums.balena.io/u/mpous)\
**Post date:** [January 29, 2024, 2:35pm UTC](https://forums.balena.io/t/deploying-scailable-ai-with-balena/369820/1 "2024-01-29T14:35:22Z")

</div>

This post demonstrates setting up a Raspberry Pi 5 Scailable AI with balena, highlighting the app’s compatibility with various arm64 devices. In the near future, we plan to expand our support to include X64, ARMv7, and NVIDIA CUDA-compatible apps, enabling seamless AI model deployment and execution on a very wide range of devices.

### About

The [Scailable AI Manager](https://scailable.net/) streamlines the configuration of edge AI solutions. It enables you to effortlessly set up input sensors, select an AI or ML model from a vast library on the Scailable platform or import your model from any major AI/ML training platform, and specify your output target.

In the current post, we show how to deploy to a Raspberry Pi 5.

### Features

- Highly efficient AI pipelines optimized for on-device performance.
- Supports the entire model training cycle, offering customizable data collection in the relevant context.
- Simple, code-free deployment of AI models.
- Remote control and management of edge AI systems.
- Instant access to a comprehensive library of AI models for quick startup.
- Seamless integration with a wide range of AI training platforms available in the market.

### Getting Started with the Scailable AI Manager through balenaHub on a Raspberry Pi 5

In this guide, that closely follows the [balendaCloud getting started](https://docs.balena.io/learn/getting-started/raspberrypi5/nodejs/) page, we will help you with set up the Scailable AI Manager through [balenaHub](https://hub.balena.io/) on a Raspberry Pi 5 through:

- Setting up your **Raspberry Pi 5** device and bringing it online on the balenaCloud dashboard.
- Deploying a the **Scailable AI Manager** app on the device
- Run an AI model on the device and visualize its output.
- Explain how to batch deploy and auto-register the Scailable AI Manager to a fleet of devices

If you are looking for definitions of balena related terms, refer to the balena [glossary](https://docs.balena.io/learn/more/glossary/).

If you are interested in a deeper dive into the Scailable platform, check out [https://docs.scailable.net/](https://docs.scailable.net/).

### What you’ll need

- The device: Raspberry Pi 5. Checkout our [supported devices list](https://docs.balena.io/reference/hardware/devices/).
- Balena [Etcher](https://www.balena.io/etcher) to flash the new operating system on to the device.
- A way of connecting the device to the internet, either through wifi (if available) or ethernet cable.
- A method of reliably powering the device.
- A [balenaCloud account](https://dashboard.balena-cloud.com/signup?).
- Install [balena CLI](https://github.com/balena-io/balena-cli/blob/master/INSTALL.md) to develop & manage your device on balenaCloud.

### Step by step

1. Make sure you are logged into your balenaCloud account. Make sure you have installed Balena [Etcher](https://www.balena.io/etcher) on your local computer.

2. Go to [balenaHub](https://hub.balena.io).

 ![](https://global.discourse-cdn.com/balena/original/2X/f/f964688847f6808a27a755e2e845f1191399e0fe.png)

1. Find the [scailable-ai-manager](https://hub.balena.io/apps/2101424/scailable-ai-manager) app:

2. Click the “Deploy” button.

3. Deploy to an existing fleet of devices (default) or choose to deploy to a new fleet. Here, we choose the latter. We also use the default fleet name, and choose “Raspberry Pi 5” for our default device type:

 ![](https://global.discourse-cdn.com/balena/original/2X/a/a52140bb9a26f4e0ada7ee7398ada07d14ee1bf5.png)

1. OPTIONAL: If you have a Scailable access key, you can click “Advanced” to open the advanced settings for your fleet. Here, you can enter a Scailable access key (SCLBL\_ACCESS\_KEY) which will auto-register all AI Managers to your Scailable account automatically on deploying them to your fleet of devices.

2. Now click “Create and deploy”.

3. Wait until the fleet is created. You are now able to add a device using the “Add device” button:

 ![](https://global.discourse-cdn.com/balena/original/2X/d/def84037e169c81fe5827793813fc31b893dbd7b.png)

1. Leave all settings at default, or set your WIFI SSID and password, and click “Flash”:

2. Follow the Flash Instructions:

3. Your device should appear in your application dashboard within a few minutes:

 ![](https://global.discourse-cdn.com/balena/original/2X/9/9ac7fabe105a3f5aa969394195c30276d0519c3b.png)

1. Click on the new device (here, “little-pond”), to find its ip address and its current state:

 ![](https://global.discourse-cdn.com/balena/original/2X/a/a563e510acb466047982dda1bd71e6bfb1f1c553.png)

1. In the Logs panel, you can see that the Scailable AI manager has been installed and started. Since we installed without a Scailable Access key, the device still has to be linked to a Scailable account You can do that by using a browser to visit port :8081 on the device. Here, that would be:  
`http://192.168.1.114:8081`. You will now see the local AI Manager registration page:

 ![](https://global.discourse-cdn.com/balena/original/2X/4/4d3aeb351523fd57a9dac0b40b4adc75b8bbe797.png)

1. Follow the Scailable registration process described at [https://docs.scailable.net/getting-started](https://docs.scailable.net/getting-started)

2. Choose one of our default Scailable models and one of our demo movies, and start running AI inferences right away!

 ![](https://global.discourse-cdn.com/balena/original/2X/c/c67a8384ada236f1ae92c9968496e334b883e86b.jpeg)

## Addendum: Auto-registration using fleet variables

Before you deploy the Scailable AI Manager to your device, you can set the following [fleet variable](https://docs.balena.io/learn/manage/variables/) to a Scailable UUID access key to auto-register your device(s):

- `SCLBL_ACCESS_KEY`: uuid-access-key. You will need to get this access key from Scailable directly to use this feature.

---

<div class="post-metadata">

**Author:** ![yuriploc](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/yuriploc/32/8670_2.png) [@yuriploc](https://forums.balena.io/u/yuriploc)\
**Post date:** [May 4, 2024, 12:48am UTC](https://forums.balena.io/t/deploying-scailable-ai-with-balena/369820/2 "2024-05-04T00:48:49Z")

</div>

How many streams were you able to run on the pi5? [The Frigate](https://github.com/blakeblackshear/frigate/discussions/8412) is well known for not running smoothly on pi4s, I’d be interested in some benchmarks around the pi5 on Scailable AI.

---

<div class="post-metadata">

**Author:** ![dewispew](https://avatars.discourse-cdn.com/v4/letter/d/779978/32.png) [@dewispew](https://forums.balena.io/u/dewispew)\
**Post date:** [May 6, 2024, 2:03pm UTC](https://forums.balena.io/t/deploying-scailable-ai-with-balena/369820/3 "2024-05-06T14:03:57Z")

</div>

Hi @yuriploc, thanks for your interest in Scailable.  
Scailable got acquired by Network Optix earlier this year. We are planning to release the integrated version of the Scailabel AI manager with the Network Optix media server this summer again.  
On a PI5 we would expect to run 2-3 streams at 7fps with a yolo tiny model.  
Nx Meta gen-6 beta can be installed manually if you want to give it a try. We are planning a balena package once it is released this summer.

---

<div class="post-metadata">

**Author:** ![yuriploc](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/yuriploc/32/8670_2.png) [@yuriploc](https://forums.balena.io/u/yuriploc)\
**Post date:** [May 6, 2024, 3:30pm UTC](https://forums.balena.io/t/deploying-scailable-ai-with-balena/369820/4 "2024-05-06T15:30:11Z")

</div>

That’s interesting. a barebones pi5 would run 3 streams without a USB Coral.ai, for example?
