loog
Jetson xavier nx – Hello AI World | 株式会社バンコム

Jetson xavier nx – Hello AI World

May 26, 2020

Jetson の Hello AI World を試します。

Hello AI World
https://github.com/dusty-nv/jetson-inference/blob/master/docs/building-repo-2.md

$ sudo apt-get update
$ sudo apt-get install git cmake libpython3-dev python3-numpy
$ git clone --recursive https://github.com/dusty-nv/jetson-inference
$ cd jetson-inference
$ mkdir build
$ cd build
$ cmake ../
$ make -j$(nproc)
$ sudo make install
$ sudo ldconfig


$ ls aarch64/
bin  include  lib

Classifying Images with ImageNet

cd aarch64/bin
./imagenet-console.py --network=googlenet images/orange_0.jpg output_0.jpg

(略)
class 0950 - 0.979004  (orange)
class 0951 - 0.020966  (lemon)
(略)

97.9%の確率で Orange, 2.0%の確率でメロンだそうです!

resnet-18

./imagenet-console.py --network=resnet-18 images/jellyfish.jpg output_jellyfish.jpg

(略)
class 0107 - 0.991211  (jellyfish)
(略)

ssd-mobilenet-v2

./detectnet-console.py --network=ssd-mobilenet-v2 images/peds_0.jpg output.jpg

fcn-resnet18-cityscapes

./segnet-console.py --network=fcn-resnet18-cityscapes images/city_0.jpg output.jpg