pixel label image must have 3 channels when RGB triplet pixel label IDs are specified
Mostrar comentarios más antiguos
When tried to run segmentation program , following error occured
3 comentarios
Rus Gabriela
el 3 de En. de 2022
Hello!
Did you find the answer for your problem? I have the same error.
john
el 10 de En. de 2022
Did you guys got the answer? I too have the same error
Fernando Perez
el 22 de Jul. de 2022
Same error here!!
Respuestas (1)
Antoni Woss
el 22 de Jul. de 2022
1 voto
This error is being thrown because of the second argument being passed to pixelLabelImageSource, pxdsTrain, which is of type ImageDatastore rather than PixelLabelDatastore. You need to ensure the second argument is of type PixelLabelDatastore (https://www.mathworks.com/help/vision/ref/pixellabeldatastore.html). The following documentation page gives more information on the function arguments: https://www.mathworks.com/help/vision/ref/pixellabelimagesource.html
Note from this documentation page that this function, pixelLabelImageSource, has been removed since R2018a.
Categorías
Más información sobre Deep Learning Toolbox en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!