chibohe/text_recognition_toolbox

issue

iakRulan opened this issue · 0 comments

2022-05-30 21:06:41,349 [INFO ] dataset_root: G:/LRK/text_recognition_toolbox-main/dataset1/train dataset: /
sub-directory: /. num samples: 0
num total samples of total dataset is 0

运行时无法读取到lmdb文件

报错在
def get_batch(self):
batch = {'img': [], 'label': []}

    for i, data_loader_iter in enumerate(self.dataloader_iter_list): # 将一个可遍历的数据对象(如列表、元组或字符串)组合为一个索引序列
        try:
            image, text = data_loader_iter.next()  # next() 返回迭代器的下一个项目。
            batch['img'].append(image)
            batch['label'] += text
        except Exception:
            self.dataloader_iter_list[i] = iter(self.data_loader_list[i])
            image, text = self.dataloader_iter_list[i].next()
            batch['img'].append(image)
            batch['label'] += text
        # except ValueError:
        #     pass

请问能否解答一下,谢谢