I have 3 folders in my dataset test,train and metadata.
In my train folder i have13000 images of animals. i have 6000 images of animals in my test folder. In my metadata folder i have 2 csv files train,test. In my train.csv file, one column consists of image names in train folder and other column consists of the animal species to which it belongs. There are totally 30 types of species of animal images are given in train folder.
I want to build a neural network that scans the image and predicts to which species the animal in the image belongs to.
For this, im building a convolution neural network using keras. During the image preprocessing , I cannot use
flow_from_directory() as it requires train data to be put in its sub folderfor each species (which is not the way my current dataset is).
I know i must use flow() method. but im not able to find a good tutorial on flow() method of ImageDatagenerator class.
Can someone please tell me how to train my cnn using these data . I know i should convert images to numpy array. I have converted them. now please tell me how do i input it to x,y variables of flow() method.