-
I ran inference using SAHI (without slicing) and with my model using just detectron and got different results. I did this for validation / debugging. Here is my code: SAHI version:
Plain Detectron version:
The bounding boxes are different (just 4 boxes prediced by SAHI model and 10 by second). I don't apply any postprocessing (nonmax etc.). |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
@ninafiona thanks for your interest in SAHI follows DefaultPredictor implementation which applies image resizing by default. A difference between In your example, if you resize the image to default sizes before giving it to the model as input, the results will be similar. |
Beta Was this translation helpful? Give feedback.
-
Thanks, it turns out two aspects were the cause:
Now I get the same outputs for both approaches! |
Beta Was this translation helpful? Give feedback.
@ninafiona thanks for your interest in
SAHI
!SAHI follows DefaultPredictor implementation which applies image resizing by default.
A difference between
build_model
andDefaultPredictor
is expected and by following this discussionDefaultPredictor
implementation is better in our case since it automatically does all the preprocessing.In your example, if you resize the image to default sizes before giving it to the model as input, the results will be similar.