def compute_inputs_targets(self, group):
    '\n        Compute inputs and target outputs for the network.\n        '
    image_group = self.load_image_group(group)
    annotations_group = self.load_annotations_group(group)
    (image_group, annotations_group) = self.filter_annotations(image_group, annotations_group, group)
    (image_group, annotations_group) = self.random_visual_effect_group(image_group, annotations_group)
    (image_group, annotations_group) = self.random_misc_group(image_group, annotations_group)
    if (len(image_group) == 0):
        return (None, None)
    inputs = self.compute_inputs(image_group, annotations_group)
    targets = self.compute_targets(image_group, annotations_group)
    return (inputs, targets)
Compute inputs and target outputs for the network.
def compute_inputs_targets(self, group):
    '\n        \n        '
    image_group = self.load_image_group(group)
    annotations_group = self.load_annotations_group(group)
    (image_group, annotations_group) = self.filter_annotations(image_group, annotations_group, group)
    (image_group, annotations_group) = self.random_visual_effect_group(image_group, annotations_group)
    (image_group, annotations_group) = self.random_misc_group(image_group, annotations_group)
    if (len(image_group) == 0):
        return (None, None)
    inputs = self.compute_inputs(image_group, annotations_group)
    targets = self.compute_targets(image_group, annotations_group)
    return (inputs, targets)