- In each loop, split the train set randomly into two sets, where one set will be used for training and the other for validation. You can use crossvalind or cvpartition functions for this purpose.
- Use this new train set for training the model and after the training is done, use the validation set to evaluate the model.
How can i use the validation set in object detection using deep learning?
조회 수: 1 (최근 30일)
이전 댓글 표시
I use faster-RCNN using pre-trained model(ResNet-50) for object detection.
(https://kr.mathworks.com/help/vision/examples/object-detection-using-faster-r-cnn-deep-learning.html)
I'm fine-tunning the last layers using a custom dataset.
As far as I know, when you have a small dataset k-fold cross validation is the right technique for evaluation.
But, this example does not seem to go through a validation procedure. Is there something I'm missing?
댓글 수: 0
답변 (1개)
Divya Gaddipati
2019년 7월 17일
The trainFasterRCNNObjectDetector does not support the “ValidationData”, “ValidationFrequency” and “ValidationPatience” options as of now. Hence, it is not possible to directly feed the validation data to the trainingOptions parameter.
Refer to this documentation for more information on how to use trainFasterRCNNObjectDetector function and the Tips section at the end of the page:
Possible workaround for the k-fold validation could be to run a loop “k” times.
This above step is done “k” times.
For more information of k-fold cross validation, you can refer to the following links:
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!