Deep Learning, Sora, Computer Vision, Transformers, Attention.
import Resize, RandomResizedCrop, RandomHorizontalFlip, Compose, ToTensor, ToPILImage, Pad import matplotlib.pyplot as plt plt.style.use("bmh") %matplotlib inline Lets create an image with longest size as 768. The patch size is 32 img_size = 768 patch_size = 32 load and calculate aspect ratios we