Git Product home page Git Product logo

Comments (7)

VictorHe-1 avatar VictorHe-1 commented on July 18, 2024 1

旧的显卡paddle不支持

我的显卡是H800,然后paddlepaddle没有装CPU版本的,只存在GPU版本的paddlepaddle,重新试了下cuda 11.8,依然还是识别为none。重新看了下paddle那边的issue,貌似是因为paddlepaddle暂时不支持H系列显卡。

from paddleocr.

GreatV avatar GreatV commented on July 18, 2024

换个gpu试试

from paddleocr.

jingsongliujing avatar jingsongliujing commented on July 18, 2024
import cv2
from paddleocr import PaddleOCR
import paddle
# 使用第一块GPU
paddle.set_device('gpu:0')

img_path = "general_ocr_008.png"
frame = cv2.imread(img_path)

ocr = PaddleOCR(use_angle_cls=True, lang='ch', show_log=False, use_gpu=True)
result2 = ocr.ocr(frame, cls=False)
print(result2)
# result2 和result结果不同

假如是多卡,建议paddle.set_device('gpu:0')设置一下用哪张卡

from paddleocr.

VictorHe-1 avatar VictorHe-1 commented on July 18, 2024
import cv2
from paddleocr import PaddleOCR
import paddle
# 使用第一块GPU
paddle.set_device('gpu:0')

img_path = "general_ocr_008.png"
frame = cv2.imread(img_path)

ocr = PaddleOCR(use_angle_cls=True, lang='ch', show_log=False, use_gpu=True)
result2 = ocr.ocr(frame, cls=False)
print(result2)
# result2 和result结果不同

假如是多卡,建议paddle.set_device('gpu:0')设置一下用哪张卡

刚刚尝试了一下,还是一样,8张卡返回的结果都是None。这个检测识别结果会和cuda版本有关系吗?我的cuda版本是12.2,paddlepaddle我看官方文档是只写了支持cuda 12.0的。 @jingsongliujing @GreatV

from paddleocr.

jingsongliujing avatar jingsongliujing commented on July 18, 2024

from paddleocr.

GreatV avatar GreatV commented on July 18, 2024

旧的显卡paddle不支持

from paddleocr.

GreatV avatar GreatV commented on July 18, 2024

可以尝试自己编译一个paddle框架

from paddleocr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.