deep learning images with data

I need to classify with deep learning a group of images with a modified CNN architecture with transfer learning. The question is how I can add whether one image belongs to one group and the other image belongs to the other group. In machine learning is easy to create a row with 0 1 or -1 1. But in this case I don't know how to proceed.
Thanks for the help in advance.

Answers (1)

Mandar
Mandar on 2 Feb 2023
The “imageDatastore” function assign the labels for all the images in subfolder, given a "LabelSource".
Refer the following MATLAB documentation link to know more about “imageDatastore” function.
In addition, refer the following link to the MATLAB documentation link for a demo example on image category classification using deep learning.

Categories

Find more on Deep Learning Toolbox in Help Center and File Exchange

Products

Release

R2020b

Asked:

on 9 Jun 2022

Answered:

on 2 Feb 2023

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!