def generate_croppings(self, testX, testY, image_size, number):
    if (number != 11):
        raise Exception('Only implemented for number = 11 right now')
    augmented_testX_1 = []
    augmented_testX_2 = []
    augmented_testX_3 = []
    augmented_testX_4 = []
    augmented_testX_5 = []
    augmented_testX_6 = []
    augmented_testX_7 = []
    augmented_testX_8 = []
    augmented_testX_9 = []
    augmented_testX_10 = []
    augmented_testX_11 = []
    mid_image_size = int(round((image_size / 2)))
    for img in testX:
        height = img.shape[0]
        small_height = int(round((height * 0.1)))
        mid_height = int(round((height / 2)))
        width = img.shape[1]
        mid_width = int(round((width / 2)))
        crop_img1 = img[(height - image_size):height, 0:image_size]
        crop_img2 = img[(height - image_size):height, (width - image_size):width]
        crop_img3 = img[0:image_size, (width - image_size):width]
        crop_img4 = img[0:image_size, 0:image_size]
        crop_img5 = img[(mid_height - mid_image_size):(mid_height + mid_image_size), (mid_width - mid_image_size):(mid_width + mid_image_size)]
        crop_img6 = img[(mid_height - mid_image_size):(mid_height + mid_image_size), 0:image_size]
        crop_img7 = img[(mid_height - mid_image_size):(mid_height + mid_image_size), (width - image_size):width]
        crop_img8 = img[((mid_height + small_height) - mid_image_size):((mid_height + small_height) + mid_image_size), 0:image_size]
        crop_img9 = img[((mid_height + small_height) - mid_image_size):((mid_height + small_height) + mid_image_size), (width - image_size):width]
        crop_img10 = img[((mid_height - small_height) - mid_image_size):((mid_height - small_height) + mid_image_size), 0:image_size]
        crop_img11 = img[((mid_height - small_height) - mid_image_size):((mid_height - small_height) + mid_image_size), (width - image_size):width]
        augmented_testX_1.append(crop_img1)
        augmented_testX_2.append(crop_img2)
        augmented_testX_3.append(crop_img3)
        augmented_testX_4.append(crop_img4)
        augmented_testX_5.append(crop_img5)
        augmented_testX_6.append(crop_img6)
        augmented_testX_7.append(crop_img7)
        augmented_testX_8.append(crop_img8)
        augmented_testX_9.append(crop_img9)
        augmented_testX_10.append(crop_img10)
        augmented_testX_11.append(crop_img11)
    augmented_testX_1 = np.array(augmented_testX_1)
    augmented_testX_2 = np.array(augmented_testX_2)
    augmented_testX_3 = np.array(augmented_testX_3)
    augmented_testX_4 = np.array(augmented_testX_4)
    augmented_testX_5 = np.array(augmented_testX_5)
    augmented_testX_6 = np.array(augmented_testX_6)
    augmented_testX_7 = np.array(augmented_testX_7)
    augmented_testX_8 = np.array(augmented_testX_8)
    augmented_testX_9 = np.array(augmented_testX_9)
    augmented_testX_10 = np.array(augmented_testX_10)
    augmented_testX_11 = np.array(augmented_testX_11)
    testX = np.concatenate((augmented_testX_1, augmented_testX_2, augmented_testX_3, augmented_testX_4, augmented_testX_5, augmented_testX_6, augmented_testX_7, augmented_testX_8, augmented_testX_9, augmented_testX_10, augmented_testX_11))
    testY = np.repeat(testY, number)
    return (testX, testY)
def generate_croppings(self, testX, testY, image_size, number):
    if (number != 11):
        raise Exception('Only implemented for number = 11 right now')
    augmented_testX_1 = []
    augmented_testX_2 = []
    augmented_testX_3 = []
    augmented_testX_4 = []
    augmented_testX_5 = []
    augmented_testX_6 = []
    augmented_testX_7 = []
    augmented_testX_8 = []
    augmented_testX_9 = []
    augmented_testX_10 = []
    augmented_testX_11 = []
    mid_image_size = int(round((image_size / 2)))
    for img in testX:
        height = img.shape[0]
        small_height = int(round((height * 0.1)))
        mid_height = int(round((height / 2)))
        width = img.shape[1]
        mid_width = int(round((width / 2)))
        crop_img1 = img[(height - image_size):height, 0:image_size]
        crop_img2 = img[(height - image_size):height, (width - image_size):width]
        crop_img3 = img[0:image_size, (width - image_size):width]
        crop_img4 = img[0:image_size, 0:image_size]
        crop_img5 = img[(mid_height - mid_image_size):(mid_height + mid_image_size), (mid_width - mid_image_size):(mid_width + mid_image_size)]
        crop_img6 = img[(mid_height - mid_image_size):(mid_height + mid_image_size), 0:image_size]
        crop_img7 = img[(mid_height - mid_image_size):(mid_height + mid_image_size), (width - image_size):width]
        crop_img8 = img[((mid_height + small_height) - mid_image_size):((mid_height + small_height) + mid_image_size), 0:image_size]
        crop_img9 = img[((mid_height + small_height) - mid_image_size):((mid_height + small_height) + mid_image_size), (width - image_size):width]
        crop_img10 = img[((mid_height - small_height) - mid_image_size):((mid_height - small_height) + mid_image_size), 0:image_size]
        crop_img11 = img[((mid_height - small_height) - mid_image_size):((mid_height - small_height) + mid_image_size), (width - image_size):width]
        augmented_testX_1.append(crop_img1)
        augmented_testX_2.append(crop_img2)
        augmented_testX_3.append(crop_img3)
        augmented_testX_4.append(crop_img4)
        augmented_testX_5.append(crop_img5)
        augmented_testX_6.append(crop_img6)
        augmented_testX_7.append(crop_img7)
        augmented_testX_8.append(crop_img8)
        augmented_testX_9.append(crop_img9)
        augmented_testX_10.append(crop_img10)
        augmented_testX_11.append(crop_img11)
    augmented_testX_1 = np.array(augmented_testX_1)
    augmented_testX_2 = np.array(augmented_testX_2)
    augmented_testX_3 = np.array(augmented_testX_3)
    augmented_testX_4 = np.array(augmented_testX_4)
    augmented_testX_5 = np.array(augmented_testX_5)
    augmented_testX_6 = np.array(augmented_testX_6)
    augmented_testX_7 = np.array(augmented_testX_7)
    augmented_testX_8 = np.array(augmented_testX_8)
    augmented_testX_9 = np.array(augmented_testX_9)
    augmented_testX_10 = np.array(augmented_testX_10)
    augmented_testX_11 = np.array(augmented_testX_11)
    testX = np.concatenate((augmented_testX_1, augmented_testX_2, augmented_testX_3, augmented_testX_4, augmented_testX_5, augmented_testX_6, augmented_testX_7, augmented_testX_8, augmented_testX_9, augmented_testX_10, augmented_testX_11))
    testY = np.repeat(testY, number)
    return (testX, testY)