error in Train a Deep Learning Vehicle Detector example

2 views (last 30 days)
I run the example of vehicle detector at https://www.mathworks.com/help/driving/examples/train-a-deep-learning-vehicle-detector.html. modify only 'doTrainingAndEval = true'; for the code will run, agter the first stage was run at the option 2 I recived a warning for all the images and an error after this:
Warning: An error occurred while using @(x)d.propose(x,minBoxSize,'MiniBatchSize',miniBatchSize) to process C:\Program
Files\MATLAB\R2017b\toolbox\vision\visiondata\vehicles\image_00177.jpg:
Expected input number 1, bbox, to be finite.
Regions from this image will not be used for training.
> In fastRCNNObjectDetector.invokeRegionProposalFcn (line 268)
In fastRCNNObjectDetector>@(x,filename)fastRCNNObjectDetector.invokeRegionProposalFcn(fcnCopy,x,filename) (line 158)
In fastRCNNObjectDetector.extractRegionProposals (line 218)
In fastRCNNObjectDetector.train (line 168)
In trainFasterRCNNObjectDetector (line 297)
In vehicleDetectionMatlabEx (line 121)
'Error using vision.internal.cnn.fastrcnn.RegionReader (line 146)
Unable to find any region proposals to use as positive or negative training samples.
Error in vision.internal.cnn.fastrcnn.TrainingRegionDispatcher (line 63)
vision.internal.cnn.fastrcnn.RegionReader(...
Error in fastRCNNObjectDetector/createTrainingDispatcher (line 668)
dispatcher = vision.internal.cnn.fastrcnn.TrainingRegionDispatcher(...
Error in fastRCNNObjectDetector.train (line 173)
dispatcher = createTrainingDispatcher(...
Error in trainFasterRCNNObjectDetector (line 297)
[~, fastRCNN] = fastRCNNObjectDetector.train(trainingData, fastRCNN, options(2), params, checkpointSaver);
Error in vehicleDetectionMatlabEx (line 121)
detector = trainFasterRCNNObjectDetector(trainingData, layers, options, ...'

Answers (0)

Categories

Find more on Recognition, Object Detection, and Semantic Segmentation in Help Center and File Exchange

Products


Release

R2017b

Community Treasure Hunt

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

Start Hunting!