Train VAE for image generation
조회 수: 2 (최근 30일)
이전 댓글 표시
I am trying to implement the code given in the following link with my own dataset containing RGB images of size 200*200:
I am getting the following errors in the Train model part:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1413289/image.png)
I can make out that there is some issue happening with the custom functions ('modelLoss', 'elboLoss') given in this link. But I am unable to understand how can I resolve these issues. Someone please kindly guide me . I will be thankful to you.
댓글 수: 0
답변 (1개)
Ranjeet
2023년 6월 26일
Hi Debojit,
As per the error message provided, the decoder (netD) output size is not matching with what is being fed to the encoder (netE) input.
I suggest analysing the networks (can refer to this resource - analyzeNetwork) and check if the decoder output is same to that of encoder input (image of size 200*200).
Also, size of ‘Y’ and ‘T’ can be cross-checked to be equal in ‘elboLoss’ function in the referred example – Train Variational Autoencoder (VAE) to Generate Images
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Image Data Workflows에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!