Convert Figma logo to code with AI

aidlearning logoAidLearning-FrameWork

🔥🔥🔥AidLearning is a powerful AIOT development platform, AidLearning builds a linux env supporting GUI, deep learning and visual IDE on Android...Now Aid supports CPU+GPU+NPU for inference with high performance acceleration...Linux on Android or HarmonyOS

5,771
719
5,771
25

Top Related Projects

Termux - a terminal emulator application for Android OS extendible by variety of packages.

18,976

Open source UI framework written in Python, running on Windows, Linux, macOS, Android and iOS

PyTorch android examples of usage in applications

TensorFlow examples

Kotlin/Native infrastructure

Quick Overview

AidLearning-FrameWork is an AI development platform for mobile devices, particularly Android phones and tablets. It provides a complete Linux environment with pre-installed deep learning frameworks, allowing users to develop and run AI applications directly on their mobile devices without the need for cloud services or powerful desktop computers.

Pros

  • Enables AI development and deployment on mobile devices
  • Includes pre-installed popular deep learning frameworks (TensorFlow, PyTorch, Keras)
  • Provides a full Linux environment with GUI support
  • Offers easy installation and setup process

Cons

  • May have performance limitations compared to desktop or cloud-based AI development
  • Requires significant storage space on the mobile device
  • Limited to Android devices, not available for iOS
  • May drain battery faster due to intensive computations

Getting Started

  1. Download the AidLearning app from the Google Play Store or the project's GitHub releases page.
  2. Install the app on your Android device (Android 6.0 or higher required).
  3. Launch the app and follow the on-screen instructions to set up the Linux environment.
  4. Once setup is complete, you can access the Linux terminal, use pre-installed AI frameworks, and develop your AI applications.

Example commands to get started:

# Update the system
apt update && apt upgrade

# Launch Python and import TensorFlow
python3
>>> import tensorflow as tf
>>> print(tf.__version__)

# Clone a sample AI project
git clone https://github.com/aidlearning/AidLearning-FrameWork.git
cd AidLearning-FrameWork/examples

# Run a sample AI script
python3 mnist_example.py

Note: Specific code examples are not provided as this is not a traditional code library, but rather a development environment for running various AI frameworks and applications on mobile devices.

Competitor Comparisons

Termux - a terminal emulator application for Android OS extendible by variety of packages.

Pros of Termux

  • Lightweight and efficient, focusing on providing a Linux terminal environment
  • Extensive package repository with a wide range of tools and utilities
  • Active community and regular updates

Cons of Termux

  • Limited GUI support, primarily focused on command-line interface
  • Requires more technical knowledge to set up and use effectively
  • May not provide as comprehensive an AI development environment out-of-the-box

Code Comparison

Termux (package installation):

pkg install python
pip install numpy scipy matplotlib

AidLearning-FrameWork (AI-related code):

import torch
import torchvision
model = torchvision.models.resnet18(pretrained=True)

The code snippets highlight the different focus areas of the two projects. Termux emphasizes package management and system-level operations, while AidLearning-FrameWork provides pre-configured AI development tools and libraries.

AidLearning-FrameWork offers a more comprehensive AI development environment with pre-installed libraries and GUI support, making it easier for beginners to start with AI projects. However, Termux provides a more flexible and customizable Linux environment, allowing users to install and configure their preferred tools and libraries.

Both projects have their strengths, with Termux being more suitable for general-purpose Linux usage on Android, and AidLearning-FrameWork catering specifically to AI developers looking for a ready-to-use environment on mobile devices.

18,976

Open source UI framework written in Python, running on Windows, Linux, macOS, Android and iOS

Pros of Kivy

  • Cross-platform compatibility (desktop and mobile)
  • Large and active community with extensive documentation
  • Flexible and customizable UI design with Python

Cons of Kivy

  • Steeper learning curve for beginners
  • Limited native look and feel on some platforms
  • Performance can be slower compared to native solutions

Code Comparison

Kivy:

from kivy.app import App
from kivy.uix.button import Button

class MyApp(App):
    def build(self):
        return Button(text='Hello World')

MyApp().run()

AidLearning-FrameWork:

import cv2
import numpy as np
from cvs import *

def main():
    img = np.zeros((300, 300, 3), np.uint8)
    cv2.putText(img, "Hello World", (50, 150), cv2.FONT_HERSHEY_SIMPLEX, 1, (255, 255, 255), 2)
    imshow(img)

main()

The Kivy example demonstrates a simple GUI application with a button, while the AidLearning-FrameWork example shows image processing and display capabilities. Kivy focuses on cross-platform GUI development, whereas AidLearning-FrameWork is tailored for AI and computer vision tasks on mobile devices.

PyTorch android examples of usage in applications

Pros of android-demo-app

  • Focused specifically on Android development with PyTorch
  • Provides ready-to-use demo applications for common ML tasks
  • Easier integration for developers already familiar with Android ecosystem

Cons of android-demo-app

  • Limited to Android platform, less versatile than AidLearning-FrameWork
  • May require more setup and configuration for complex ML projects
  • Less comprehensive in terms of overall AI development environment

