From 80770aacd781aafe76e2eb401bbe8a6a2a18761f Mon Sep 17 00:00:00 2001 From: Spark Echo Date: Thu, 31 May 2018 15:23:19 +0800 Subject: [PATCH] Merge pull request #11631 from sparkecho:3.4 Typo fixes (#11631) --- samples/dnn/face_detector/how_to_train_face_detector.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/dnn/face_detector/how_to_train_face_detector.txt b/samples/dnn/face_detector/how_to_train_face_detector.txt index 9c170fadd6..11602297f2 100644 --- a/samples/dnn/face_detector/how_to_train_face_detector.txt +++ b/samples/dnn/face_detector/how_to_train_face_detector.txt @@ -13,7 +13,7 @@ The data preparation pipeline can be represented as: a) Find some datasets with face bounding boxes annotation. For some reasons I can't provide links here, but you easily find them on your own. Also study the data. It may contain small or low quality faces which can spoil training process. Often there are special flags about object quality in annotation. Remove such faces from annotation (smaller when 16 along at least one side, or blurred, of highly-occluded, or something else). b) The downloaded dataset will have some format of annotation. It may be one single file for all images, or separate file for each image or something else. But to train SSD in Caffe you need to convert annotation to PASCAL VOC format. -PASCAL VOC annoitation consist of .xml file for each image. In this xml file all face bounding boxes should be listed as: +PASCAL VOC annotation consist of .xml file for each image. In this xml file all face bounding boxes should be listed as: @@ -42,7 +42,7 @@ PASCAL VOC annoitation consist of .xml file for each image. In this xml file all -So, convert your dataset's annotation to the fourmat above. +So, convert your dataset's annotation to the format above. Also, you should create labelmap.prototxt file with the following content: item { name: "none_of_the_above" @@ -76,4 +76,4 @@ mkdir -p log /path_for_caffe_build_dir/tools/caffe train -solver="solver.prototxt" -gpu 0 2>&1 | tee -a log/log.log And wait. It will take about 8 hours to finish the process. -After it you can use your .caffemodel from snapshot/ subdirectory in resnet_face_ssd_python.py sample. \ No newline at end of file +After it you can use your .caffemodel from snapshot/ subdirectory in resnet_face_ssd_python.py sample.