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

Detection on custom yolo weights #13

Open
soumyadbanik opened this issue Jan 4, 2023 · 5 comments
Open

Detection on custom yolo weights #13

soumyadbanik opened this issue Jan 4, 2023 · 5 comments

Comments

@soumyadbanik
Copy link

soumyadbanik commented Jan 4, 2023

I have a custom trained yolo weights and there the person class is not having 0 class index. How to handle that?
As far as I understood you are taking the 0th index and passing it to slowfast_r50, since person class is in 0th index at coco dataset

@wufan-tb
Copy link
Owner

wufan-tb commented Jan 6, 2023

maybe you can try to change the 66th line in yolo_slowfast.py , form "if int(cls) != 0:" to "if int(cls) != N:", in which N means the index of person class.

@soumyadbanik
Copy link
Author

Thanks a lot. It wokred

@shizishen
Copy link

How to run it through the computer webcam?

@soumyadbanik
Copy link
Author

How to run it through the computer webcam?

You can try with replacing here by
video=cv2.VideoCapture(0) #or put your specific camera id

@suki1504
Copy link

ideo=cv2.VideoCapture(0) #or put your specific camera id

python yolo_slowfast.py --input 0

Here " 0 (Zero) " means webcam

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