"torchvision/vscode:/vscode.git/clone" did not exist on "883f1fb01a8ba0e1b1cdc16c16f2e6e0ef87e3bd"
Commit b40c4327 authored by myhloli's avatar myhloli
Browse files

fix: comment out warning for CPU device language switch in pytorch_paddle.py

parent 1cd683b9
...@@ -58,7 +58,7 @@ class PytorchPaddleOCR(TextSystem): ...@@ -58,7 +58,7 @@ class PytorchPaddleOCR(TextSystem):
device = get_device() device = get_device()
if device == 'cpu' and self.lang in ['ch', 'ch_server', 'japan', 'chinese_cht']: if device == 'cpu' and self.lang in ['ch', 'ch_server', 'japan', 'chinese_cht']:
logger.warning("The current device in use is CPU. To ensure the speed of parsing, the language is automatically switched to ch_lite.") # logger.warning("The current device in use is CPU. To ensure the speed of parsing, the language is automatically switched to ch_lite.")
self.lang = 'ch_lite' self.lang = 'ch_lite'
if self.lang in latin_lang: if self.lang in latin_lang:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment