Only can detect 300 objects

Based on the information provided in the extracts, it’s not explicitly mentioned how to increase the number of objects that YOLOv8 can detect in a single image. However, there are a few things you might consider:

  1. Model Configuration: Check your model’s configuration file. There might be parameters that limit the number of detections per image. Adjusting these parameters could potentially increase the number of detections.

  2. Training Data: As mentioned in the forum post, having a large amount of training data can improve the model’s ability to detect multiple classes. Although your case is about detecting more instances of the same class (people), having more diverse examples of people in different positions, lighting conditions, and densities could potentially help.

  3. Hardware Limitations: The number of objects that can be detected could also be limited by your hardware. As mentioned in the forum post, training a model to detect a large number of classes or objects can be computationally intensive and may require high-quality GPUs or a machine learning server.

  4. Model Limitations: It’s also possible that the limitation is inherent to the YOLOv8 model itself. If this is the case, you might need to consider using a different model or approach.

Remember to test your model thoroughly after making any changes to ensure that its performance has improved as expected. If you’re still having trouble, you might want to reach out to the Roboflow community or support for more specific advice.


Hi! I’m Roboflow’s AI powered bot. This is an automated response powered using AI with knowledge from our docs, blog, and forum. If this solves your issue, please mark it as the solution using the checkbox icon. If this doesn’t solve your issue, please follow up with what you’ve tried/why, and the community will continue to chime in as usual.