在使用paddelx中出现以下错误:
Your script can be run normally only under PaddleX<2.0.0 but theinstalled Paddlex version is greater than or equal to 2.0.0
错误分析:
如果训练脚、API和模型是之前使用PaddleX==1.x得到的,然后对PaddleX进行升级到2.0,此时再次运行之前的脚会报错提示,这是因为PaddleX升级到2.0后,
Your running script needs PaddleX<2.0.0, please refer to https://github.com/PaddlePaddle/PaddleX/tree/release/2.0-rc/tutorials/train#%E7%89%88%E6%9C%AC%E5%8D%87%E7%BA%A7 to solve this issue
对部分训练API的设定做了修改,无法对1.x版的PaddleX训练脚做兼顾。
如果需要使用PaddleX版本低于2.0.0的训练脚本、API和模型,请将PaddleX退回1.3.11版本。如果想继续使用PaddleX 2.0,那么直继续运行本目录下的训练脚开始体验吧。
解决办法:
在命令行中输入:
pip install paddlex==1.3.11
问题解决。
有问题的小伙伴可以私信我哦~~~