How to change image size to, say 128?

조회 수: 4 (최근 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 CenterFile Exchange에서 Image Data Workflows에 대해 자세히 알아보기

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by