I am new to CNN and trying to train the images and then test them and then classify the type of image. I am using python and PYQT designer for GUI. My task is to perform classification on three types of Brain Tumor MRI images. All the images are assigned labels.
My GUI is stated as follows:

Load Data (complete dataset)  for training by a button named as “Load”.
Automatically split the dataset  into Testing and Training by a button named as “split”.
Train the dataset by a button named as “Training”.
Test the image by a button “Testing”.
The result displays the image with its label.

Any help in this regard will be appreciated. Thank you.