Error in dlnetwork/initialize in GAN

14 views (last 30 days)
dlnetGenerator = dlnetwork(lgraphGenerator);
Shaw on 10 Oct 2021
I am not using Matlab online. using Desktop version 2021b

Sign in to comment.

Accepted Answer

Walter Roberson
Walter Roberson on 10 Oct 2021
When you
the file will be copied into the directory that is created to host the example, which would be
fullfile('MATLAB', 'Examples', 'R2021b', 'nnet', 'TrainGenerativeAdversarialNetworkGANExample', 'feature2image.m')
probably relative to your Documents directory. For example for me on MacOS it would be
The "master" copy of the file lives at
fullfile(matlabroot, 'examples', 'nnet', 'main', 'feature2image.m')
which is not on your MATLAB path. The copy there is not intended to be executed out of that location; it is intended that you use openExample() to created the correct environment.

More Answers (0)


Find more on Introduction to Installation and Licensing in Help Center and File Exchange




Community Treasure Hunt

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

Start Hunting!

Translated by