def __init__(self, multi_scale=False, multi_image_sizes=(320, 352, 384, 416, 448, 480, 512, 544, 576, 608), misc_effect=None, visual_effect=None, batch_size=1, group_method='ratio', shuffle_groups=True, input_size=512, max_objects=100):
    "\n        Initialize Generator object.\n\n        Args:\n            batch_size: The size of the batches to generate.\n            group_method: Determines how images are grouped together (defaults to 'ratio', one of ('none', 'random', 'ratio')).\n            shuffle_groups: If True, shuffles the groups each epoch.\n            input_size:\n            max_objects:\n        "
    self.misc_effect = misc_effect
    self.visual_effect = visual_effect
    self.batch_size = int(batch_size)
    self.group_method = group_method
    self.shuffle_groups = shuffle_groups
    self.input_size = input_size
    self.output_size = (self.input_size // 4)
    self.max_objects = max_objects
    self.groups = None
    self.multi_scale = multi_scale
    self.multi_image_sizes = multi_image_sizes
    self.current_index = 0
    self.group_images()
    if self.shuffle_groups:
        random.shuffle(self.groups)
Initialize Generator object.

Args:
    batch_size: The size of the batches to generate.
    group_method: Determines how images are grouped together (defaults to 'ratio', one of ('none', 'random', 'ratio')).
    shuffle_groups: If True, shuffles the groups each epoch.
    input_size:
    max_objects:
def __init__(self, multi_scale=False, multi_image_sizes=(320, 352, 384, 416, 448, 480, 512, 544, 576, 608), misc_effect=None, visual_effect=None, batch_size=1, group_method='ratio', shuffle_groups=True, input_size=512, max_objects=100):
    "\n        Initialize Generator object.\n\n        Args:\n            batch_size: The size of the batches to generate.\n            group_method: Determines how images are grouped together (defaults to 'ratio', one of ('none', 'random', 'ratio')).\n            shuffle_groups: If True, shuffles the groups each epoch.\n            input_size:\n            max_objects:\n        "
    self.misc_effect = misc_effect
    self.visual_effect = visual_effect
    self.batch_size = int(batch_size)
    self.group_method = group_method
    self.shuffle_groups = shuffle_groups
    self.input_size = input_size
    self.output_size = (self.input_size // 4)
    self.max_objects = max_objects
    self.groups = None
    self.multi_scale = multi_scale
    self.multi_image_sizes = multi_image_sizes
    self.current_index = 0
    self.group_images()
    if self.shuffle_groups:
        random.shuffle(self.groups)