-
Notifications
You must be signed in to change notification settings - Fork 137
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
246 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- | ||
title: 是在 Maix-III(M3) 系列 AX-Pi 开发板上运行 AI 模型和部署模型到 AX-Pi | ||
--- | ||
|
||
|
||
## 使用现成的模型 | ||
|
||
到 [MaixHub 模型库](https://maixhub.com/model/zoo) 找到你需要的模型,可以在过滤选项中选择`AX-Pi 平台`来查找能在`AX-Pi`上运行的模型。 | ||
然后下载并拷贝到开发板使用,模型详情页面会介绍如何使用模型。 | ||
|
||
## 将你的模型转换为在 AX-Pi 上可以使用的模型 | ||
|
||
使用模型训练框架(比如 Pytorch)训练好模型后,要在 `AX-Pi` 上运行,还需要将模型量化为`INT8`模型,以及转换成`AX-Pi`支持的模型格式。 | ||
同时,也要注意`AX-Pi`的算子支持情况,在设计模型结构时就需要考虑到; | ||
另外,有些模型可能需要将后处理从模型中分离出来,在`AX-Pi`上单独使用代码实现后处理。 | ||
详细的模型部署方法见[部署模型到 Maix-III(M3) 系列 AX-Pi 开发板](/ai/zh/deploy/ax-pi.html) | ||
|
||
## 分享有趣的模型 | ||
|
||
部署成功后会有一份模型文件,以及一份能运行模型的代码,可以将这些文件分享到 [MaixHub 模型库](https://maixhub.com/model/zoo) ,大家一起交流学习! | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
--- | ||
title: Maix-III 系列 AX-Pi 开发板 SDK 使用介绍 | ||
--- | ||
|
||
## SDK 和源码下载 | ||
|
||
SDK 源码在 [libmaix](https://github.com/sipeed/libmaix), 点击页面`Code` -> `Download ZIP` 下载, 或者使用 git 命令下载: | ||
|
||
```bash | ||
git clone https://github.com/sipeed/libmaix.git | ||
``` | ||
|
||
另外, AI 模型及例程在 [MaixHub 模型库](https://maixhub.com/model/zoo) 可以找到, 以及 [AXERA-TECH/ax-samples](https://github.com/AXERA-TECH/ax-samples) 仓库。 | ||
|
||
|
||
## 编译 SDK | ||
|
||
对于 `libmaix`, 按照其`README.md` 文件描述的方法编译即可, 不过需要在`menuconfig`命令中选择 `AX-Pi` 作为编译目标。 | ||
|
||
这里简要介绍一下编译过程: | ||
|
||
TODO: | ||
|
||
## 组合 SDK 和 AI 模型例程 | ||
|
||
比如我们要跑一个视觉 AI 模型,需要用到摄像头,屏幕,还有 AI 模型。 | ||
其中 摄像头和屏幕的使用在`libmaix`中已经有例程,可以直接使用,基于摄像头屏幕使用例程,将 AI 模型的例程拷贝到例程目录中,调整一下 API 调用即可。 | ||
|
||
举例: | ||
|
||
TODO: | ||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,6 @@ title: 动态 | |
keywords: teedoc, 博客生成, 静态博客 | ||
desc: teedoc 静态博客页面生成 | ||
show_source: false | ||
date: true | ||
date: false | ||
|
||
--- |