How to specify GPU during inference? #14750
Unanswered
brianyuastri
asked this question in
Q&A
Replies: 1 comment 5 replies
-
在 PaddleOCR 中,指定 GPU 进行推理时,可以通过设置环境变量
通过这种方式,你可以灵活地指定不同的 GPU 卡进行推理。 参考链接希望这些信息对你有帮助! Response generated by 🤖 feifei-bot | deepseek-chat |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
As titled, for example:
from paddleocr import PaddleOCR
model_0 = ocr.ocr(use_gpu=True) # use cuda:0
model_1 = ocr.ocr(use_gpu=True) # use cuda:1
How do I make this work?
Beta Was this translation helpful? Give feedback.
All reactions