Closed jey07 closed 3 years ago
I am also facing the same issue. Do let me know, if your issue is solved
basically...look at the ratio_list. If you dont have multiple training data then his issue may arise
In ppocr/data/simple_dataset.py line 32: label_file_list = dataset_config.pop('label_file_list')
, the variablelabel_file_list
is supposed to be a python list. And in the next line, data_source_num = len(label_file_list)
, here is a problem. In your YML, if you pass label_file_list: ./train_data/icdar2015/text_localization/test_icdar2015_label.txt
, the variablelabel_file_list
in ppocr/data/simple_dataset.py
will be a python string. And data_source_num
will be something but 1
, which not equals ratio_list.
Solution
pass label_file_list: [./train_data/icdar2015/text_localization/test_icdar2015_label.txt]
in your YML file.
i was facing same issue but solve..... label_file_list= ratio_list
Since you haven\'t replied for more than 3 months, we have closed this issue/pr. If the problem is not solved or there is a follow-up one, please reopen it at any time and we will continue to follow up. It is recommended to pull and try the latest code first. 由于您超过三个月未回复,我们将关闭这个issue/pr。 若问题未解决或有后续问题,请随时重新打开(建议先拉取最新代码进行尝试),我们会继续跟进。
basically...look at the ratio_list. If you dont have multiple training data then his issue may arise
Thank you. I have same problems and I solved them.
May i know why I am getting below error while running text detection:
I am using below command to train:
python3 tools/train.py -c configs/det/det_r50_vd_sast_icdar15.yml
Below was my config file: