def click5(): """ respond to the button5 click """ # toggle button colors as a test if button_flag[5]: button5.config(bg="white") button_flag[5] = 0 data_preprocess.image_preprocess('./train_img/Sunil Shetty') train_main.image_train( './pre_img/Sunil Shetty:./pre_img/Sunny Deol') else: button5.config(bg="green") button_flag[5] = 1
def click4(): """ respond to the button4 click """ # toggle button colors as a test if button_flag[4]: button4.config(bg="white") button_flag[4] = 0 data_preprocess.image_preprocess('./train_img/Shahrukh Khan') train_main.image_train( './pre_img/Shahrukh Khan:./pre_img/Sunny Deol') else: button4.config(bg="green") button_flag[4] = 1
def click2(): """ respond to the button2 click """ # toggle button colors as a test if button_flag[2]: button2.config(bg="white") button_flag[2] = 0 data_preprocess.image_preprocess('./train_img/Nawazuddin Siddiqui') train_main.image_train( './pre_img/Nawazuddin Siddiqui:./pre_img/Sunny Deol') else: button2.config(bg="green") button_flag[2] = 1
def click1(): """ respond to the button1 click """ # toggle button colors as a test if button_flag[1]: button1.config(bg="white") button_flag[1] = 0 data_preprocess.image_preprocess('./train_img/Akshay Kumar') train_main.image_train( './pre_img/Akshay Kumar:./pre_img/Sunny Deol') else: button1.config(bg="green") button_flag[1] = 1
def click5(): """ respond to the button5 click """ # toggle button colors as a test if (button_flag[5] % 2 == 1): button5.config(bg="white") if button_flag[5] == 1: aug_img = augmentation_new.Make_Data( 'C:/Facenet-Real-time-Tensorflow/avengers/olsen/olsen.gif', 'olsen') pre_image.append(aug_img) train_main.image_train(pre_image) button_flag[5] += 1 elif (button_flag[5] % 2 == 0): button5.config(bg="green") button_flag[5] += 1
def click1(): """ respond to the button1 click """ # toggle button colors as a test if (button_flag[1] % 2 == 1): button1.config(bg="white") if button_flag[1] == 1: aug_img = augmentation_new.Make_Data( 'C:/Facenet-Real-time-Tensorflow/avengers/evans/evans.gif', 'evans') train_main.image_train(pre_image) button_flag[1] += 1 elif (button_flag[1] % 2 == 0): button1.config(bg="green") button_flag[1] += 1