Skip to content

Different inference results for Detectron2DetectionModel than plain detectron #644

Answered by fcakyon
ninafiona asked this question in Q&A
Discussion options

You must be logged in to vote

@ninafiona thanks for your interest in SAHI!

SAHI follows DefaultPredictor implementation which applies image resizing by default.

A difference between build_model and DefaultPredictor is expected and by following this discussion DefaultPredictor 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.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by fcakyon
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
help wanted Extra attention is needed question Further information is requested
2 participants
Converted from issue

This discussion was converted from issue #472 on September 30, 2022 18:45.