How to add a new custom layer at the beginning of CNN?

Hi,
I need to classify some images using a Convolutional Neural Network (CNN). I am using the AlexNet package for this.
Now, I want to customize AlexNet by adding a custom image processing function as its first layer.
I've checked the documentation (mainly this part) and only found ways of inserting Convolutional, Pooling and ReLU layers.
Is there a way to add a custom image processing function (apart from those three)?
Thanks in advance.
Best regards,
Guilherme Freire
PS.: Windows 10, MATLAB r2017b

Antworten (1)

Ali Yazdan
Ali Yazdan am 18 Mär. 2020
Did you find how to do it? I need to do something simmilar: add a function before convolutional layer that takes an image as input and returns an image

Kategorien

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

Beantwortet:

am 18 Mär. 2020

Community Treasure Hunt

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

Start Hunting!

Translated by