Image Classification Based on Googlenet
1. Configure Docker development environment
Refer to here. After configuring the Docker development environment, return here to continue the next step.
警告
If you are using a configured Docker development environment, please make sure to follow the Docker configuration tutorial to execute command source ./tpu-mlir/envsetup.sh
after starting Docker, otherwise errors may occur in subsequent steps.
2. Prepare the working directory in Docker
Create and enter the googlenet
working directory, note that it is a directory at the same level as tpu-mlir
.
# mkdir googlenet && cd googlenet
Get the original model
wget https://media.githubusercontent.com/media/onnx/models/main/validated/vision/classification/inception_and_googlenet/googlenet/model/googlenet-12.onnx
Copy test image:
# cp -rf ${TPUC_ROOT}/regression/dataset/ILSVRC2012/ .
# cp -rf ${TPUC_ROOT}/regression/image/ .