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

使用其它数据集问题 #51

Closed
swqsyy opened this issue Dec 8, 2021 · 4 comments
Closed

使用其它数据集问题 #51

swqsyy opened this issue Dec 8, 2021 · 4 comments

Comments

@swqsyy
Copy link

swqsyy commented Dec 8, 2021

想使用其他数据集,利用tools/create_lmdb_dataset.py将数据集转换成mdb格式后,不管是训练还是测试模型总是报错:
File "/home/yuy/workspace/ABINet-main/dataset.py", line 137, in getitem
if not self.is_training: assert idx == idx_new, f'idx {idx} != idx_new {idx_new} during testing.'
AssertionError: idx 18 != idx_new 11558 during testing
想请问一下大概是什么原因呢?还是原始数据集需要做什么特殊处理吗?

@FangShancheng
Copy link
Owner

这个错应该是测试阶段发生的,测试阶段有测试数据被校验丢弃了

@swqsyy
Copy link
Author

swqsyy commented Dec 13, 2021

好的,非常感谢,已经解决问题了,就是这个原因

@swqsyy swqsyy closed this as completed Dec 13, 2021
@lyc728
Copy link

lyc728 commented Apr 26, 2022

试阶段有测试数据被校验丢弃了

请问你是怎么解决的呢?

@swqsyy
Copy link
Author

swqsyy commented Apr 30, 2022

试阶段有测试数据被校验丢弃了

请问你是怎么解决的呢?

修改校验部分和字符集,原有的校验部分会把含有字符集中未出现的元素(如符号之类)的样本都删掉

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

3 participants