运行 predict/chinese_ocr_db_crnn_server 模型提示np.int 函数错误
欢迎您反馈PaddleHub使用问题,非常感谢您对PaddleHub的贡献! 在留下您的问题时,辛苦您同步提供如下信息:
- 版本、环境信息 1)PaddleHub和PaddlePaddle2.4版本: 2)系统环境:请您描述系统类型,linux,python 3.10版本
- 复现信息:如为报错,请给出复现环境、复现步骤
运行模型提示使用np.int函数错误
module 'numpy' has no attribute 'int'.\nnp.int was a deprecated alias for the builtin int. To avoid this error in existing code, use int by itself. Doing this will not modify any behavior and is safe. When
replacing np.int, you may wish to use e.g. np.int64 or np.int32 to specify the precision. If you wish to review your current use, check the release note link for additional information.\nThe aliases was originally deprecated
in NumPy 1.20; for more details and guidance see the original release note at:\n https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations"
提示似乎安装的numpy版本已经不支持int函数了
已解决 去到对应模型文件修改np.int 改为np.int_