As @InnovArul mentioned, the image size is pretty large. So depending on the GPU you are using and how much memory you have.
Instead of using VGG16, maybe you can try  another memory-efficient model, ResNet-18, or even SqueezeNet.