Is there any "regression" output layer equivalent to pixelClass​ificationL​ayer?

3 Ansichten (letzte 30 Tage)
Hi,
I am working on a denoising Neural Network that has an image as input and outputs a denoised version of the image as output. I have created the network in Matlab, using the Deep Learning Toolbox, and now I need to train it. However, trainNetwork does not accept a Ground Truth that is not a categorical. I've doubled check my network and the issue might be that my last layer is a Classification Layer (pixelClassificationLayer). However, in my case, the problem is a regression one, where the value of each output pixel can correspond to any level of gray. I wondered, is there any regression equivalent to pixelClassificationLayer, or plausible alternative for Regression issues in Deep Learning Imaging?
Thank you very much.
Virginia
  1 Kommentar
Binu
Binu am 29 Okt. 2019
There is a regression layer where you basically swap the last layer from classification to regression. Also there are transfer learning methods to convert from a classification to regression . However I have not tried this on a pixelLevel problems.
Have you considered using your gray "levels" as a classes or bins and treat them as a classification problem?

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Sai Bhargav Avula
Sai Bhargav Avula am 29 Okt. 2019
Hi, I would recommend you trying the MATLAB way to network. Where you can convert to your layers to a dlnetwork
You can the following link for a detailed understanding of how to define it for your case
This way gives you more flexibility for defining your network
  2 Kommentare
supriya Naik
supriya Naik am 7 Aug. 2020
Is this dlnetwork possible in matlab2019a ?? Because when I used this technique..it was showing an error that undefined dlnetwork
Sai Bhargav Avula
Sai Bhargav Avula am 10 Aug. 2020
dlnetwork function was introduced in 2019b. Hence you are getting this error. Upgrade the MATLAB to atleast 2019b to use dlnetwork

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Image Data Workflows finden Sie in Help Center und File Exchange

Produkte


Version

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by