Skip to content

使用华为昇腾npu进行ocr识别推理时报错 #1859

@hejie61677

Description

@hejie61677

报错信息:
Image
npu-smi info:
Image

目前使用的镜像:
ccr-2vdh3abv-pub.cnc.bj.baidubce.com/device/paddle-npu:cann80RC2-ubuntu20-npu-base-aarch64-gcc84

使用的基于PaddleOcr识别的项目:
https://gitee.com/code_cloud_white_cat/myocr2-invoice.git
修改了myocr2-invoice\tool\public_info.py 11行 改成: device = 'NPU'
myocr2-invoice\deploy\auto_compression\run_det.py 195行 改成: paddle.set_device('npu:0')
myocr2-invoice\deploy\auto_compression\eval.py 161行 改成: paddle.set_device('npu:0')

使用python main.py启动服务,然后通过http请求调用服务进行图片识别时报第一个图片的错误

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions