Out of distribution Model

Hi, I currently have a fully functioning Resnet18 model that is able to predict my images with good accuracy. I was wondering if someone could guide me on how to discard out of distribution images. Images that don’t ressemble the training set at all.