我还安装了paddle_ocr和paddlepaddle软件包,但是我得到了一个错误(ModuleNotFoundError:没有名为‘paddle.fluid.core_noavx’的模块)。如何解决这类错误提供您的建议here...below我的代码是附在一起的
from paddleocr import PaddleOCR,draw_ocr
# Paddleocr supports Chinese, English, French, German, Korean and Japanese.
# You can set the parameter `lang` as `ch`, `en`, `french`, `german`, `korean`, `japan`
# to switch the language model in order.
ocr = PaddleOCR(use_angle_cls=True, lang='en') # need to run only once to download and load model into memory
img_path = 'PaddleOCR/doc/imgs_en/img_12.jpg'
result = ocr.ocr(img_path, cls=True)
for line in result:
print(line)发布于 2022-03-04 08:43:50
看起来,paddle包是为多个平台开发的,包括没有AVX指令集的非x86体系结构。当为每个体系结构编译包时,它会检查AVX是否实现,然后修改打包,使其具有paddle.fluid.core_avx或paddle.fluid.core_noavx命名空间。
如果您想以编程方式处理这个问题,paddle.fluid.core有一个可以检查的变量has_noavx_core。
from paddle.fluid.core import has_noavx_core
if has_noavx_core:
import paddle.fluid.core_noavx as core_noavx发布于 2022-08-17 06:44:49
该机器不支持avx,您可以尝试:
python3 -m pip install paddlepaddle-gpu==2.0.2 -f https://paddlepaddle.org.cn/whl/stable/noavx.html如果使用CPU环境,请删除gpu。
https://stackoverflow.com/questions/71348433
复制相似问题