paddle detection导出模型怎么用
收藏
paddle detection里导出模型后的这三个文件该怎么用呀?我现在只会用pdmodel,pdparams和pdopt那三个文件。。。
0
收藏
请登录后评论
你用保存模型对应的读取api就行了
https://www.paddlepaddle.org.cn/documentation/docs/zh/beginners_guide/coding_practice/save_load_variables.html#id4
建议可以看一下这个课程:https://aistudio.baidu.com/aistudio/education/group/info/1435
然后结合PaddleServing的官方文档示例:
https://gitee.com/paddlepaddle/Serving/tree/develop/python/examples/faster_rcnn_model
在这个课程的作业里有PaddleServing在AIStudio上的实现,具体就是需要指定下CUDA环境
infer时把模型地址当参数传入就行了
python infer.py -o 模型存储地址
python infer.py -o=模型存储地址
这样还能用预训练参数
python tools/infer.py -c configs/yolov3_mobilenet_v1_insect.yml --infer_img=dataset/insect/JPEGImages/test/1857.jpeg -o weights=https://paddlemodels.bj.bcebos.com/object_detection/yolov3_mobilenet_v1_insect.tar
-o后不加等号
这种类型的文件是与训练模型吗?
嗯,已经训练好的。MAP杠杠的