How to change the image input layer in GoogleNet?
8 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hello everyone, I'm working on designing of an age estimation system and I started working using GoogleNet architecture for CNN as transfer learning. my question is How can I change the input image layer from [224 224 3] (RGB) to [250 250 1] for gray scale image? I think even if I can change the input image size, the configuration of the network as pretrained will not keep configured! what can i do? when I try to change the image input layer, I get error as below >>net = googlenet; >> lgraph=layerGraph(net); >>lgraph.Layers(1)=((imageInputLayer([250 250 1],'Name','input'))); You cannot set the read-only property 'Layers' of LayerGraph.
4 commentaires
Kevin Chng
le 18 Oct 2018
As what I know, you can't train the input size as googLenet train the model based on RGB. You may need to train your own deep learning model from scratch, or transfer learning using AlexNet.
Or consider to convert your grayscale to RGB
Mrutyunjaya Hiremath
le 25 Juin 2023
Réponses (1)
Voir également
Catégories
En savoir plus sur Deep Learning Toolbox dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!