Code Comparison

AidLearning-FrameWork:

import cv2
import numpy as np
from cvs import *

def process_frame(frame):
    # AI processing logic here
    return processed_frame

cvs = CVS()
cvs.run(process_frame)

android-demo-app:

import org.pytorch.IValue;
import org.pytorch.Module;
import org.pytorch.Tensor;

Module module = Module.load(assetFilePath(this, "model.pt"));
Tensor inputTensor = Tensor.fromBlob(inputArray, inputShape);
Tensor outputTensor = module.forward(IValue.from(inputTensor)).toTensor();

The AidLearning-FrameWork code snippet shows a more Python-centric approach with OpenCV integration, while the android-demo-app example demonstrates Java-based PyTorch model loading and inference on Android.

TensorFlow examples

Pros of TensorFlow Examples

  • Comprehensive collection of TensorFlow examples covering various ML tasks
  • Well-maintained and regularly updated by the TensorFlow team
  • Extensive documentation and explanations for each example

Cons of TensorFlow Examples

  • Focused solely on TensorFlow, lacking support for other AI frameworks
  • Requires separate setup and configuration of development environment
  • May be overwhelming for beginners due to the large number of examples

Code Comparison

AidLearning-FrameWork:

import cv2
import numpy as np
from cvs import *

def process_image(image):
    # Image processing code here
    return processed_image

show_img(process_image(read_img("input.jpg")))

TensorFlow Examples:

import tensorflow as tf
from tensorflow import keras

model = keras.Sequential([
    keras.layers.Dense(64, activation='relu'),
    keras.layers.Dense(10, activation='softmax')
])
model.compile(optimizer='adam', loss='categorical_crossentropy')

The AidLearning-FrameWork example focuses on image processing with OpenCV, while the TensorFlow Examples code demonstrates building a simple neural network model. AidLearning-FrameWork provides a more integrated environment for AI development on mobile devices, whereas TensorFlow Examples offers a wider range of machine learning examples across various domains.

Kotlin/Native infrastructure

Pros of kotlin-native

  • Allows Kotlin code to be compiled to native binaries without a VM
  • Supports cross-platform development for iOS, macOS, Android, Windows, Linux
  • Integrates well with existing Kotlin and Java codebases

Cons of kotlin-native

  • Steeper learning curve compared to AidLearning-FrameWork
  • More complex setup and configuration required
  • Limited support for some Kotlin features in native code

Code Comparison

kotlin-native example:

fun main() {
    println("Hello, Kotlin/Native!")
}

AidLearning-FrameWork example:

import cv2
img = cv2.imread("image.jpg")
cv2.imshow("Image", img)
cv2.waitKey(0)

The kotlin-native example shows a simple "Hello World" program, while the AidLearning-FrameWork example demonstrates basic image processing using OpenCV. This highlights the different focus areas of the two projects - kotlin-native for native compilation of Kotlin code, and AidLearning-FrameWork for AI and computer vision tasks on mobile devices.

Convert Figma logo designs to code with AI

Visual Copilot

Introducing Visual Copilot: A new AI model to turn Figma designs to high quality code using your components.

Try Visual Copilot

README

🚀 AidLux(ori:AidLearning) - 手机上跑大模型的瑞士军刀 [English]

AidLux:掌上的 AI 瑞士军刀。在手机上运行原生 Ubuntu,本地部署 LLM、VLM、VLA 与 OpenClaw,全能开发一机搞定。

Release License Platform

AidLux 是一个基于 ARM 架构的跨生态(Android/HarmonyOS + Linux)一站式 AIoT 应用开发和部署平台。它打破了 Android 与 Linux 的生态壁垒,让你可以在 Android 手机、平板或边缘计算设备上,同时获得原生的 Linux 桌面环境和 AI 开发能力。

核心理念:持续降低 AI 应用开发门槛,实现端侧 AI 算力的一键释放。


📢 最新动态 (AidLux 2.1.0)

发布日期:2026年3月20日 Build ID:2.1.0.1968

  • 全新桌面环境:默认桌面环境由 Xfce 升级为 Ubuntu-desktop,提供更现代、更完整的 Linux 桌面体验。
  • 硬件支持扩展:AidLite SDK 现已正式支持 Snapdragon 8 Gen 3 及以上最新芯片组。
  • **AI 引擎升级**:集成更新的 QNN (Qualcomm Neural Network) 版本,并优化了底层推理逻辑 (AidQNN)。
  • 功能增强:
    • 重构并扩展了 WiFi 管理功能。
    • 优化了 Linux 环境的安装与更新逻辑。
    • 应用中心安装 APK 的初始目录指定为 AidLux 内部空间,提升安全性。
    • Aid-Desktop 界面交互与易用性全面优化。

🌟 核心优势

🔗 独创的融合架构 (Fusion Architecture)

  • 原生共存:共享 Linux 内核,实现 Android (HarmonyOS) 与 Linux 的原生融合,无需虚拟机或双系统重启。
  • **生态互补**:无缝调用 Android 的硬件驱动(摄像头、传感器、GPS)与 Linux 的 AI 软件栈(Python, ROS, OpenCV)。

