mirror of
https://github.com/PaddlePaddle/PaddleOCR.git
synced 2026-10-25 10:17:04 +08:00
add ref
This commit is contained in:
@@ -670,6 +670,10 @@ class TableLabelEncode(AttnLabelEncode):
|
||||
return data
|
||||
|
||||
def _merge_no_span_structure(self, structure):
|
||||
"""
|
||||
This fun code is refer from:
|
||||
https://github.com/JiaquanYe/TableMASTER-mmocr/blob/master/table_recognition/data_preprocess.py
|
||||
"""
|
||||
new_structure = []
|
||||
i = 0
|
||||
while i < len(structure):
|
||||
@@ -682,6 +686,11 @@ class TableLabelEncode(AttnLabelEncode):
|
||||
return new_structure
|
||||
|
||||
def _replace_empty_cell_token(self, token_list, cells):
|
||||
"""
|
||||
This fun code is refer from:
|
||||
https://github.com/JiaquanYe/TableMASTER-mmocr/blob/master/table_recognition/data_preprocess.py
|
||||
"""
|
||||
|
||||
bbox_idx = 0
|
||||
add_empty_bbox_token_list = []
|
||||
for token in token_list:
|
||||
|
||||
@@ -11,6 +11,11 @@
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
"""
|
||||
This fun code is refer from:
|
||||
https://github.com/JiaquanYe/TableMASTER-mmocr/tree/master/mmocr/models/textrecog/losses
|
||||
"""
|
||||
|
||||
import paddle
|
||||
from paddle import nn
|
||||
|
||||
|
||||
@@ -11,6 +11,10 @@
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
"""
|
||||
This fun code is refer from:
|
||||
https://github.com/JiaquanYe/TableMASTER-mmocr/blob/master/mmocr/models/textrecog/backbones/table_resnet_extra.py
|
||||
"""
|
||||
|
||||
import paddle
|
||||
import paddle.nn as nn
|
||||
|
||||
@@ -11,6 +11,11 @@
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
"""
|
||||
This fun code is refer from:
|
||||
https://github.com/JiaquanYe/TableMASTER-mmocr/blob/master/mmocr/models/textrecog/decoders/master_decoder.py
|
||||
"""
|
||||
|
||||
import copy
|
||||
import math
|
||||
import paddle
|
||||
|
||||
@@ -26,7 +26,7 @@ from .east_postprocess import EASTPostProcess
|
||||
from .sast_postprocess import SASTPostProcess
|
||||
from .fce_postprocess import FCEPostProcess
|
||||
from .rec_postprocess import CTCLabelDecode, AttnLabelDecode, SRNLabelDecode, \
|
||||
DistillationCTCLabelDecode, TableLabelDecode, NRTRLabelDecode, SARLabelDecode, \
|
||||
DistillationCTCLabelDecode, NRTRLabelDecode, SARLabelDecode, \
|
||||
SEEDLabelDecode, PRENLabelDecode, ViTSTRLabelDecode, ABINetLabelDecode
|
||||
from .cls_postprocess import ClsPostProcess
|
||||
from .pg_postprocess import PGPostProcess
|
||||
|
||||
Reference in New Issue
Block a user