The script below worked yesterday, but not today after installing the Parallel Computing Toolbox!
The imageDataStore loaded fine; the Path is OK. I am using a MAC (OS Mavericks 10.9.5) with no GPU. I am using MATLAB R2017b.
>> flowerds = imageDatastore('Flowers','IncludeSubfolders',true,'LabelSource','foldernames');
>> [trainImgs,testImgs] = splitEachLabel(flowerds,0.6);
>> numClasses = numel(categories(flowerds.Labels));
>> net = alexnet;
>> prebuiltLayers = net.Layers(1:end-3);
>> layers(end-2) = fullyConnectedLayer(numClasses);
>> layers(end) = classificationLayer;
>> topts = trainingOptions('sgdm','InitialLearnRate',0.001);
>> [flowernet,info] = trainNetwork(trainImgs, layers, topts);
Error using trainNetwork (line 140)
Can't reload '/Applications/MATLAB_R2017b.app/bin/maci64/libmwgpu.dylib'
Caused by:
Can't reload '/Applications/MATLAB_R2017b.app/bin/maci64/libmwgpu.dylib'
Best Answer