fixed a cuda config bug
This commit is contained in:
parent
6fed221f74
commit
1b4dfa4449
2
main.py
2
main.py
@ -23,7 +23,7 @@ class number(object):
|
|||||||
self.debug = debug
|
self.debug = debug
|
||||||
|
|
||||||
# Init detector and OCR
|
# Init detector and OCR
|
||||||
self.__detector = Detector(device="gpu" if gpu else "cpu")
|
self.__detector = Detector(device="cuda" if gpu else "cpu")
|
||||||
self.__eocr = easyocr.Reader(['ch_sim', 'en'], gpu=self.gpu)
|
self.__eocr = easyocr.Reader(['ch_sim', 'en'], gpu=self.gpu)
|
||||||
self.__pocr = PaddleOCR(use_angle_cls=True, use_gpu=self.gpu, show_log=debug)
|
self.__pocr = PaddleOCR(use_angle_cls=True, use_gpu=self.gpu, show_log=debug)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user