Error in dlnetwork/initialize in GAN

10 ビュー (過去 30 日間)
Shaw
Shaw 2021 年 10 月 10 日
コメント済み: plik plik 2023 年 9 月 15 日
dlnetGenerator = dlnetwork(lgraphGenerator);
  2 件のコメント
Walter Roberson
Walter Roberson 2021 年 10 月 10 日
If you run the example on MATLAB Online then the function is defined at
/MATLAB Drive/Examples/R2021b/nnet/TrainGenerativeAdversarialNetworkGANExample/feature2image.m
Shaw
Shaw 2021 年 10 月 10 日
I am not using Matlab online. using Desktop version 2021b

サインインしてコメントする。

採用された回答

Walter Roberson
Walter Roberson 2021 年 10 月 10 日
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.
  1 件のコメント
plik plik
plik plik 2023 年 9 月 15 日
ur right

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeInstall Products についてさらに検索

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by