Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issue #15

Open
iakRulan opened this issue May 30, 2022 · 0 comments
Open

issue #15

iakRulan opened this issue May 30, 2022 · 0 comments

Comments

@iakRulan
Copy link

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

请问能否解答一下,谢谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant