Nano入门教程软件篇-安装AI学习库jetson-inference
Nano入门教程软件篇-安装AI学习库jetson-inference
说明:
- 介绍如何在nano上安装AI学习库jetson-inference
安装:
- 安装依赖
# git and cmake should be installed
sudo apt-get install git cmake
- 下载jetson-inference库
cd ~/workspace
git clone -b onnx https://github.com/dusty-nv/jetson-inference
cd jetson-inference
git submodule update --init
- 编译jetson-inference
mkdir build
cd build
cmake ../
make
- 安装jetson-inference
sudo make install
测试:
- 识别静态图:
$ cd jetson-inference/build/aarch64/bin
- 识别橙子
$ ./imagenet-console orange_0.jpg output_0.jpg
- 首次运行速度比较慢,第二次运行速度将加快
- 效果:
- 识别苹果
$ ./imagenet-console granny_smith_1.jpg output_1.jpg
- 效果:
参考:
- https://github.com/dusty-nv/jetson-inference
- https://github.com/dusty-nv/jetson-inference/blob/master/docs/detectnet-console-2.md
- https://github.com/dusty-nv/jetson-inference/blob/master/docs/imagenet-console-2.md
获取最新文章: 扫一扫右上角的二维码加入“创客智造”公众号