Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wangsen
MinerU
Commits
b40c4327
"torchvision/vscode:/vscode.git/clone" did not exist on "883f1fb01a8ba0e1b1cdc16c16f2e6e0ef87e3bd"
Commit
b40c4327
authored
Jun 20, 2025
by
myhloli
Browse files
fix: comment out warning for CPU device language switch in pytorch_paddle.py
parent
1cd683b9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
mineru/model/ocr/paddleocr2pytorch/pytorch_paddle.py
mineru/model/ocr/paddleocr2pytorch/pytorch_paddle.py
+1
-1
No files found.
mineru/model/ocr/paddleocr2pytorch/pytorch_paddle.py
View file @
b40c4327
...
@@ -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
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment