Closed Mirshal closed 2 months ago
Hi, Mirshal.
In Yolo you can set model.classes to the list which you want to detect specifically. The person class index is 0. So if you pass model.classes as [0] then it will detect only the person class.
Alternatively you can pass the classes keyword argument with [0] here. Like this
model.predict("bus.jpg", classes=[0], conf=0.5)
can you help me in finding a way how the model only detects one object class, namely person. I am very grateful if you can provide instructions