image_id, data, _ = self.reader(idx=None, shuffle=True)
if not data:
break
image_shapes = {
name: data[name].shape for name in self.window.names}
static_window_shapes = self.window.match_image_shapes(image_shapes)
// find random coordinates based on window and image shapes
coordinates = self.spatial_coordinates_generator(
After Change
image_id, data, _ = self.reader(idx=None, shuffle=True)
if not data:
break
image_shapes = dict((name, data[name].shape)
for name in self.window.names)
static_window_shapes = self.window.match_image_shapes(image_shapes)
// find random coordinates based on window and image shapes
coordinates = self.spatial_coordinates_generator(