Transform CenterCrop

For the method torchvision.transforms.CenterCrop, does it always crop from the center? For example, if we began with a 256x256 image and resized it to 224x224, would that mean we crop 16 pixels from top, bottom, left, and right?

Yes. CenterCrop works this way.

Best regards

Thomas