#NEWLINE# def load_and_process_image_pysexgen1_centering_rescaling( img_index , ds_transforms , augmentation_params , target_sizes = None ) : #NEWLINE# #INDENT# img_id = load_data . train_ids [ img_index ] #NEWLINE# img = load_data . load_image ( img_id , from_ram = True ) #NEWLINE# tf_center_rescale = build_pysexgen1_center_rescale_transform ( img_index ) #NEWLINE# img_a = perturb_and_dscrop_with_prepro ( img , ds_transforms , augmentation_params , target_sizes , prepro_transform = tf_center_rescale ) #NEWLINE# return img_a