Error related to datasets when using yolov2.

2 views (last 30 days)
hello!
I changed the training data using the form shown at this address(https://kr.mathworks.com/help/deeplearning/ug/object-detection-using-yolo-v2.html?searchHighlight=yolo&s_tid=srchtitle_yolo_6), but just before the training, the same phenomenon as the picture below appeared, so I'm not sure what the problem is.
There is no problem with the name and label of the video, but I don't know what went wrong.
Please help me who lacks knowledge about matlab.
Thans you so much. Have a nice day everyone~

Accepted Answer

yanqi liu
yanqi liu on 30 Dec 2021
yes,sir,as the information,please make your image to rgb not gray,such as
augimdsTrain = augmentedImageDatastore(inputSize(1:2),imdsTrain,'ColorPreprocessing','gray2rgb');
or use
img = cat(3,im,im,im);
to make 3 channel,just as rgb format

More Answers (0)

Categories

Find more on Deep Learning Toolbox in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!