Skip to main content
The Random Crop Images node randomly selects a rectangular section from each input image and crops it to a specified width and height. This is commonly used for data augmentation to create variations of training images. The random position for the crop is determined by a seed value, ensuring the same crop can be reproduced.

Inputs

ParameterDescriptionData TypeRequiredRange
imageThe image to be cropped.IMAGEYes-
widthThe width of the crop area (default: 512).INTNo1 - 8192
heightThe height of the crop area (default: 512).INTNo1 - 8192
seedA number used to control the random position of the crop (default: 0).INTNo0 - 18446744073709551615
Note: The width and height parameters must be less than or equal to the dimensions of the input image. If a specified dimension is larger than the image, the crop will be limited to the image’s boundary.

Outputs

Output NameDescriptionData Type
imageThe resulting image after the random crop has been applied.IMAGE
This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! Edit on GitHub

Source fingerprint (SHA-256): 8452a07a1cf66a520fb482f5239df3f33cfe3a77a28e289894ccd1d2544ecf40