#NEWLINE# def load_and_process_image_fixed_pysex_centering( img_index , subset , ds_transforms , augmentation_transforms , target_sizes = None ) : #NEWLINE# #INDENT# if ( subset == 'train' ) : #NEWLINE# #INDENT# img_id = load_data . train_ids [ img_index ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( subset == 'test' ) : #NEWLINE# #INDENT# img_id = load_data . test_ids [ img_index ] #NEWLINE# #UNINDENT# #UNINDENT# tf_center = build_pysex_center_transform ( img_id , subset ) #NEWLINE# img = load_data . load_image ( img_id , from_ram = True , subset = subset ) #NEWLINE# img_a = augment_fixed_and_dscrop_with_prepro ( img , ds_transforms , augmentation_transforms , target_sizes , prepro_transform = tf_center ) #NEWLINE# return img_a