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

关于转换数据的一个坑 #10

Open
key220888 opened this issue Oct 4, 2021 · 3 comments
Open

关于转换数据的一个坑 #10

key220888 opened this issue Oct 4, 2021 · 3 comments

Comments

@key220888
Copy link

我是通过ArT数据集试出来的,如果说不同文本框的坐标数表示不同的话,即文本框A用5个坐标表示,文本框B用7个坐标表示,那么DetCollateFN.py的line26会报错,原因是tensor和numpy每一维的坐标数个数必须要相同,否则numpy会自动把每一维转换为list object,从而无法转换为tensor,当然直接把list转换为tensor也是不行的

@morestart
Copy link

这个问题解决没有兄弟。。

@key220888
Copy link
Author

这个问题解决没有兄弟。。

没有想到很好的解决方法,暂时觉得找到最大最小的xy组合成4个坐标表示的文本框可能可以,但是损失精度

@morestart
Copy link

这个问题解决没有兄弟。。

没有想到很好的解决方法,暂时觉得找到最大最小的xy组合成4个坐标表示的文本框可能可以,但是损失精度

你这个方法可以 我去试试

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