필터 지우기
필터 지우기

What is the format of 'XTrain ' array in the example https://in​.mathworks​.com/help/​deeplearni​ng/ug/trai​n-a-variat​ional-auto​encoder-va​e-to-gener​ate-images​.html

조회 수: 5 (최근 30일)
I am not able to run the code given the following link:
It is showing error while loading the 'MNIST' dataset. Someone please tell me what is the format of 'XTrain' data in this code. I am trying to run this code using my own dataset. format of 'XTrain' variable using my dataset is 102x1 cell. But I am getting error in mbq = minibatchqueue(dsTrain,numOutputs, ... line. it says Conversion to single from cell is not possible. So, I need to know the format of 'XTrain' variable to remove this error. Someone please help me with this.

답변 (1개)

Prasannavenkatesh
Prasannavenkatesh 2023년 6월 16일
Hi Debojit,
The format of the XTrain variable present in the example "train a variational autoencoder vae to generate images" is of the type 4-D double which is a way to represent a four-dimensional (4-D) numerical array that stores data using double-precision floating-point numbers. Hence, due to mismatch in types you may be getting the conversion error. Hope this helps in solving your error.
  댓글 수: 2
debojit sharma
debojit sharma 2023년 6월 16일
Thank you for your response.
Can you provide a sample code for this conversion of XTrain (with 102x1 cell format) to four-dimensional (4-D) numerical array that stores data using double-precision floating-point numbers. I am trying to do it using reshape function but I am getting errors. If possible, please help me with this
Prasannavenkatesh
Prasannavenkatesh 2023년 6월 16일
Can you send a bit more information on your XTrain variable, regarding it's data, etc?

댓글을 달려면 로그인하십시오.

Community Treasure Hunt

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

Start Hunting!

Translated by