skipping augmentedImageDatastore to train a net

조회 수: 1 (최근 30일)
omer wagner
omer wagner 2024년 2월 20일
댓글: Cris LaPierre 2024년 2월 21일
Hi,
Following the example in "Train Deep Learning Network to Classify New Images",
How can I finetune my net without the augmentedImageDatastore step?
(I want to observe the performance when there arent any variations on the data)

답변 (1개)

Cris LaPierre
Cris LaPierre 2024년 2월 20일
You will need to remove it from your network. Look into removeLayer
  댓글 수: 2
omer wagner
omer wagner 2024년 2월 21일
Could I use this on the same network (after performing the training on the Augmented), or that the layer is there in the final architecture?
no_aug_options = trainingOptions('sgdm', ...
'MiniBatchSize',miniBatchSize, ...
'MaxEpochs',6, ...
'InitialLearnRate',3e-4, ...
'Shuffle','every-epoch', ...
'ValidationData',imdsValidation, ...
'ValidationFrequency',valFrequency, ...
'Verbose',false, ...
'Plots','training-progress');
no_aug_net = trainNetwork(imdsTrain,lgraph,no_aug_options);
Cris LaPierre
Cris LaPierre 2024년 2월 21일
The output of removeLayer is a new network. You decide when and where to use this new network.
I believe you will need to retrain your network if you modify it.
Use analyzeNetwork to view the layers of your network.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Image Data Workflows에 대해 자세히 알아보기

제품


릴리스

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by