How to change image size to, say 128?

6 ビュー (過去 30 日間)
John
John 2021 年 10 月 12 日
編集済み: John 2021 年 10 月 13 日
In "openExample('nnet/TrainGenerativeAdversarialNetworkGANExample')", the image size is set to 64. When changed all "found" places to 128, it showed a non-scaler error.
Please help to resolve this problem.
Thank you!

回答 (1 件)

Image Analyst
Image Analyst 2021 年 10 月 12 日
編集済み: Image Analyst 2021 年 10 月 12 日
I think most (or all?) network architectures are built to expect a certain size image upon input. I don't think you can just change the size to whatever you want.
  1 件のコメント
John
John 2021 年 10 月 12 日
編集済み: John 2021 年 10 月 13 日
Added an according layer to both generator and discriminator, it worked up to 5 iterations (still in epoch 1), then it shows an error "state must be a table, value must be 1-by-1 cell array or dlarray.
Displayed "dlnetGenerator.State", it does show the correct table with 1-by-1 dlarray.
Comparing to 64 image, it has one extra layer with higher number.
It would be an excellent tutorial for all. Hope experts can help.
Thanks.

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

カテゴリ

Help Center および File ExchangeImage Data Workflows についてさらに検索

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by