Open SWHL opened 3 years ago
Thanks your work!
Firstly, I run the
data_preprocess.py
to get valid train data, and get the same directory structure, like this:mmocr_pubtabnet_recognition_0726 ├── recognition_train_img ├── recognition_train_txt ├── structure_alphabet.txt ├── StructureLabelAddEmptyBbox_train ├── table_master_ResnetExtract_Ranger_0705.py ├── textline_recognition_alphabet.txt └── TxtPreLabel_train
Secondly, I want to train the table structure recognition model with TableMASTER, by the following code:
sh ./table_recognition/table_recognition_dist_train.sh
but the following data path can't be found. https://github.com/JiaquanYe/TableMASTER-mmocr/blob/7139e843b4d3b7f520904399af2ebda1d27e9a7d/configs/textrecog/master/table_master_ResnetExtract_Ranger_0705.py#L143-L144
I hope you can tell me where I can find the corresponding data. Thanks!
Hi, for table structure training, train_img_prefix is the string, which means the prefix name of the table image path. You can find in ocr_dataset.py and base_dataset for details. train_anno_file1 is the folder, which store the annotation files for TableMASTER training, like "StructureLabelAddEmptyBbox_train" folder in your example directory structure.
Thanks, the problem has been solved.
@SWHL hi, i have meet the same problem, Can you share the following tips on how to solve this problem
@SWHL hi, i have meet the same problem, Can you share the following tips on how to solve this problem
Thanks your work!
Firstly, I run the
data_preprocess.py
to get valid train data, and get the same directory structure, like this:Secondly, I want to train the table structure recognition model with TableMASTER, by the following code:
but the following data path can't be found. https://github.com/JiaquanYe/TableMASTER-mmocr/blob/7139e843b4d3b7f520904399af2ebda1d27e9a7d/configs/textrecog/master/table_master_ResnetExtract_Ranger_0705.py#L143-L144
I hope you can tell me where I can find the corresponding data. Thanks!