Azzera filtri
Azzera filtri

Error in dlnetwork/initialize in GAN

23 visualizzazioni (ultimi 30 giorni)
Shaw
Shaw il 10 Ott 2021
Commentato: plik plik il 15 Set 2023
dlnetGenerator = dlnetwork(lgraphGenerator);
  2 Commenti
Walter Roberson
Walter Roberson il 10 Ott 2021
If you run the example on MATLAB Online then the function is defined at
/MATLAB Drive/Examples/R2021b/nnet/TrainGenerativeAdversarialNetworkGANExample/feature2image.m
Shaw
Shaw il 10 Ott 2021
I am not using Matlab online. using Desktop version 2021b

Accedi per commentare.

Risposta accettata

Walter Roberson
Walter Roberson il 10 Ott 2021
When you
openExample('nnet/TrainGenerativeAdversarialNetworkGANExample')
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
/Users/roberson/Documents/MATLAB/Examples/R2021b/nnet/TrainGenerativeAdversarialNetworkGANExample/feature2image.m
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.

Più risposte (0)

Categorie

Scopri di più su Install Products in Help Center e File Exchange

Prodotti


Release

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by