下載其他辨識模型

一、官方資料與說明

網址:https://github.com/dusty-nv/jetson-inference/blob/master/docs/building-repo-2.md#downloading-models

Building the Project from Source

Provided with the repo is a library of TensorRT-accelerated deep learning networks for image recognition, object detection with localization (i.e. bounding boxes), and semantic segmentation. This inferencing library (libjetson-inference) is intended to be run on the Jetson, and includes support for both C++ and Python. Various pre-trained DNN models are automatically downloaded to get you up and running quickly.

The latest source code or Docker container can be used onboard your Jetson once your device has been flashed with JetPack or setup with the pre-populated SD card image. You can run the pre-built Docker container without needing to compile the project or install PyTorch yourself.

我看照這一句之後,我覺得....可能我自己是可以不用去compiler這個Project啦

如果有需要下載其他訓練好的麼型,可以使用

Model Downloader工具

切換到以下資料夾,跟著執行

$ cd jetson-inference/tools 

$ ./download-models.sh 

所以....我直接下載模型就好,而且Docker container已經有Pytorch了,我就....嗯

目前我是已經離開Docker container的狀態下去執行安裝的喔!

切換到目錄tools

執行  ./download-models.sh 

因為我還不知道要裝什麼,所以裝檔案最小的

下載中

最後這段有說明...

[jetson-inference]  to run this tool again, use the following commands:


    $ cd <jetson-inference>/tools

    $ ./download-models.sh


執行Docker檢視下載的飛機辨識模型吧

這是還沒安裝前內的模型

執行Docker後再來檢視一次

切換到 /jetson-inference/build/aarch64/bin 資料夾

再切換到 networks 資料夾

下 ls 指令

原本的

安裝後

DetectNet-COCO-Airplane

測試看看吧,先上網下載兩張照片,儲存在images資料夾

a01.jpg

a02.jpg

我們下載的模型是detectnet的,所以就不是使用 imagenet.py,要改用 detectnet-console.py

# Python

$  ./detectnet-console.py  images/a01.jpeg images/test/output_a01.jpg


$  ./detectnet-console.py  images/a02.jpg images/test/output_a02.jpg



反正需要其他模型的時候就執行下列指令吧

在還沒執行Docker之前

$ cd jetson-inference/tools 

$ ./download-models.sh