batch_size不生效? #16296
Unanswered
stingoChen
asked this question in
Q&A
batch_size不生效?
#16296
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
使用方式如下
`
from paddleocr import TextDetection
import time
model = TextDetection(model_name="PP-OCRv5_server_det", device="gpu")
st = time.time()
output = model.predict(imgs, batch_size=3)
end = time.time()
print((end - st) / (len(imgs)))
`
实测发现 修改batch_size 数值 平均推理耗时基本一致 请问这是为什么,是不是batch_size 为生效?
Beta Was this translation helpful? Give feedback.
All reactions