are you working with a specific model tutorial or example?
Hard to answer without knowing more details but if you’re using the example pytorch tutorial I believe the evaluation function uses a inference (predictions) step then takes your inference and runs it by some COCO evaluation metrics…
I have my best attempt at splitting up the two from one another in this post