How to change the image input layer in GoogleNet?

8 Ansichten (letzte 30 Tage)
Rami Sarhan
Rami Sarhan am 17 Okt. 2018
Kommentiert: SHURGIL UR am 6 Mär. 2024
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 Kommentare
Kevin Chng
Kevin Chng am 18 Okt. 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
Mrutyunjaya Hiremath am 25 Jun. 2023
Load Pretrained Network in API - Deep Network Designer. delete and add new layers and analyze it

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Mrutyunjaya Hiremath
Mrutyunjaya Hiremath am 25 Jun. 2023

Kategorien

Mehr zu Deep Learning Toolbox finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by