This function is used to develop a transfer-learning image recognition model.
y = image_model(in1);
training accuracy of the model
Number of epochs
Upon calling this function, a dialog box will open which will ask you to choose a directory containing image files used to train the model. The image directory structure should by as follows.
example:
pets/
dogs/
dog001.jpg
dog002.jpg
...
cats/
cat001.jpg
cat002.jpg
where dogs and cats are the names of your image. Both class names and image names must be unique. So if such a directory structure is present, the folder "pets" must be selected. Supported image formats are jpg, jpeg and png. The folder 'alphabets' is provided with this zip, containing image dataset of A, B and C letters. Select this folder when asked for image directory by the dialog boox.