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

can you train yolov5? #29

Open
WangPeng19981204 opened this issue Apr 8, 2021 · 4 comments
Open

can you train yolov5? #29

WangPeng19981204 opened this issue Apr 8, 2021 · 4 comments

Comments

@WangPeng19981204
Copy link

i can not train yolov5 with your code ,report error ' ValueError: Target size (torch.Size([16, 1200, 1])) must be the same as input size (torch.Size([16, 17000, 1]))',it seems that have prombles on network ,i find two prombles,the first is the neck of yolov5 is none ,the neck code need to write,the second is anchor size of yolov5 is that of yolov3 ,which need to be modified. finally ,thank you for you great work ,Look forward to your reply!

@caixiiaoyang
Copy link

i can not train yolov5 with your code ,report error ' ValueError: Target size (torch.Size([16, 1200, 1])) must be the same as input size (torch.Size([16, 17000, 1]))',it seems that have prombles on network ,i find two prombles,the first is the neck of yolov5 is none ,the neck code need to write,the second is anchor size of yolov5 is that of yolov3 ,which need to be modified. finally ,thank you for you great work ,Look forward to your reply!

I have the same problem

@woolpeeker
Copy link

nn.Conv2d(make_div8_fun(256), 255, 1),

I think the reason is that the yolov5Head‘s output channel number is hard coded.

@fengqian-wei
Copy link

I have the same problem. How to fix it? Thanks !!

@fengqian-wei
Copy link

I have the same problem. How to fix it? Thanks !!

setting as
nn.Conv2d(make_div8_fun(256), (classNum+5)*3, 1),

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

4 participants