How to train CNN with an image in the input and an image in the output?
古いコメントを表示
I have a task to train CNN with an image as input and an image as output. I have tried to do it at the beginning with Matlab tutorial, but matlab has no image as output, but a vector.
any idea how i can do this tutorial again but with image as output?
For example you could insert input as image for number one and the output is also for number one but rotated or deformed.
Please don't send me other people's question, because i have seen all answers about it.
6 件のコメント
ghada sandoub
2020 年 6 月 8 日
編集済み: ghada sandoub
2020 年 6 月 8 日
Hello Osama,
I hope that you have found a solution to your problem. I have the same situation, I need to train CNN for image enhancement and I don't know how to design the network to recieve an image as input and the output is also an image not a label. However, all the available CNNs in matlab can recieve an image as input and the output is a label for the task of classification or regression. could you please if you already found a method to do this please help me on that. Thanks alot.
Osama Tabbakh
2020 年 6 月 8 日
ghada sandoub
2020 年 6 月 9 日
Thanks alot Osama for your reply. However, unfortunately, I have no experience in using python. So, I was searching for a method that can do this on Matlab.
Ritesh Jain
2020 年 8 月 13 日
Hello Osama,
I am stuck in the same thing for almost a month can you please help me out in this thing in Python.
Osama Tabbakh
2020 年 8 月 15 日
Florent Busnoult
2020 年 8 月 25 日
編集済み: Florent Busnoult
2020 年 8 月 25 日
There is an example in the 5G toolbox that uses a CNN network with a picture as an input and a picture as an output.
The variable used to store the "labels" or (ouput images) is the following:
trainLabels(:,:,:,i) = est_grid;
It's a 4-D double variable.
And you can look at the different output images used to trian the network by using the command below:
>> imagesc(abs(trainLabels(:,:,:,2))); % output image number 2
>> imagesc(abs(trainLabels(:,:,:,3))); % output image number 3
>> imagesc(abs(trainLabels(:,:,:,25))); % output image number 25
and so on.
採用された回答
その他の回答 (1 件)
Johanna Pingel
2019 年 4 月 29 日
0 投票
Try this example: https://www.mathworks.com/help/deeplearning/examples/image-to-image-regression-using-deep-learning.html
Let me know if this doesn't answer your question!
3 件のコメント
Osama Tabbakh
2019 年 4 月 30 日
supriya Naik
2020 年 8 月 28 日
Did you get the solution sir?? Actually I am facing same problem now.
Osama Tabbakh
2020 年 9 月 17 日
カテゴリ
ヘルプ センター および File Exchange で Deep Learning Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
