Warning: JPEG library error (8 bit), “Invalid SOS parameters for sequential JPEG”.
Hello there!
I am trying to modify the pretrained network, alexnet, for my images, which are in jpg format. The code after creating the datastore is here:
forestzones = imds.Labels;
[trainimgs,testimgs] = splitEachLabel(imds,0.8,’randomized’);
foractual = testimgs.Labels;
trainimgs = augmentedImageDatastore([227 227],trainimgs);
testimgs = augmentedImageDatastore([227 227],testimgs);
anet = alexnet;
layers = anet.Layers;
fc = fullyConnectedLayer(2);
layers(23) = fc;
layers(end) = classificationLayer;
opts = trainingOptions(‘sgdm’,’InitialLearnRate’,0.01);
[fornet,info] = trainNetwork(trainimgs,layers,opts)
I get >> Warning: JPEG library error (8 bit), "Invalid SOS parameters for sequential JPEG".
As a result I am not getting a proper info table.
What is the problem.
Thank you in advance!!Hello there!
I am trying to modify the pretrained network, alexnet, for my images, which are in jpg format. The code after creating the datastore is here:
forestzones = imds.Labels;
[trainimgs,testimgs] = splitEachLabel(imds,0.8,’randomized’);
foractual = testimgs.Labels;
trainimgs = augmentedImageDatastore([227 227],trainimgs);
testimgs = augmentedImageDatastore([227 227],testimgs);
anet = alexnet;
layers = anet.Layers;
fc = fullyConnectedLayer(2);
layers(23) = fc;
layers(end) = classificationLayer;
opts = trainingOptions(‘sgdm’,’InitialLearnRate’,0.01);
[fornet,info] = trainNetwork(trainimgs,layers,opts)
I get >> Warning: JPEG library error (8 bit), "Invalid SOS parameters for sequential JPEG".
As a result I am not getting a proper info table.
What is the problem.
Thank you in advance!! Hello there!
I am trying to modify the pretrained network, alexnet, for my images, which are in jpg format. The code after creating the datastore is here:
forestzones = imds.Labels;
[trainimgs,testimgs] = splitEachLabel(imds,0.8,’randomized’);
foractual = testimgs.Labels;
trainimgs = augmentedImageDatastore([227 227],trainimgs);
testimgs = augmentedImageDatastore([227 227],testimgs);
anet = alexnet;
layers = anet.Layers;
fc = fullyConnectedLayer(2);
layers(23) = fc;
layers(end) = classificationLayer;
opts = trainingOptions(‘sgdm’,’InitialLearnRate’,0.01);
[fornet,info] = trainNetwork(trainimgs,layers,opts)
I get >> Warning: JPEG library error (8 bit), "Invalid SOS parameters for sequential JPEG".
As a result I am not getting a proper info table.
What is the problem.
Thank you in advance!! deep learning, image processing MATLAB Answers — New Questions