Error Using trainNetwork in Deep Learning.

Hi,
I am trying to train a pretrained CNN model, inceptionresnetv2 for Image Classification. I am getting the following error,
Error using trainNetwork (line 150)
Error using 'predict' in Layer nnet.inceptionresnetv2.layer.ScalingFactorLayer. The function threw an error and could not be executed.
Any solution??
Thank you!!

6 件のコメント

Gabija Marsalkaite
Gabija Marsalkaite 2019 年 5 月 3 日
Hi Kaniska,
Could you provide more information about the problem e.g. hardware used (GPU and amount of RAM) and if that is the full error message?
Kaniska Samanta
Kaniska Samanta 2019 年 5 月 4 日
編集済み: Kaniska Samanta 2019 年 5 月 5 日
Hi Gabija,
My PC configuration is Processor: Intel Core i5 (6th Gen); RAM: 8GB; GPU: Nvidia 930M; Storage: 240GB SSD.
And yes that was the full error message.
error.PNG
But now I am facing a new error sometimes as shown in the picture below, and I am getting this error after 4 or 5 iteration in the training progress.
Maria Duarte Rosa
Maria Duarte Rosa 2019 年 5 月 17 日
Using a smaller network (e.g. squeeznet or mobilenetv2) and reducing the mini-batch size might help.
Gabija Marsalkaite
Gabija Marsalkaite 2019 年 5 月 20 日
Hi Kaniska,
Most likely your GPU is either low on memory or out of memory. I don't know the exact settings you are using but reducing mini-batch size or using CPU instead of GPU may help (CPU would use 8GB of RAM instead of GPU using 2GB of its memory).
Kaniska Samanta
Kaniska Samanta 2019 年 5 月 21 日
Thanks for assists. It's propably my gpu, unable to handle the network..
Ansuman Mahapatra
Ansuman Mahapatra 2020 年 7 月 2 日
Reduced batch size to 16 and it works.

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

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeDeep Learning Toolbox についてさらに検索

製品

リリース

R2018b

質問済み:

2019 年 4 月 30 日

コメント済み:

2020 年 7 月 2 日

Community Treasure Hunt

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

Start Hunting!

Translated by