Comments (7)
旧的显卡paddle不支持
我的显卡是H800,然后paddlepaddle没有装CPU版本的,只存在GPU版本的paddlepaddle,重新试了下cuda 11.8,依然还是识别为none。重新看了下paddle那边的issue,貌似是因为paddlepaddle暂时不支持H系列显卡。
from paddleocr.
换个gpu试试
from paddleocr.
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.
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.
from paddleocr.
旧的显卡paddle不支持
from paddleocr.
可以尝试自己编译一个paddle框架
from paddleocr.
Related Issues (20)
- A global iterator flag was passed as a per-operand flag to the iterator constructor HOT 4
- KeyError: 'cells'
- 最新发布表格识别模型报错 HOT 5
- pyinstaller 打包好的软件,导出模型时报的错
- 用quick start推理实现检测和识别 InvalidArgumentError: Broadcast dimension mismatch HOT 2
- 本地推理时比飞桨官网通用OCR体验的识别效果差了很多 HOT 2
- infer_vqa_token_ser_re.py 输出的内容是空,没有在图片显示键值的结果,infer_results.txt里面ser_result数组结果也是空
- 使用GPU推理乱码 HOT 1
- 存在内存泄露 HOT 4
- paddle_serving部署教程中,模型转换代码实效。 HOT 2
- Paddleocr models keep downloading every time container starts HOT 2
- File "tools/infer_kie_token_ser_re.py", line 223, in <module> result_key[ocr_info_head['text']] = ocr_info_tail['text'] KeyError: 'text' HOT 2
- PPStructure missing text that PaddleOCR do not miss HOT 4
- ppocrlabel标注多行文字,准确度下降很多
- ppocrlabel表格标注识别结果拖动问题
- Can't Run the model on GPU,but CPU is fine. (error code is 126) HOT 4
- FYI: Wrong documentation? HOT 6
- 执行paddleocr报ImportError HOT 2
- 开启mkldnn加速后,出现报错RuntimeError: could not execute a primitive HOT 3
- paddleocr:export onnx and inference error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from paddleocr.