参考:
https://cnloong.blog.csdn.net/article/details/139293689
https://gitee.com/ascend/samples/tree/master/inference/modelInference/sampleResnetQuickStart/cpp
https://developer.huawei.com/consumer/cn/forum/topic/0203148227811150357
官方图像分类案例下载:
git clone https://gitee.com/ascend/samples.git
安装opencv:
sudo apt-get install libopencv-dev
设置环境变量:
vim ~/.bashrc
source ~/.bashrc
使用案例:
1)ATC转换模型
# 为了方便下载,在这里直接给出原始模型下载及模型转换命令