Skip to content

Fix roi random_crop

The random_crop function did not correctly account for the specified x_size and y_size. Therefore, when caching the dataset with SpatialCropStrategy.RANDOM, the samples were always cropped from the same (x,y) position in the ROI. This fix ensures that the generated crops starts from random points, and enhance the corresponding test function to catch this issue in the future.

Merge request reports

Loading