GAN Training: Error with augmented image datastore
25 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Nabiilah
am 2 Aug. 2020
Bearbeitet: Walter Roberson
am 3 Aug. 2020
Hi, I had this script running with one dataabse, however the generated images were far too pixelated, so I decided to switch the database to another(and nothing else) and now I'm getting the below error. I'm new to this, could I please have some help debugging it?
Error using augmentedImageDatastore/applyAugmentationPipeline (line 391)
augmentedImageDatastore cannot form MiniBatches of data because input image sizes differ in 3rd
dimension. Consider using 'ColorPreprocessing' option to ensure all augmented images have same
number of channels.
Error in augmentedImageDatastore>@(c)self.applyAugmentationPipeline(c) (line 372)
Xout = cellfun(@(c) self.applyAugmentationPipeline(c),X,'UniformOutput',false);
Error in augmentedImageDatastore/applyAugmentationPipelineToBatch (line 372)
Xout = cellfun(@(c) self.applyAugmentationPipeline(c),X,'UniformOutput',false);
Error in augmentedImageDatastore/read (line 308)
input = self.applyAugmentationPipelineToBatch(input);
Error in GANUTKFace (line 168)
data = read(augimds);
I've used the script from this example: https://uk.mathworks.com/help/deeplearning/ug/train-generative-adversarial-network.html
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 2 Aug. 2020
Bearbeitet: Walter Roberson
am 3 Aug. 2020
You presently have a mix of rgb and grayscale images and need to be consistent; the option can automatically convert
2 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Recognition, Object Detection, and Semantic Segmentation finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!