ModuleNotFoundError:没有名为“paddle.fluid.core_noavx”的模块?
我还安装了 paddle_ocr 和 paddlepaddle 包,但出现错误(ModuleNotFoundError:没有名为“paddle.fluid.core_noavx”的模块)。如何解决此类错误,请在此处提供您的建议...下面附有我的代码
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)
I install paddle_ocr and paddlepaddle packages also but i got an Error (ModuleNotFoundError: No module named 'paddle.fluid.core_noavx'). how to solve this type of error provide your suggestions here...below my code was attached
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)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
看起来 paddle 包是为多个平台开发的,包括没有 AVX 指令集的非 x86 架构。当为每个架构编译包时,它会检查是否实现了 AVX,然后修改包以具有
paddle.fluid.core_avx
或paddle.fluid.core_noavx
命名空间。如果您想以编程方式处理此问题,
paddle.fluid.core
有一个变量has_noavx_core
您可以检查。It looks like the
paddle
package is developed for multiple platforms including non-x86 architectures that don't have the AVX instruction set. When the package is compiled for each architecture it checks if AVX is implemented and then modifies the packaging to have either thepaddle.fluid.core_avx
orpaddle.fluid.core_noavx
namespace.If you want to handle this programmatically,
paddle.fluid.core
has a variablehas_noavx_core
that you can check.机器不支持avx,可以尝试:
如果使用CPU环境,去掉gpu
The machine does not support avx, you can try:
If the CPU environment is used, remove the gpu