If you’re looking for random crops in the image, you can use random crop transforms
  
      

      albumentations.ai
  

  
    

Albumentations Documentation - Crop transforms (augmentations.crops.transforms) 1

  Albumentations: fast and flexible image augmentations