mirror of
https://github.com/PaddlePaddle/PaddleOCR.git
synced 2026-09-24 23:33:08 +08:00
rm unused code
This commit is contained in:
@@ -40,13 +40,6 @@ MODELS = {
|
||||
(LayoutLMTokenizer, LayoutLMModel, LayoutLMForTokenClassification)
|
||||
}
|
||||
|
||||
MODELS = {
|
||||
'LayoutXLM':
|
||||
(LayoutXLMTokenizer, LayoutXLMModel, LayoutXLMForTokenClassification),
|
||||
'LayoutLM':
|
||||
(LayoutLMTokenizer, LayoutLMModel, LayoutLMForTokenClassification)
|
||||
}
|
||||
|
||||
|
||||
def trans_poly_to_bbox(poly):
|
||||
x1 = np.min([p[0] for p in poly])
|
||||
|
||||
Reference in New Issue
Block a user