Sign in
Sign up
Explore
Enterprise
Education
Search
Help
Terms of use
About Us
Explore
Enterprise
Education
Gitee Premium
Gitee AI
AI teammates
Sign in
Sign up
Fetch the repository succeeded.
Open Source
>
AI/ML
>
Artificial Intelligence
&
Computer Vision/Face Recognition
&&
Donate
Please sign in before you donate.
Cancel
Sign in
Scan WeChat QR to Pay
Cancel
Complete
Prompt
Switch to Alipay.
OK
Cancel
Watch
Unwatch
Watching
Releases Only
Ignoring
72
Star
811
Fork
289
GVP
PaddlePaddle
/
PaddleDetection
Code
Issues
50
Pull Requests
4
Wiki
Insights
Pipelines
Service
Quality Analysis
Jenkins for Gitee
Tencent CloudBase
Tencent Cloud Serverless
悬镜安全
Aliyun SAE
Codeblitz
SBOM
Don’t show this again
Update failed. Please try again later!
Remove this flag
Content Risk Flag
This task is identified by
as the content contains sensitive information such as code security bugs, privacy leaks, etc., so it is only accessible to contributors of this repository.
ppyoloe导出预训练模型,进行推理时报错
Backlog
#I9NZWN
atczyh
Opened this issue
2024-05-09 21:29
### 问题确认 Search before asking - [x] 我已经查询[历史issue](https://github.com/PaddlePaddle/PaddleDetection/issues),没有发现相似的bug。I have searched the [issues](https://github.com/PaddlePaddle/PaddleDetection/issues) and found no similar bug report. ### 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 <module> 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 - [x] 我确认已经提供了Bug复现步骤、代码改动说明、以及环境信息,确认问题是可以复现的。I confirm that the bug replication steps, code change instructions, and environment information have been provided, and the problem can be reproduced. ### 是否愿意提交PR? Are you willing to submit a PR? - [ ] 我愿意提交PR!I'd like to help by submitting a PR!
### 问题确认 Search before asking - [x] 我已经查询[历史issue](https://github.com/PaddlePaddle/PaddleDetection/issues),没有发现相似的bug。I have searched the [issues](https://github.com/PaddlePaddle/PaddleDetection/issues) and found no similar bug report. ### 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 <module> 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 - [x] 我确认已经提供了Bug复现步骤、代码改动说明、以及环境信息,确认问题是可以复现的。I confirm that the bug replication steps, code change instructions, and environment information have been provided, and the problem can be reproduced. ### 是否愿意提交PR? Are you willing to submit a PR? - [ ] 我愿意提交PR!I'd like to help by submitting a PR!
Comments (
1
)
Sign in
to comment
Status
Backlog
Backlog
Doing
Done
Closed
Assignees
Not set
Labels
Not set
Label settings
Milestones
No related milestones
No related milestones
Pull Requests
None yet
None yet
Successfully merging a pull request will close this issue.
Branches
No related branch
Branches (46)
Tags (43)
release/2.8.1
develop
release/2.7
release/2.7.1
release/2.8
revert-9145-czy-det
release/2.6.1
revert-8967-use_shape_memory_for_dino_dataloader
release_2_7_npu
release_2_6_1_npu
revert-8915-fix_paddle_shape
jzhang533-patch-1
release/2.6
release/2.5
owl-vit
onnx_trt
revert-6901-fix_vit_faster_hang_L
niu_fair_mort_prof
release/2.4
release/2.3
release/0.5
release/2.2
revert-4317-multi-scale-test
release/2.1
release/2.0
yzl19940819-patch-2
yzl19940819-patch-1
cherry_update_2.0.1
release/2.0-rc
release/0.4
master
release/2.0-beta
revert-2109-fix_dy_ssd_mbv1
dygraph
liuhuiCNN-patch-1
update_yolov3_config
refactor_dygraph_yolo
htc_v2
update_ppyolo_tiny
release/0.3
add_kitti_proto
qingqing01-patch-1
release/0.2
add_some_lr_scheduler
add_lr_scheduler
release/0.1
v2.8.1
v2.8.0
v2.7.0
v2.6.0
v2.5.0
2.5.0
v2.4.0
v2.3.0
v2.2.0
v2.1.0
v2.0.0
v2.0.0-rc0
v0.1.0
v1.5.1
lite-v0.1
v1.5.0
v1.4.1
v1.4.0
v1.3.2
v1.3.1
v1.3.0
v1.2.1
v1.2.0
v1.1.0
v1.0.2
v1.0.1
v1.0.0
v1.0.0-rc0
v0.15.0
v0.15.0-rc0
v0.14.0
v0.13.0
v0.12.0
v0.11.1a2
v0.11.1a1
v0.11.0
v0.10.0
v0.10.0rc4
v0.10.0rc
v0.9.0
v0.9.0a0
V0.8.0b1
V0.8.0b0
Planed to start   -   Planed to end
-
Top level
Not Top
Top Level: High
Top Level: Medium
Top Level: Low
Priority
Not specified
Serious
Main
Secondary
Unimportant
参与者(1)
Python
1
https://gitee.com/paddlepaddle/PaddleDetection.git
git@gitee.com:paddlepaddle/PaddleDetection.git
paddlepaddle
PaddleDetection
PaddleDetection
Going to Help Center
Search
Git 命令在线学习
如何在 Gitee 导入 GitHub 仓库
Git 仓库基础操作
企业版和社区版功能对比
SSH 公钥设置
如何处理代码冲突
仓库体积过大,如何减小?
如何找回被删除的仓库数据
Gitee 产品配额说明
GitHub仓库快速导入Gitee及同步更新
什么是 Release(发行版)
将 PHP 项目自动发布到 packagist.org
Comment
Repository Report
Back to the top
Login prompt
This operation requires login to the code cloud account. Please log in before operating.
Go to login
No account. Register