Matlab does not currently support Generative Adversarial Neural Networks

조회 수: 7 (최근 30일)
I searched a lot to see if Matlab supports GAN but unfortunately it does not. I just found deconvolution layer. does anybody know how I can use that for designing a GAN. I am gonna integrate a GAN block within a DAG network and I am not sure if it is possible. I found also another open source lib 'MatConvNet'. is is possible to use it within DAG? Thank you very much I hope it is not wasting time working on deep learning with Matlab.
web address of matconvnet: http://www.vlfeat.org/matconvnet/
web address of DAG : https://blogs.mathworks.com/deep-learning/2018/03/19/creating-a-dag-network-from-dag-parts/
  댓글 수: 9
Walter Roberson
Walter Roberson 2018년 7월 18일
ashkan dashtban comments to me:
Exactly and we hopefuly expect it to be available in near future!

댓글을 달려면 로그인하십시오.

채택된 답변

Yui Chun Leung
Yui Chun Leung 2020년 4월 4일
I implemented different types of GANs with Matlab, including DCGAN, cGAN, CycleGAN and more.
You can find my files in FileExchange or Github (https://github.com/zcemycl/Matlab-GAN).
  댓글 수: 2
Atallah Baydoun
Atallah Baydoun 2020년 4월 4일
Thanks Yui,
I will take a look and see if I can adapt pix2pix to read .mat files instead of jpg and png.
Atallah
Yui Chun Leung
Yui Chun Leung 2020년 4월 4일
Atallah,
Here is the code used for transforming jpg and png to mat.
https://github.com/zcemycl/Matlab-GAN/blob/master/CycleGAN/LoadAppleOrangeDatabase.m https://github.com/zcemycl/Matlab-GAN/blob/master/Pix2Pix/LoadFacadeDatabase.m
But if you want a dataloader like in pytorch, you have to rewrite the for loop and put the jpg loader in it.

댓글을 달려면 로그인하십시오.

추가 답변 (6개)

Shounak Mitra
Shounak Mitra 2019년 6월 6일
In the next release, we're going to provide some flexbilities to design advanced networks such as GANs, Siamese Networks etc. Hang on :)
  댓글 수: 2
ashkan dashtban
ashkan dashtban 2019년 6월 8일
  • we hope Matlab will provide more flexibility in new release to enable us to build hybrid dynamic networks by combining different components of neural networks. Also, If we could add customized metric funciotions, say precision instead of accuracy.! such capability makes MatLab much more powerfull and handy than python!
Shounak Mitra
Shounak Mitra 2019년 6월 10일
Great feedback. We're working on that too.

댓글을 달려면 로그인하십시오.


KH TOHIDUL ISLAM
KH TOHIDUL ISLAM 2019년 9월 19일
It is avilabel now, please check this out. Train Generative Adversarial Network (GAN)
  댓글 수: 2
Atallah Baydoun
Atallah Baydoun 2019년 9월 19일
Yep, It was the first thing I checked when I got the email about Matlab 2019 b.
Thanks!
Atallah Baydoun
Atallah Baydoun 2019년 11월 7일
How extensible is the current model to 3D ?

댓글을 달려면 로그인하십시오.


Atallah Baydoun
Atallah Baydoun 2019년 6월 7일
Thanks Mitra for the info.
But when is the next release going to be ?
  댓글 수: 5
Shounak Mitra
Shounak Mitra 2019년 6월 10일
Let's think of it in terms of what important features you need to create GANs - autodifferentiation, custom training loops, and may be custom layers too (if you're curious!). All those things are planned to be supported. And of course, the deep learning layer support will be there.
Atallah Baydoun
Atallah Baydoun 2019년 6월 10일
Hopefully then Matlab will include an example on GAN generation also.

댓글을 달려면 로그인하십시오.


Wonho Song
Wonho Song 2020년 5월 28일
Hello.
Thanks for these nice codes.
Normally we do have checkpoints and model to save to a file.
  1. I want to know how to save the model.Is it good to save the paramGen and paramDis? and if it is then how to use as a model.
  2. 2 .And also I want to know how to test pix2pix.m to a specific image file.Thanks in advance.
  댓글 수: 1
Atallah Baydoun
Atallah Baydoun 2020년 5월 28일
Hey Wonho,
I ended up by using pix2pix from this link.
https://www.mathworks.com/matlabcentral/fileexchange/74779-pix2pix
It automatically saves the model. You can se from the link that many troubleshooting issues were resolved.

댓글을 달려면 로그인하십시오.


David Willingham
David Willingham 2020년 8월 27일
Since R2019b, MATLAB has supported the implementation of GAN's.
More information on this can be found here.
Regards,
David Willingham
Deep Learning Product Manager, MathWorks

anbarasi l
anbarasi l 2022년 11월 30일
MATLAB has supported the implementation of CGAN.
You can find information on this in the below link
Train Conditional Generative Adversarial Network (CGAN)
https://in.mathworks.com/help/deeplearning/ug/train-conditional-generative-adversarial-network.html

카테고리

Help CenterFile Exchange에서 Image Data Workflows에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by