车辆检测部署
Created by: Sunyingbin
你好,我用提供好的车辆检测模型尝试部署,在paddledetection上预测是好用的,然后我想用AnalysisPredictor方式来部署,我想实现一个用websocket实时推流的方式,对摄像头下的车辆实时监测。 通过
python tools/export_serving_model.py -c contrib/VehicleDetection/vehicle_yolov3_darknet.yml --output_dir=./inference_model -o weights=vehicle_yolov3_darknet
导出模型的方式,现在返回如下问题:
2020-09-17 11:32:46,980-WARNING: vehicle_yolov3_darknet.pdparams not found, try to load model file saved with [ save_params, save_persistables, save_vars ]
2020-09-17 11:32:48,602-INFO: save_inference_model pruned unused feed variables im_id
2020-09-17 11:32:48,602-INFO: Export serving model to ./inference_model, client side: ./inference_model\serving_client, server side: ./inference_model\serving_server. input: ['image', 'im_size'], output: ['multiclass_nms_0.tmp_0']...
命令语法不正确。
Traceback (most recent call last):
File "tools/export_serving_model.py", line 105, in <module>
main()
File "tools/export_serving_model.py", line 92, in main
save_serving_model(FLAGS, exe, feed_vars, test_fetches, infer_prog)
File "tools/export_serving_model.py", line 62, in save_serving_model
main_program=infer_prog)
File "D:\anaconda3\envs\paddle\lib\site-packages\paddle_serving_client\io\__init__.py", line 98, in save_model
"w") as fout:
FileNotFoundError: [Errno 2] No such file or directory: './inference_model\\vehicle_yolov3_darknet\\serving_client/serving_client_conf.prototxt'