PaddleX转化为hub模型失败
收藏
使用PaddleX2.1 训练导出helmet目标检测模型后,导出模型的目录结构如下:
P0001-T0003_export_model
–inference_model
----inference_model
-------model.pdiparams
-------model.pdiparams.info
-------model.pdmodel
-------model.yml
hub convert打包到helmet.tar.gz(分别对第一层inference_model和第二层inference_model都测试了)
然后再hub install的时候都出现了如下报错:
numpy.ndarray size changed, may indicate binary incompatibility. Expected 88 from C header, got 80 from PyObject
请问是啥问题哈?
------------version
paddlepaddle 2.2.2
paddlex 2.1.0
paddlehub 2.2.0
numpy 1.19.3
faye870408
已解决
3#
回复于2022-02
此问题解决,是numpy<1.20里的一个bug,upgrade即可 https://stackoverflow.com/questions/66060487/valueerror-numpy-ndarray-size-changed-may-indicate-binary-incompatibility-exp
0
收藏
请登录后评论
此问题解决,是numpy<1.20里的一个bug,upgrade即可
https://stackoverflow.com/questions/66060487/valueerror-numpy-ndarray-size-changed-may-indicate-binary-incompatibility-exp
后续还可能遇到CUDA版本不对的问题(如CUDA11.0+cuDNN8.2),
如果提示cudnn64_8\cublas64_100\cusolver64_100之类的CUDA+cuDNN依赖不对问题
可尝试以下办法解决:
•cusolver64_100重命名(或copy改名)为cusolver64_10
•cublas64_100.dll重命名(或copy改名)为cublas64_10.dll
•cudnn64_8重命名(或copy改名)为cudnn64_7
请问使用paddle2.2.2版本之后 训练模型出现:
Your script can be run normally only under PaddleX<2.0.0 but the installed PaddleX version is greater than or equal to 2.0.0, the solution is writen in the link SystemExit: -1
怎么办