From e0707bf5f27c96c97dae27b11a91cb5dfdcf100d Mon Sep 17 00:00:00 2001 From: Tong Gao Date: Tue, 21 Mar 2023 11:30:21 +0800 Subject: [PATCH] [Fix] Synthtext metafile (#1788) * [Fix] Synthtext metafile * spotting * fix --- dataset_zoo/synthtext/metafile.yml | 29 +++++++++++++++++++++++++++ dataset_zoo/synthtext/textspotting.py | 6 ++++++ 2 files changed, 35 insertions(+) create mode 100644 dataset_zoo/synthtext/metafile.yml create mode 100644 dataset_zoo/synthtext/textspotting.py diff --git a/dataset_zoo/synthtext/metafile.yml b/dataset_zoo/synthtext/metafile.yml new file mode 100644 index 00000000..a0154d73 --- /dev/null +++ b/dataset_zoo/synthtext/metafile.yml @@ -0,0 +1,29 @@ +Name: 'SynthText in the Wild Dataset' +Paper: + Title: Synthetic Data for Text Localisation in Natural Images + URL: https://openaccess.thecvf.com/content_cvpr_2016/papers/Gupta_Synthetic_Data_for_CVPR_2016_paper.pdf + Venue: CVPR + Year: '2016' + BibTeX: '@InProceedings{Gupta16, + author = "Ankush Gupta and Andrea Vedaldi and Andrew Zisserman", + title = "Synthetic Data for Text Localisation in Natural Images", + booktitle = "IEEE Conference on Computer Vision and Pattern Recognition", + year = "2016", + }' +Data: + Website: https://www.robots.ox.ac.uk/~vgg/data/scenetext/ + Language: + - English + Scene: + - Synthesis + Granularity: + - Word + - Character + Tasks: + - textdet + - textrecog + - textspotting + License: + Type: Synthext Custom + Link: https://www.robots.ox.ac.uk/~vgg/terms/dataset-group-2-access.html + Format: .mat diff --git a/dataset_zoo/synthtext/textspotting.py b/dataset_zoo/synthtext/textspotting.py new file mode 100644 index 00000000..dd98995d --- /dev/null +++ b/dataset_zoo/synthtext/textspotting.py @@ -0,0 +1,6 @@ +_base_ = ['textdet.py'] + +_base_.train_preparer.packer.type = 'TextSpottingPacker' +_base_.train_preparer.gatherer.img_dir = 'textdet_imgs/train' + +config_generator = dict(type='TextSpottingConfigGenerator')