NX入门教程软件篇-安装Hello AI World
NX入门教程软件篇-安装Hello AI World
说明:
- 介绍如何安装Hello AI World
步骤:
- 源码安装
- 自动下载相关的数据集
- 自动安装pytorch 1.4 + python2的版本
# download the repo
$ git clone --recursive https://github.com/dusty-nv/jetson-inference
$ cd jetson-inference
# configure build tree
$ mkdir build
$ cd build
$ cmake ../
# build and install
$ make -j$(nproc)
$ sudo make install
$ sudo ldconfig
- 错误:NvOnnxParserTypedefs.h: No such file or directory
sudo find / -name NvOnnxParserTypedefs.h
sudo cp /your/path/to/NvOnnxParserTypedefs.h /your_tensorrt_path/include/
- 下载更多数据集
$ cd jetson-inference/tools
$ ./download-models.sh
测试imagenet :
- 进入目录
cd jetson-inference/build/aarch64/bin
- 测试例子
# Python
$ ./imagenet.py images/orange_0.jpg images/test/output_0.jpg # (default network is googlenet)
# Python
$ ./imagenet.py images/strawberry_0.jpg images/test/output_1.jpg
- 第一次运行,花费时间比较长,主要是优化网络
- 生成识别后的图片在images/test/目录下
参考:
- https://github.com/dusty-nv/jetson-inference
- https://elinux.org/Jetson_Zoo
- https://developer.nvidia.com/embedded/twodaystoademo
- https://github.com/dusty-nv/jetson-inference/blob/master/docs/imagenet-console-2.md
获取最新文章: 扫一扫右上角的二维码加入“创客智造”公众号