que about training images from cifar10data

1 view (last 30 days)
I currently have a problem
I RUN THE CODE BUT IN THIS LINE THERE IS A PROBLEM:
Train an R-CNN object detector. This will take several minutes.
rcnn = trainRCNNObjectDetector(AcneAndBeautySpots, cifar10Net, options)
% rcnn = trainRCNNObjectDetector(trainingImages,cifar10Net , options, 'NegativeOverlapRange', [0 0.3], 'PositiveOverlapRange',[0.5 1])
I TRIED 2 KIND OF LINE BUT BOTH DONT WORK
THE ERROR IS:
>> thank you very match:)
Warning: Unable to find any region proposals to use as positive training samples in these images:
C:\Users\תמר
ווסה\Desktop\study_lest_year_ba\final_project\labeled_image\labeled_3.6\labeled_3.6_8\PixelLabelData\Label_1.png
C:\Users\תמר
ווסה\Desktop\study_lest_year_ba\final_project\labeled_image\labeled_3.6\labeled_3.6_8\PixelLabelData\Label_2.png
C:\Users\תמר
ווסה\Desktop\study_lest_year_ba\final_project\labeled_image\labeled_3.6\labeled_3.6_8\PixelLabelData\Label_3.png
C:\Users\תמר
ווסה\Desktop\study_lest_year_ba\final_project\labeled_image\labeled_3.6\labeled_3.6_8\PixelLabelData\Label_4.png
C:\Users\תמר
ווסה\Desktop\study_lest_year_ba\final_project\labeled_image\labeled_3.6\labeled_3.6_8\PixelLabelData\Label_5.png
C:\Users\תמר
ווסה\Desktop\study_lest_year_ba\final_project\labeled_image\labeled_3.6\labeled_3.6_8\PixelLabelData\Label_6.png
C:\Users\תמר
ווסה\Desktop\study_lest_year_ba\final_project\labeled_image\labeled_3.6\labeled_3.6_8\PixelLabelData\Label_7.png
C:\Users\תמר
ווסה\Desktop\study_lest_year_ba\final_project\labeled_image\labeled_3.6\labeled_3.6_8\PixelLabelData\Label_8.png
C:\Users\תמר
ווסה\Desktop\study_lest_year_ba\final_project\labeled_image\labeled_3.6\labeled_3.6_8\PixelLabelData\Label_9.png
C:\Users\תמר
ווסה\Desktop\study_lest_year_ba\final_project\labeled_image\labeled_3.6\labeled_3.6_8\PixelLabelData\Label_10.png
C:\Users\תמר
ווסה\Desktop\study_lest_year_ba\final_project\labeled_image\labeled_3.6\labeled_3.6_8\PixelLabelData\Label_11.png
C:\Users\תמר
ווסה\Desktop\study_lest_year_ba\final_project\labeled_image\labeled_3.6\labeled_3.6_8\PixelLabelData\Label_12.png
C:\Users\תמר
ווסה\Desktop\study_lest_year_ba\final_project\labeled_image\labeled_3.6\labeled_3.6_8\PixelLabelData\Label_13.png
C:\Users\תמר
ווסה\Desktop\study_lest_year_ba\final_project\labeled_image\labeled_3.6\labeled_3.6_8\PixelLabelData\Label_14.png
C:\Users\תמר
ווסה\Desktop\study_lest_year_ba\final_project\labeled_image\labeled_3.6\labeled_3.6_8\PixelLabelData\Label_15.png
C:\Users\תמר
ווסה\Desktop\study_lest_year_ba\final_project\labeled_image\labeled_3.6\labeled_3.6_8\PixelLabelData\Label_16.png
C:\Users\תמר
ווסה\Desktop\study_lest_year_ba\final_project\labeled_image\labeled_3.6\labeled_3.6_8\PixelLabelData\Label_17.png
C:\Users\תמר
ווסה\Desktop\study_lest_year_ba\final_project\labeled_image\labeled_3.6\labeled_3.6_8\PixelLabelData\Label_18.png
C:\Users\תמר
ווסה\Desktop\study_lest_year_ba\final_project\labeled_image\labeled_3.6\labeled_3.6_8\PixelLabelData\Label_19.png
C:\Users\תמר
ווסה\Desktop\study_lest_year_ba\final_project\labeled_image\labeled_3.6\labeled_3.6_8\PixelLabelData\Label_20.png
C:\Users\תמר
ווסה\Desktop\study_lest_year_ba\final_project\labeled_image\labeled_3.6\labeled_3.6_8\PixelLabelData\Label_21.png
C:\Users\תמר
ווסה\Desktop\study_lest_year_ba\final_project\labeled_image\labeled_3.6\labeled_3.6_8\PixelLabelData\Label_22.png
C:\Users\תמר
ווסה\Desktop\study_lest_year_ba\final_project\labeled_image\labeled_3.6\labeled_3.6_8\PixelLabelData\Label_23.png
C:\Users\תמר
ווסה\Desktop\study_lest_year_ba\final_project\labeled_image\labeled_3.6\labeled_3.6_8\PixelLabelData\Label_24.png
C:\Users\תמר
ווסה\Desktop\study_lest_year_ba\final_project\labeled_image\labeled_3.6\labeled_3.6_8\PixelLabelData\Label_25.png
C:\Users\תמר
ווסה\Desktop\study_lest_year_ba\final_project\labeled_image\labeled_3.6\labeled_3.6_8\PixelLabelData\Label_26.png
C:\Users\תמר
ווסה\Desktop\study_lest_year_ba\final_project\labeled_image\labeled_3.6\labeled_3.6_8\PixelLabelData\Label_27.png
C:\Users\תמר
ווסה\Desktop\study_lest_year_ba\final_project\labeled_image\labeled_3.6\labeled_3.6_8\PixelLabelData\Label_28.png
They will not be used for training.
> In vision.internal.rcnn.TrainingImageRegionDatastore (line 118)
In rcnnObjectDetector/createTrainingDispatcher (line 933)
In rcnnObjectDetector.train (line 223)
In trainRCNNObjectDetector (line 280)
In MyRCNNObjectDetectionDemo (line 398)
Warning: Unable to find any region proposals to use as negative training samples in these images:
C:\Users\תמר
ווסה\Desktop\study_lest_year_ba\final_project\labeled_image\labeled_3.6\labeled_3.6_8\PixelLabelData\Label_1.png
C:\Users\תמר
ווסה\Desktop\study_lest_year_ba\final_project\labeled_image\labeled_3.6\labeled_3.6_8\PixelLabelData\Label_2.png
C:\Users\תמר
ווסה\Desktop\study_lest_year_ba\final_project\labeled_image\labeled_3.6\labeled_3.6_8\PixelLabelData\Label_3.png
C:\Users\תמר
ווסה\Desktop\study_lest_year_ba\final_project\labeled_image\labeled_3.6\labeled_3.6_8\PixelLabelData\Label_4.png
C:\Users\תמר
ווסה\Desktop\study_lest_year_ba\final_project\labeled_image\labeled_3.6\labeled_3.6_8\PixelLabelData\Label_5.png
C:\Users\תמר
ווסה\Desktop\study_lest_year_ba\final_project\labeled_image\labeled_3.6\labeled_3.6_8\PixelLabelData\Label_6.png
C:\Users\תמר
ווסה\Desktop\study_lest_year_ba\final_project\labeled_image\labeled_3.6\labeled_3.6_8\PixelLabelData\Label_7.png
C:\Users\תמר
ווסה\Desktop\study_lest_year_ba\final_project\labeled_image\labeled_3.6\labeled_3.6_8\PixelLabelData\Label_8.png
C:\Users\תמר
ווסה\Desktop\study_lest_year_ba\final_project\labeled_image\labeled_3.6\labeled_3.6_8\PixelLabelData\Label_9.png
C:\Users\תמר
ווסה\Desktop\study_lest_year_ba\final_project\labeled_image\labeled_3.6\labeled_3.6_8\PixelLabelData\Label_10.png
C:\Users\תמר
ווסה\Desktop\study_lest_year_ba\final_project\labeled_image\labeled_3.6\labeled_3.6_8\PixelLabelData\Label_11.png
C:\Users\תמר
ווסה\Desktop\study_lest_year_ba\final_project\labeled_image\labeled_3.6\labeled_3.6_8\PixelLabelData\Label_12.png
C:\Users\תמר
ווסה\Desktop\study_lest_year_ba\final_project\labeled_image\labeled_3.6\labeled_3.6_8\PixelLabelData\Label_13.png
C:\Users\תמר
ווסה\Desktop\study_lest_year_ba\final_project\labeled_image\labeled_3.6\labeled_3.6_8\PixelLabelData\Label_14.png
C:\Users\תמר
ווסה\Desktop\study_lest_year_ba\final_project\labeled_image\labeled_3.6\labeled_3.6_8\PixelLabelData\Label_15.png
C:\Users\תמר
ווסה\Desktop\study_lest_year_ba\final_project\labeled_image\labeled_3.6\labeled_3.6_8\PixelLabelData\Label_16.png
C:\Users\תמר
ווסה\Desktop\study_lest_year_ba\final_project\labeled_image\labeled_3.6\labeled_3.6_8\PixelLabelData\Label_17.png
C:\Users\תמר
ווסה\Desktop\study_lest_year_ba\final_project\labeled_image\labeled_3.6\labeled_3.6_8\PixelLabelData\Label_18.png
C:\Users\תמר
ווסה\Desktop\study_lest_year_ba\final_project\labeled_image\labeled_3.6\labeled_3.6_8\PixelLabelData\Label_19.png
C:\Users\תמר
ווסה\Desktop\study_lest_year_ba\final_project\labeled_image\labeled_3.6\labeled_3.6_8\PixelLabelData\Label_20.png
C:\Users\תמר
ווסה\Desktop\study_lest_year_ba\final_project\labeled_image\labeled_3.6\labeled_3.6_8\PixelLabelData\Label_21.png
C:\Users\תמר
ווסה\Desktop\study_lest_year_ba\final_project\labeled_image\labeled_3.6\labeled_3.6_8\PixelLabelData\Label_22.png
C:\Users\תמר
ווסה\Desktop\study_lest_year_ba\final_project\labeled_image\labeled_3.6\labeled_3.6_8\PixelLabelData\Label_23.png
C:\Users\תמר
ווסה\Desktop\study_lest_year_ba\final_project\labeled_image\labeled_3.6\labeled_3.6_8\PixelLabelData\Label_24.png
C:\Users\תמר
ווסה\Desktop\study_lest_year_ba\final_project\labeled_image\labeled_3.6\labeled_3.6_8\PixelLabelData\Label_25.png
C:\Users\תמר
ווסה\Desktop\study_lest_year_ba\final_project\labeled_image\labeled_3.6\labeled_3.6_8\PixelLabelData\Label_26.png
C:\Users\תמר
ווסה\Desktop\study_lest_year_ba\final_project\labeled_image\labeled_3.6\labeled_3.6_8\PixelLabelData\Label_27.png
C:\Users\תמר
ווסה\Desktop\study_lest_year_ba\final_project\labeled_image\labeled_3.6\labeled_3.6_8\PixelLabelData\Label_28.png
> In vision.internal.rcnn.TrainingImageRegionDatastore (line 128)
In rcnnObjectDetector/createTrainingDispatcher (line 933)
In rcnnObjectDetector.train (line 223)
In trainRCNNObjectDetector (line 280)
In MyRCNNObjectDetectionDemo (line 398)
Error using vision.internal.rcnn.TrainingImageRegionDatastore (line 138)
Unable to find any region proposals to use as positive training samples. Lower the first value of
PositiveOverlapRange to increase the number of positive region proposals.
Error in rcnnObjectDetector/createTrainingDispatcher (line 933)
dispatcher = vision.internal.rcnn.TrainingImageRegionDatastore(...
Error in rcnnObjectDetector.train (line 223)
dispatcher = createTrainingDispatcher(detector, trainingData, regionProposals, opts,
params.InputSize, params);
Error in trainRCNNObjectDetector (line 280)
[detector, ~, info] = rcnnObjectDetector.train(trainingData, lgraphOrLayers, options, params);
Error in MyRCNNObjectDetectionDemo (line 398)
rcnn = trainRCNNObjectDetector(AcneAndBeautySpots, cifar10Net, options)
  3 Comments
neora asulin
neora asulin on 10 Sep 2019
Edited: neora asulin on 10 Sep 2019
i tke table with 2 columns 1 for location images and secont the hight and width and max hight...(like a array with 4 numbers)
but it does not work still

Sign in to comment.

Answers (1)

Sai Bhargav Avula
Sai Bhargav Avula on 4 Nov 2019
Hi,
The error is because your region proposal method is producing ROIs that are too small to process. In the following link Birju gives a good explanantion.
Hope this helps !

Categories

Find more on Recognition, Object Detection, and Semantic Segmentation 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!