I'am training for multiple object detection in images on MATLAB2024b version on a single GPU

4 ビュー (過去 30 日間)
For the training options, i used MiniBatch of 8 and epoch count of 3, i know its lowest but its a computer with entry level GPU, and i want to know the status of my results, below is the code:
% Define training options
options = trainingOptions('sgdm', ...
'MiniBatchSize', 8, ...
'InitialLearnRate', 1e-4, ...
'MaxEpochs', 3, ...
'Verbose', true, ...
'Shuffle', 'every-epoch', ...
'ExecutionEnvironment', 'gpu', ...
'Plots', 'training-progress');
Attached are the training graph, and minibatch accuracy values along with loss, i feel it became an overfitting model, should i stop training or wait?

採用された回答

Shantanu Dixit
Shantanu Dixit 2025 年 3 月 28 日
編集済み: Shantanu Dixit 2025 年 3 月 28 日
Hi Evangeline,
If I understood your query correctly, you are concerned about potential overfitting in your model. Since your training accuracy reaches 100% and loss varies around 1e-3 range within just 3 epochs, it suggests possible overfitting. However, without validation data it's hard to conclusively say about overfitting or not. You can check validation accuracy and loss https://in.mathworks.com/help/deeplearning/ref/trainingoptions.html#d126e253140 — ((from trainingOptions) if validation loss increases while training loss decreases, overfitting is likely. You can also try data augmentation, adding regularization or increasing the batch size (if the GPU allows).
You can refer to the following documentation by MathWorks on data augmentation and regularization:
Hope this helps!

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeImage Data Workflows についてさらに検索

製品


リリース

R2024b

Community Treasure Hunt

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

Start Hunting!

Translated by