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

如何使用DTD去评估别的数据集 #77

Open
zhouhao028 opened this issue Oct 15, 2024 · 1 comment
Open

如何使用DTD去评估别的数据集 #77

zhouhao028 opened this issue Oct 15, 2024 · 1 comment

Comments

@zhouhao028
Copy link

作者,您好!非常感谢您的工作。但我想使用您的DTD模型去评估别的类型数据集,但我发现eval_dtd.py读取数据集是从LMDB库读取,我尝试编写将数据集生成LMDB,但我运行时发现很多细节不对,导致无法运行eval_dtd.py。我想知道该如何使用DTD模型评估本地磁盘上的图片数据集。这对我的十分主要!谢谢,您的回答。

@qcf-568
Copy link
Owner

qcf-568 commented Oct 15, 2024

您好!感谢关注!对整图数据用crop and pad,参考https://github.com/qcf-568/DocTamper/blob/main/models/tsroie/infer_sroie.py
其中new_qtb需要替换为使用jpegio从图像中读取的quant_table
jpg = jpegio.read(img_path)
quant_table = jpg.quant_tables[0]这样

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

2 participants