New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ppyoloe导出预训练模型,进行推理时报错 #8964
Comments
你把 |
E:\PaddleDetection>python deploy/python/infer.py --model_dir=output_inference/ppyoloe_plus_crn_l_80e_coco --image_dir=demo/ --run_mode=paddle --device=gpu
|
确定参数加载了? |
问题确认 Search before asking
Bug组件 Bug Component
Deploy
Bug描述 Describe the Bug
参考官方案例导出预训练模型,python tools/export_model.py -c configs/ppyoloe/ppyoloe_plus_crn_l_80e_coco.yml -o weights=https://bj.bcebos.com/v1/paddledet/models/pretrained/ppyoloe_crn_x_obj365_pretrained.pdparams exclude_nms=True
使用命令进行推理
python deploy/python/infer.py --model_dir=output_inference/ppyoloe_plus_crn_l_80e_coco --image_dir=demo/ --run_mode=paddle --device=cpu
报错
----------- Model Configuration -----------
Model Arch: YOLO
Transform Order:
--transform op: Resize
--transform op: NormalizeImage
--transform op: Permute
Found 13 inference images in total.
detector.predict_image
Traceback (most recent call last):
File "deploy/python/infer.py", line 1229, in
main()
File "deploy/python/infer.py", line 1197, in main
detector.predict_image(
File "deploy/python/infer.py", line 416, in predict_image
visualize(
File "deploy/python/infer.py", line 1112, in visualize
im_results['boxes'] = result['boxes'][start_idx:start_idx +
TypeError: only integer scalar arrays can be converted to a scalar index
复现环境 Environment
windows
paddle 2.3.2
paddledetection release 2.7
cpu推理
Bug描述确认 Bug description confirmation
是否愿意提交PR? Are you willing to submit a PR?
The text was updated successfully, but these errors were encountered: