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

label里的txt文件全是空的 #10

Open
tty0013 opened this issue Nov 14, 2021 · 1 comment
Open

label里的txt文件全是空的 #10

tty0013 opened this issue Nov 14, 2021 · 1 comment

Comments

@tty0013
Copy link

tty0013 commented Nov 14, 2021

xml文件有标签但是label里的txt文件全是空的

@tty0013
Copy link
Author

tty0013 commented Nov 14, 2021

我将voc_label.py的第43行改为

cls = classes[eval(obj.find('name').text)]

现在正常工作了。
原因是直接获取name返回的是class_id而不是class

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