paddleocr on gpu gtx 3050 speed test

  Рет қаралды 106

Альберт Иванов

Альберт Иванов

Ай бұрын

import time,cv2
from paddleocr import PaddleOCR,draw_ocr
import paddle
#paddle.device.is_compiled_with_cuda()
paddle.utils.run_check()
ocr = PaddleOCR(use_gpu=True, use_angle_cls=False, rec_model="ch_PP-OCRv2_rec_infer_opt.nb",drop_score=0.8,\
warmup=False,show_log=False,use_onnx=False, lang='en') # need to run only once to download and load model into memory
#img_path = 'img_12.jpg'
#img_path = '100.jfif'
img_path = '1.png'
img_path=cv2.imread(img_path)
##height, width, channels = img_path.shape
##croppedImage = img_path[int(height/1.4):int(height), 0:width]
##cv2.imwrite('crop.jpg',croppedImage)
#quit()
while True:
start_time = time.time()
result = ocr.ocr(img_path, cls=True)
#result_clean=(result[0][0][1][0]).rstrip('".')
#print(result_clean)
for idx in range(len(result)):
res = result[idx]
for line in res:
print(line[1][0])
print("--- %s seconds --" % (time.time() - start_time)) #-- 7.761305570602417 seconds ---
#--- 0.15680623054504395 seconds --- gpu gtx 3050
cuda 11.7 cudnn 8.9.7
#developer.nvidia.com/rdp/cudn...
#docs.nvidia.com/deeplearning/...
#library issue - stackoverflow.com/questions/7...
#github.com/PaddlePaddle/Paddl...
#pypi.org/project/paddlepaddle...

Пікірлер
CMD PRANKS! (Educational Purposes ONLY!)
9:17
Veraxity
Рет қаралды 1,4 МЛН
Stay on your way 🛤️✨
00:34
A4
Рет қаралды 25 МЛН
Они так быстро убрались!
01:00
Аришнев
Рет қаралды 2 МЛН
Survive 100 Days In Nuclear Bunker, Win $500,000
32:21
MrBeast
Рет қаралды 81 МЛН
Iron Chin ✅ Isaih made this look too easy
00:13
Power Slap
Рет қаралды 36 МЛН
Can I Run Youtube Entirely From My Terminal? (No Browser)
15:31
I switched back to AMD... and I have no regrets.
24:11
JayzTwoCents
Рет қаралды 389 М.
The moment we stopped understanding AI [AlexNet]
17:38
Welch Labs
Рет қаралды 846 М.
DocsGPT tests on windows10
8:15
Альберт Иванов
Рет қаралды 25
My top 3 gaming monitors right now.
6:59
optimum
Рет қаралды 260 М.
Why The Windows Phone Failed
24:08
Apple Explained
Рет қаралды 187 М.
Dear Game Developers, Stop Messing This Up!
22:19
Jonas Tyroller
Рет қаралды 699 М.
llamafile test with OmniFusion - вопросы llama на русском
4:22
Альберт Иванов
Рет қаралды 73
MAKE AIMBOT IN 10 MINUTES
12:34
cazz
Рет қаралды 874 М.
WhatsApp Messenger Runs Arbitrary Python Code
13:46
John Hammond
Рет қаралды 98 М.
Stay on your way 🛤️✨
00:34
A4
Рет қаралды 25 МЛН