****In this Lab, you will:
Login to a remotely served Atlas 200 DK using your assigned IP.
In this workshop, you will implement an image classification app on the Atlas200 DK, which can classify objects in images using the GoogLeNet network and output the top five classes with the highest confidence scores. Detailed steps, and explanations are provided in this guide, so you can understand how to build the app step by step. Figure 1 below shows the building blocks of the application pipeline.
The code for this project is available as a GitHub repository. You will first log in to the board, then download the repository to the board and finally run the experiments for the image and video branches of the project step-by-step.
Download the GitHub repository to the board
****Login to the board using HwHiAiUser
, run following command.
mkdir /home/HwHiAiUser/HIAI_PROJECTS
cd /home/HwHiAiUser/HIAI_PROJECTS
git clone <https://github.com/Atlas200dk/sample_image_classification_c73_python.git>
cd sample_image_classification_c73_python
Prepare GoogleNet model - Download the 'googlenet.prototxt
' and 'googlenet.caffemodel
' to the board.
Create Model Directory:
mkdir model && cd model
Download the pre-trained googlenet Caffe model
wget <https://github.com/Ascend-Huawei/models/raw/master/computer_vision/classification/googlenet/googlenet.prototxt> --no-check-certificate
wget <https://obs-model-ascend.obs.cn-east-2.myhuaweicloud.com/googlenet/googlenet.caffemodel> --no-check-certificate
Model Conversion - Run the following command in the same directory as the downloaded model files to convert the model from Caffe to Offline Model format
atc --framework=0 --model="googlenet.prototxt" --weight="googlenet.caffemodel" --input_shape="data:1,3,224,224" --input_fp16_nodes="data" --input_format=NCHW --output="googlenet" --output_type=FP32 --soc_version=Ascend310