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

训练时报错Warning: in txt-label class_id = -2147483648 > classes=1 in cfg-file #16

Open
CangHaiQingYue opened this issue Jun 29, 2020 · 3 comments

Comments

@CangHaiQingYue
Copy link

大佬你好,我用retinaface2yololandmark.py文件制作完数据集后,运行train_face_landmar.sh进行训练,然后打印出了如下错误:
Warning: in txt-label class_id = -2147483648 > classes=1 in cfg-file。 In txt-labels class_id should be [from 0 to 0]
truth.x = 很大的一个数

定位问题发现在scr/yolo_layer.c里面,然而目前还有解决。

所以有两个问题:

  1. 定位的问题是不是准确的? 2. 有啥建议的解决方案么。。。

PS: 肉眼看生成的label.txt没啥问题

@CangHaiQingYue
Copy link
Author

感觉像是数据集的问题,换了另一个数据集后,报错
“Error in './darknet': double free or corruption (!prev): 0x00007f8da0001110"

@xiaowenhe
Copy link

xiaowenhe commented Aug 28, 2020

@CangHaiQingYue,我也遇到了同样的问题,或许是代码里面data.c 里面的问题。我修改了data.c里面的第1421,1426,1515行的5xboxes改为 15xboxes就可以了。 原因是,在原yolo中,5 = (x,y,w,h,id),而现在的里面 应该是15 = (x,y,w,h,id) + landmark(10).
@ouyanghuiyu,我理解的是这样,有不对的请指正,谢谢!

@CangHaiQingYue
Copy link
Author

@CangHaiQingYue,我也遇到了同样的问题,或许是代码里面data.c 里面的问题。我修改了data.c里面的第1421,1426,1515行的5xboxes改为 15xboxes就可以了。 原因是,在原yolo中,5 = (x,y,w,h,id),而现在的里面 应该是15 = (x,y,w,h,id) + landmark(10).
@ouyanghuiyu,我理解的是这样,有不对的请指正,谢谢!

谢谢大佬!

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