diff --git a/PPOCRLabel/data/Cache.cach b/PPOCRLabel/data/Cache.cach deleted file mode 100644 index dcb248213444d23fb3e61f3cf4b381b3beadd1c2..0000000000000000000000000000000000000000 --- a/PPOCRLabel/data/Cache.cach +++ /dev/null @@ -1 +0,0 @@ -data/paddle.png [{"transcription": "1/j飞浆", "points": [[27.0, 17.0], [158.0, 20.0], [158.0, 64.0], [27.0, 61.0]], "difficult": false}] diff --git a/PPOCRLabel/data/Label.txt b/PPOCRLabel/data/Label.txt deleted file mode 100644 index 1ad8a19278a1b15ae9005590d7444ef6cce1a57e..0000000000000000000000000000000000000000 --- a/PPOCRLabel/data/Label.txt +++ /dev/null @@ -1 +0,0 @@ -data/paddle.png [{"transcription": "1/j飞浆", "points": [[27, 17], [158, 20], [160, 61], [27, 61]], "difficult": false}] diff --git a/PPOCRLabel/data/fileState.txt b/PPOCRLabel/data/fileState.txt deleted file mode 100644 index b37d8de7252e48b3b20a8490c2ac79c86a69f425..0000000000000000000000000000000000000000 --- a/PPOCRLabel/data/fileState.txt +++ /dev/null @@ -1 +0,0 @@ -/Users/mac/Downloads/PaddleOCR/PPOCRLabel/data/paddle.png 1 diff --git a/ppstructure/vqa/__init__.py b/ppstructure/vqa/__init__.py deleted file mode 100644 index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..0000000000000000000000000000000000000000 diff --git a/ppstructure/vqa/eval_re.py b/ppstructure/vqa/eval_re.py index 1ccce07e4bf62797ec76fe6cadf674509320dac2..12bb9cabdb8b4d6482a121ca3b73089b3d0244ff 100644 --- a/ppstructure/vqa/eval_re.py +++ b/ppstructure/vqa/eval_re.py @@ -24,7 +24,7 @@ import paddle from paddlenlp.transformers import LayoutXLMTokenizer, LayoutXLMModel, LayoutXLMForRelationExtraction from xfun import XFUNDataset -from vaq_utils import parse_args, get_bio_label_maps, print_arguments +from utils import parse_args, get_bio_label_maps, print_arguments from data_collator import DataCollator from metric import re_score diff --git a/ppstructure/vqa/eval_ser.py b/ppstructure/vqa/eval_ser.py index 7f8d1bdc271806c01144365ae0fbef0563719a59..52eeb8a1da82d6e7dcdc726c1a77fd9ab18f0608 100644 --- a/ppstructure/vqa/eval_ser.py +++ b/ppstructure/vqa/eval_ser.py @@ -33,7 +33,7 @@ from paddlenlp.transformers import LayoutLMModel, LayoutLMTokenizer, LayoutLMFor from xfun import XFUNDataset from losses import SERLoss -from vaq_utils import parse_args, get_bio_label_maps, print_arguments +from utils import parse_args, get_bio_label_maps, print_arguments from ppocr.utils.logging import get_logger diff --git a/ppstructure/vqa/infer_re.py b/ppstructure/vqa/infer_re.py index 5ef9692076e79d66c3910007a75f60261e83bb4e..7937700a78c28eff19a78dc5ddc8ccef82cc0148 100644 --- a/ppstructure/vqa/infer_re.py +++ b/ppstructure/vqa/infer_re.py @@ -15,7 +15,7 @@ import paddle from paddlenlp.transformers import LayoutXLMTokenizer, LayoutXLMModel, LayoutXLMForRelationExtraction from xfun import XFUNDataset -from vaq_utils import parse_args, get_bio_label_maps, draw_re_results +from utils import parse_args, get_bio_label_maps, draw_re_results from data_collator import DataCollator from ppocr.utils.logging import get_logger diff --git a/ppstructure/vqa/infer_ser.py b/ppstructure/vqa/infer_ser.py index 4d169ee34fcb1a73a73575c0c1c807b9daa301eb..7994b5449af97988e9ad458f4047b59b81f72560 100644 --- a/ppstructure/vqa/infer_ser.py +++ b/ppstructure/vqa/infer_ser.py @@ -22,7 +22,7 @@ from copy import deepcopy import paddle # relative reference -from vaq_utils import parse_args, get_image_file_list, draw_ser_results, get_bio_label_maps +from utils import parse_args, get_image_file_list, draw_ser_results, get_bio_label_maps from paddlenlp.transformers import LayoutXLMModel, LayoutXLMTokenizer, LayoutXLMForTokenClassification from paddlenlp.transformers import LayoutLMModel, LayoutLMTokenizer, LayoutLMForTokenClassification diff --git a/ppstructure/vqa/infer_ser_e2e.py b/ppstructure/vqa/infer_ser_e2e.py index 31ce7fdefd3bf27ed2c94fc12cf0a54969d78a63..6bb0247501bc98ea709d3ad47c284268b3d9503b 100644 --- a/ppstructure/vqa/infer_ser_e2e.py +++ b/ppstructure/vqa/infer_ser_e2e.py @@ -25,9 +25,9 @@ from paddlenlp.transformers import LayoutXLMModel, LayoutXLMTokenizer, LayoutXLM from paddlenlp.transformers import LayoutLMModel, LayoutLMTokenizer, LayoutLMForTokenClassification # relative reference -from vaq_utils import parse_args, get_image_file_list, draw_ser_results, get_bio_label_maps +from utils import parse_args, get_image_file_list, draw_ser_results, get_bio_label_maps -from vaq_utils import pad_sentences, split_page, preprocess, postprocess, merge_preds_list_with_ocr_info +from utils import pad_sentences, split_page, preprocess, postprocess, merge_preds_list_with_ocr_info MODELS = { 'LayoutXLM': diff --git a/ppstructure/vqa/infer_ser_re_e2e.py b/ppstructure/vqa/infer_ser_re_e2e.py index c57ef274b1f66a359f0b183443255b25cf176198..32d8850a16eebee7e43fd58cbaa604fc2bc00b7c 100644 --- a/ppstructure/vqa/infer_ser_re_e2e.py +++ b/ppstructure/vqa/infer_ser_re_e2e.py @@ -24,7 +24,7 @@ import paddle from paddlenlp.transformers import LayoutXLMModel, LayoutXLMTokenizer, LayoutXLMForRelationExtraction # relative reference -from vaq_utils import parse_args, get_image_file_list, draw_re_results +from utils import parse_args, get_image_file_list, draw_re_results from infer_ser_e2e import SerPredictor diff --git a/ppstructure/vqa/train_re.py b/ppstructure/vqa/train_re.py index b26d8a378ae77dc6d495949de9c391d83d3b995d..47d694678013295a1c664a7bdb6a7fe13a0b36a5 100644 --- a/ppstructure/vqa/train_re.py +++ b/ppstructure/vqa/train_re.py @@ -27,7 +27,7 @@ import paddle from paddlenlp.transformers import LayoutXLMTokenizer, LayoutXLMModel, LayoutXLMForRelationExtraction from xfun import XFUNDataset -from vaq_utils import parse_args, get_bio_label_maps, print_arguments, set_seed +from utils import parse_args, get_bio_label_maps, print_arguments, set_seed from data_collator import DataCollator from eval_re import evaluate diff --git a/ppstructure/vqa/train_ser.py b/ppstructure/vqa/train_ser.py index 0d6e2c422ceb64a2b283befc01e2997e43a4882c..2670ef9eeaf75cc1c9bb7d8f41d6f76d4300e597 100644 --- a/ppstructure/vqa/train_ser.py +++ b/ppstructure/vqa/train_ser.py @@ -32,7 +32,7 @@ from paddlenlp.transformers import LayoutXLMModel, LayoutXLMTokenizer, LayoutXLM from paddlenlp.transformers import LayoutLMModel, LayoutLMTokenizer, LayoutLMForTokenClassification from xfun import XFUNDataset -from vaq_utils import parse_args, get_bio_label_maps, print_arguments, set_seed +from utils import parse_args, get_bio_label_maps, print_arguments, set_seed from eval_ser import evaluate from losses import SERLoss from ppocr.utils.logging import get_logger diff --git a/ppstructure/vqa/vaq_utils.py b/ppstructure/vqa/utils.py similarity index 100% rename from ppstructure/vqa/vaq_utils.py rename to ppstructure/vqa/utils.py