-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
numpy版本为1.21.5 仍然报错 'numpy.float64' object cannot be interpreted as an integer #7532
Comments
我拆开训练跟评估发现,训练可以,评估的时候报错,所以评估的时候怎么触发的这个呢? (paddle) D:\pkg\PaddleDetection>python tools/eval.py -c configs/faster_rcnn/faster_rcnn_r50_vd_fpn_ssld_1x_rice.yml -o weights=output/faster_rcnn_r50_vd_fpn_ssld_1x_rice/model_final.pdparams (paddle) D:\pkg\PaddleDetection>python tools/train.py -c configs/faster_rcnn/faster_rcnn_r50_vd_fpn_ssld_1x_rice.yml -o LearningRate.base_lr=0.00125 worker_num=1 --eval |
重新安装环境的问题是,现在没有办法再指定安装到1.21.5的numpy 安装paddle会自动升级为1.21.6, 卸载numpy重新安装就会自动卸载paddle. |
这个是win环境下pycocotools的问题,cocodataset/cocoapi#356 ,建议卸载pycocotools再重装。 |
我在AiStudio也报了这个错,训练没问题,评估的时候报错,把numpy降到1.17.0就好了 |
感恩的心!终于好了!我之前是本地装的pycocotools, 按你的卸载了,重装的时候我在线装的pycocotools-windows ,再运行就不再报错了! |
果然有效, 太感谢了,差点放弃了, 幸好遇到你 |
问题确认 Search before asking
Bug组件 Bug Component
No response
Bug描述 Describe the Bug
请回复啊!到底是哪一步的问题,需要我把哪个包再怎么升级?
#7448
复现环境 Environment
win
paddlegpu 2.2.2
paddledet 2.5.0
pycocotools 2.0
protobuf 4.21.1
cuda 11.2
numpy 1.21.5;1.21.6; 1.17.6
Bug描述确认 Bug description confirmation
是否愿意提交PR? Are you willing to submit a PR?
The text was updated successfully, but these errors were encountered: