yolo_slowfast
yolo_slowfast copied to clipboard
Detection on custom yolo weights
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
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.
Thanks a lot. It wokred
How to run it through the computer webcam?
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
ideo=cv2.VideoCapture(0) #or put your specific camera id
python yolo_slowfast.py --input 0
Here " 0 (Zero) " means webcam