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

Detecting smaller objects or objects in the distance #136

Open
jameslahm opened this issue May 30, 2024 · 5 comments
Open

Detecting smaller objects or objects in the distance #136

jameslahm opened this issue May 30, 2024 · 5 comments

Comments

@jameslahm
Copy link
Collaborator

jameslahm commented May 30, 2024

Due to that YOLOv10 adopts the different training strategy with others, e.g. YOLOv8, it may thus have different favorable confidence threshold to detect objects. Besides, different thresholds will have no impact on the inference latency of YOLOv10 because it does not rely on NMS. Therefore, we suggest that a smaller threshold can be freely set or tuned for YOLOv10 to detect smaller objects or objects in the distance. For example,

wget https://skalskip-yolo-arena.hf.space/file=/tmp/gradio/048ecf37df927d6d7ed5528076f4133147f797d2/people-walking.png
yolo export model=yolov10m.pt format=onnx opset=13 simplify half=True device=0
# Here, we could use a smaller threshold of 0.05 rather than the default threshold of 0.25 to detect smaller objects 
# or objects in the distance.
yolo predict model=yolov10m.onnx source=people-walking.png half conf=0.05

Thank you all! ❤️

@jameslahm jameslahm pinned this issue May 30, 2024
@Sompote
Copy link

Sompote commented May 30, 2024

Thank you! Your assistance has been instrumental in boosting both the F1-score and the mean Average Precision (mAP) of our trained model.

@usadiqgriffin
Copy link

What is the F1-score and mAP of the model after setting threshold as described above?
@jameslahm @Sompote
Also, can we modify NMS to dynamically change threshold so that it uses a lower confidence threshold for smaller objects?

@limem11
Copy link

limem11 commented Jun 3, 2024

How to lower confidence level during training for fair mAP comparison between YOLOv10 and other models on datasets with smaller bounding boxes?

This was referenced Jun 5, 2024
@lmx-2021
Copy link

how to solve the problem of Misidentification by lowering the threshold?

@Ilyabasharov
Copy link

@jameslahm do you plan to implement yolov10-p2 version ?

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

6 participants