Deep learning toolbox: Failed to plot animated loss curve during the training process.
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
I use deep learning toolbox to solve a regression problem. I set the 'Plots' in training options to 'training-progress'. In the intial stage, it plots well. But after several iterations, animated loss curve doesn't update. And the training process doesn't stop. I did not encounter this problem in the Matlab2020a. The present version is matlab 2020b.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/445148/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/445153/image.png)
% modify the architecture of resnet50 to solve a regression problem.
lgraph = resnet50_regression4(resnet50)
options = trainingOptions('adam', ...
'MiniBatchSize',miniBatchSize, ...
'MaxEpochs',300, ...
'InitialLearnRate',1e-3, ...
'LearnRateSchedule','piecewise', ...
'LearnRateDropPeriod',30, ...
'LearnRateDropFactor',0.2, ...
'Shuffle','every-epoch', ...
'ValidationData',{X_val,Y_val}, ...
'ValidationFrequency',validationFrequency, ...
'ValidationPatience',35, ...
'L2Regularization', 0.0001, ...
'GradientThreshold', 1, ...
'Verbose',true, ...
'VerboseFrequency', validationFrequency, ...
'ExecutionEnvironment', 'gpu', ...
'Plots', 'training-progress', ...
'CheckpointPath', check_path, ...
'OutputFcn',@(info)userplots(info));
[net,Info] = trainNetwork(X_train,Y_train,lgraph,options);
0 Kommentare
Antworten (1)
Monisha Nalluru
am 7 Dez. 2020
The issue could be caused by Graphics Drivers
Launching MATLAB from command prompt using "-softwareopenglmesa" flag will fix the above issue
0 Kommentare
Siehe auch
Kategorien
Mehr zu Recognition, Object Detection, and Semantic Segmentation finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!