I have trained my yolov8 model and now i have best.pt file to predict the object. But i want that when i will give the image to my model then it only crop the bounding boxes of Person Class not cars and helmets bouding boxes. Please help me
model = YOLO('models/best.pt')
# Predict on frames
results = model.predict(frames[0])
print(results)
#classes = results[0].cls[0]
But this doesnot work