Is inconsistent predictions for some versions of Yolov5 intentional? #254
Unanswered
ochalkley-advai
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Experiment setup:
I install yolov5 with
pip install yolov5
in python3.11 on Ubuntu22.I load yolo with the following command but change the version to either yolov5s, yolov5l, yolov5x, yolov5s6, yolov5l6, yolov5x6:
model: = yolov5.load('yolov5s.pt')
I have the following images from coco val2017 saved to my local:
I then run inference and check the results with:
and
Results
For yolov5s6, yolov5l6, yolov5x6 I get the expected result, i.e., that the predictions for
img1
is the same as the first image inimgs
. However, for yolov5s, yolov5l, yolov5x The prediction forimg1
is different when compared to the prediction of the first image ofimgs
which does not seem right to me. In all cases the difference is the same:Can anyone tell me why this is happening and if it is intended behavior? It seems strange to me that batch size changes the models output at inference time...
Beta Was this translation helpful? Give feedback.
All reactions