xxr 513500cb00 | 1 year ago | |
---|---|---|
.. | ||
README.md | 1 year ago | |
img_preprocess.py | 1 year ago | |
infer_resnet.py | 1 year ago | |
run.sh | 1 year ago | |
threads_demo.py | 1 year ago |
请您在环境中安装2.0或以上版本的Paddle,具体的安装方式请参照飞桨官方页面的指示方式。
1)获取预测模型
下载模型,模型为imagenet 数据集训练得到的,如果你想获取更多的模型训练信息,请访问这里。解压后存储到该工程的根目录。
2)获取预测样例图片
下载样例图片。
图片如下:
文件img_preprocess.py
包含了图像的预处理。
文件infer_resnet.py
包含了创建predictor,读取示例图片,预测,获取输出的等功能。
运行:
python infer_resnet.py --model_file=./resnet50/inference.pdmodel --params_file=./resnet50/inference.pdiparams --use_gpu=1
运行的结果为: ('class index: ', 13)。
13表示图片的类别。我们通过imagenet 类别映射表, 可以找到对应的类别,即junco, snowbird,由此说明我们的分类器分类正确。
使用paddledetection在jetson nano上部署目标检测网络,检测简单手势,然后再通过nano控制beep等外设,来达到beep的变频输出
Markdown C++ Python reStructuredText Shell other
Dear OpenI User
Thank you for your continuous support to the Openl Qizhi Community AI Collaboration Platform. In order to protect your usage rights and ensure network security, we updated the Openl Qizhi Community AI Collaboration Platform Usage Agreement in January 2024. The updated agreement specifies that users are prohibited from using intranet penetration tools. After you click "Agree and continue", you can continue to use our services. Thank you for your cooperation and understanding.
For more agreement content, please refer to the《Openl Qizhi Community AI Collaboration Platform Usage Agreement》