Quick links : Home - Label Data - Cloud Setup - Train Model - Setup Jetson - Edge Inferencing - Horizon Hub - Horizon Client - Docker Model - Horizon Deploy
This section shows you how to download and test the hard hat model on your Jetson Nano.
In this lab you will learn how to:
- Download the hard hat model with the cacli
- git clone object-detection-react
- Test model on the Jetson
In a previous section you uploaded hard hat image training data and trained a object detection model using the Cloud Annotations command line interface, cacli, Tensorflow and Watson Machine Learning. You also downloaded the model and tested the model on your laptop using a browser and your laptop web camera.
This section will repeat some of those steps on the Jetson Nano.
Our model is already trained so we can use the Cloud Annotations command line interface, cacli
to download it.
The cacli is available for Linux, Mac, Windows. Follow the download and installation instructions
-
Login to your IBM Cloud account using
cacli login
and answer the OTP prompts$ cacli login
-
List training runs and trained models
$ cacli list
Before we can run the Object Detection web application on your Jetson Nano, these commands install Node.js
$ curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
$ sudo apt-get install -y nodejs
The Cloud Annotations github repository includes an object detection react web application that you can install locally.
-
Follow the README.md instructions
-
(or) Run these commands:
$ git clone [email protected]:cloud-annotations/object-detection-react.git $ cd object-detection-react $ npm install
-
Move the model_web directory created by the
cacli download
into thepublic
folder of this repo directory. On the Ubuntu Linux system I just create a symlink. -
Start the server
$ npm start
Now that the object detection react web application is running, launch Chromium on your Jetson Nano and open http://localhost:3000 to view it in the browser. Share your Jetson web camera with the browser tab.
Find your hard hat and observe the hard hat model prediction running on the Jetson!
You are now ready to set up Open Horizon Exchange Hub Services, so proceed to the next Horizon Hub Setup section.
Home - Label Data - Cloud Setup - Train Model - Setup Jetson - Edge Inferencing - Horizon Hub - Horizon Client - Docker Model - Horizon Deploy