aswamy:

Regarding various patches, what is the center of the random patches? Is the center also random?


Yes, the top left pixel location as well as the height and width will be randomly sampled as seen here 49.
The aspect_ratio is used to create the w and h values and there is a fallback to a central crop here 18.