Image-Classification-using-CNN-with-Multi-Input-using-MATLAB icon indicating copy to clipboard operation
Image-Classification-using-CNN-with-Multi-Input-using-MATLAB copied to clipboard

Issue when just replacing images

Open bhamadicharef opened this issue 6 months ago • 0 comments

I get an error message when just replacing the images in the folder myimages with my own.

Error using trainNetwork Training and validation responses must have the same categories. To view the categories of the responses, use the categories function.

Error in runMe1 (line 129) net = trainNetwork(augimdsTrain, lgraph, options);

Caused by: Error using nnet.internal.cnn.trainNetwork.DLTDataPreprocessor>iAssertClassNamesAreTheSame Training and validation responses must have the same categories. To view the categories of the responses, use the categories function.

I do not understand this happen ! Any suggestions ?

Brahim @ Singapore

bhamadicharef avatar Aug 23 '24 04:08 bhamadicharef