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

Unable to use this with yolov5s #37

Closed
Auc7us opened this issue Dec 2, 2020 · 2 comments
Closed

Unable to use this with yolov5s #37

Auc7us opened this issue Dec 2, 2020 · 2 comments

Comments

@Auc7us
Copy link

Auc7us commented Dec 2, 2020

I tried using a yolov5s model instead of the suggested yolov5x and for some reason there seem to be no detections.
I trained a custom dataset using yolov5s, renamed the 'best.pt' obtained at the end to 'yolov5s.pt' and pasted it in the yolov5_DeepSort_Pytorch/yolov5/weights and executed the command "python3 track.py --source vid.mp4 --weights yolov5/weights/yolov5s.pt

I can only see the video play at a high frame rate than usual with no detections being made and the same video gets saved in output. This doesn't happen while using yolov5x.pt
I have a RTX2070 max-q and am unable to train the model using the custom dataset( CUDA allocation error) and the provided yolov5x.pt is not so accurate.

I'd really appreciate it if you can help me run this using v5s instead.

@eeric
Copy link

eeric commented Dec 3, 2020

torch >=1.6

@Auc7us
Copy link
Author

Auc7us commented Dec 4, 2020

yep, I'm using torch 1.6. I guess I figured out my mistake. I was using a YAML file with humans being assigned class '1' instead of '0'.
I haven't tested this but I guess this should be the issue.

@Auc7us Auc7us closed this as completed Dec 4, 2020
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