Error Using trainNetwork in Deep Learning.
Ältere Kommentare anzeigen
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 Kommentare
Gabija Marsalkaite
am 3 Mai 2019
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
am 4 Mai 2019
Bearbeitet: Kaniska Samanta
am 5 Mai 2019
Maria Duarte Rosa
am 17 Mai 2019
Using a smaller network (e.g. squeeznet or mobilenetv2) and reducing the mini-batch size might help.
Gabija Marsalkaite
am 20 Mai 2019
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
am 21 Mai 2019
Ansuman Mahapatra
am 2 Jul. 2020
Reduced batch size to 16 and it works.
Antworten (0)
Kategorien
Mehr zu Deep Learning Toolbox finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

