Some CNN architecture are working, other are not

7 ビュー (過去 30 日間)
Loïc Sagorin
Loïc Sagorin 2021 年 5 月 3 日
回答済み: Aditya Patil 2021 年 5 月 11 日
So i'm using a dataset with 400 images at the moment (looking to add more in the close future), but meanwhile I was trying to find which CNN architectures is the best between the pretrained network from Deep Learning Toolbox.
So i did some test, to compare them with the same parameters, and for exemple, after 10 epoch I have over 95% for validation accuracy for DenseNet, Inceptionv3 or Xception, but I've under 20% for Darknet, VGG, or GoogleNet. Why is there so much of a difference? Is this because my dataset doesn't have enough image? Not enough epochs?
  2 件のコメント
Aditya Patil
Aditya Patil 2021 年 5 月 10 日
Can you provide some information on your workflow? Are your training the models from scratch using the 400 images? Or are you using transfer learning? Or are you predicting the output on pretrained networks?
Loïc Sagorin
Loïc Sagorin 2021 年 5 月 10 日
I'm using transfer learning to train the network on my pictures, then I'm using a test dataset of the same type to see if my network works.

サインインしてコメントする。

採用された回答

Aditya Patil
Aditya Patil 2021 年 5 月 11 日
As some of the models are working, but others are not, the issue is likely with the training options used while transfer learning. You might also want to increase the number of samples, especially if the required classes are not well represented in ImageNet dataset. This dataset has been used to train these models, so if the required class are not represented/under represented, then it might be as issue.
Few things to try out are,
  1. Trying to overfit the model on few samples. This suggests that the model is properly set up for training.
  2. If only the validation accuracy is low, then the model is overfitting on the training dataset. Decrease the number of epochs, or use regularization / dropout layers.
  3. If you notice that loss had been decreasing till the last epoch, increase number of epochs.
  4. Check accuracy on pretrained model. If the accuracy is lower after transfer learning, then you can try setting learning rate to much smaller value.
If the issue persists, feel free to create a bug report.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeRecognition, Object Detection, and Semantic Segmentation についてさらに検索

製品


リリース

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by