Merged
Conversation
Collaborator
Author
|
"enable_mkldnn":False 当用cpu运行时需要关闭此加速选项,后续官方会修复这个bug。 |
Collaborator
|
please fix codestyle |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When clicking on “Table Recognition,” if no table is detected, an empty table is created, but this triggers an error. The following is the error message:
Traceback (most recent call last):
File "/Users/guoshengjian/PPOCRLabel/PPOCRLabel.py", line 3153, in TableRecognition
tablepyxl.document_to_xl("", excel_path)
File "/Users/guoshengjian/PPOCRLabel/tablepyxl/tablepyxl.py", line 118, in document_to_xl
wb = document_to_workbook(doc, base_url=base_url)
File "/Users/guoshengjian/PPOCRLabel/tablepyxl/tablepyxl.py", line 104, in document_to_workbook
).transform()
File "/opt/miniconda3/envs/Label/lib/python3.10/site-packages/premailer/premailer.py", line 353, in transform
tree = etree.fromstring(stripped, parser).getroottree()
AttributeError: 'NoneType' object has no attribute 'getroottree'
zsh: abort python PPOCRLabel.py
The error occurs because the document_to_xl() function is being called with an empty string (""), which leads to a None value being processed by premailer, resulting in the AttributeError.