⚡ 极致的端侧算力调度

  • 异构计算:通过 AidLite SDK 一键调度 CPU + GPU + NPU。
  • 高性能低功耗:针对高通 (Qualcomm) 系列芯片进行了深度优化,支持 INT4/INT8/FP16 量化加速。

🤖 全场景 AI 开发支持

  • 大模型端侧部署:支持近500款端侧大模型(LLM/VLM/VLA)的量化与推理,如 Qwen3、Phi3、Deepseek、Stable Diffusion 等。
  • 机器人开发:原生集成 ROS/ROS2,支持 MoveIt2 和 Gazebo,支持VLA模型,是具身智能开发的理想平台。

🛠️ 核心工具链

AidLux 提供了一站式的开发工具,覆盖从代码编写到模型部署的全流程。

🧪 AidCode - 交互式 Python IDE

  • 功能:专为端侧 AI 开发设计的代码编辑器。
  • **特性**:
    • 支持 Python 语法高亮、代码补全。
    • 内置交互式终端,支持一键运行 (Run Now) 和停止代码。
    • 支持直接调用 Android API(如语音播报 droid.ttsSpeak)。

🐍 完整的 Linux 终端 (AidTerminal)

  • 功能:提供与原生 Ubuntu 系统一致的命令行体验。
  • **特性**:
    • Touch Bar:底部定制化触控栏,包含 Ctrl, Alt, Tab 等组合键,完美适配手机/平板触屏。
    • **多终端**:支持同时开启多个终端标签页,互不干扰。
    • 键盘映射:支持外接键盘和触屏软键盘切换。

📦 应用中心 (App Center)

  • 功能:管理 AidLux 生态下的应用。
  • **特性**:
    • **双生态应用**:既可安装 Linux 原生应用(如 VSCode, Firefox),也可将 Android 应用添加到桌面使用。
    • 一键安装:简化了复杂软件的依赖安装过程。

🤖 AI 与机器人工具

  • AidGen / AidGenSE:生成式 AI 推理工具与 HTTP 服务,支持 RAG 服务部署。
  • AidStream:高性能音视频流处理框架,支持 USB 摄像头推拉流。
  • ROS2 Humble:预装机器人操作系统,支持激光雷达、机械臂等外设开发。

📂 文件系统结构

AidLux 对 Android 存储进行了标准化映射,方便开发者进行文件管理:

目录路径描述说明
/home/aidlux工作目录默认的代码和项目存放位置,唯一支持文件上传的目录。
/sdcard设备存储对应 Android 的内部存储,存放图片 (DCIM)、下载文件等。
/media/sdi1外接存储识别并挂载的 U 盘或移动硬盘目录。
/opt系统应用存放预装的 SDK 和核心系统库。

🚀 快速开始

1. 环境要求

  • 支持系统:Android 7.0+, HarmonyOS, Xiaomi HyperOS
  • 硬件架构:ARM64 位设备
  • 推荐设备:
    • **手机/平板**:小米 12S/13/14/15 系列, 华为 Mate/P 系列 (部分), 三星 S 系列。
    • **开发板**:犀牛派 X1 (Rhino Pi-X1), 犀牛派 A1。

2. 安装方式

  • 应用商店:华为、联想、小米应用商店搜索 "AidLux" 下载。
  • **手动安装 (APK)**:
    • 下载地址:aidlux_2.1.0_latest_release.apk
    • 注意:若安装时提示 Permission denied,请先卸载旧版本,重启手机后再安装。

3. 开发流程

  1. **连接**:通过浏览器 Web 端或本地桌面进入 AidLux。
  2. 编码:使用 AidCode 编写 Python 脚本。
  3. 运行:直接调用 AidStream 捕获摄像头画面,或使用 AidLite 加载 ONNX/TensorFlow 模型进行推理。
  4. 部署:将应用打包或直接在端侧运行。

💡 常见问题 (FAQ)

基于社区反馈整理,帮助你快速避坑:

  • Q: 安装新版本后提示 "Permission denied" 或无法启动?

    • A: 这通常是因为残留了旧版本数据。请卸载旧版本,重启手机,再安装新版本 APK。
  • Q: 手机上为什么找不到终端 (Terminal)?

    • A: 请检查是否安装了完整版。终端通常位于桌面的 "System" 菜单中,或在应用中心搜索 "Terminal" 确认是否已安装。
  • Q: 能否在 AidLux 中运行需要 systemd 的软件 (如 HomeAssistant, OpenClaw)?

    • A: AidLux 基于 Android 内核,原生不支持 systemd (PID 1)。但社区已有通过 proot 或特定脚本兼容运行的方法(参考社区教程安装 HomeAssistant)。
  • Q: 如何在手机和电脑之间传输代码/模型?

    • A: 推荐使用 AidLux 内置的 AidDesktop 通过浏览器访问,或使用 scp 命令。文件需放在 /home/aidlux 目录下才能被识别。

📚 学习资源


🏷️ 标签

#端侧AI #AIoT #AndroidLinux #高通AI #大模型部署 #ROS #Python #开源 #AidLux