Trial and error to follow SegNet-Tutorial(2)
(link: http://mi.eng.cam.ac.uk/projects/segnet/tutorial.html)
4. test my own data
1) change the path of dense_image_data_param-source in *.prototxt file
========================================================================
segnet_inference_kitti.prototxt
name: "VGG_ILSVRC_16_layer"
layer {
name: "data"
type: "DenseImageData"
top: "data"
top: "label"
dense_image_data_param {
source: "/home/morinjwang/data/JWang2017IROS/test.txt" # Change this to the absolute path to your data file
batch_size: 1
}
}
========================================================================
Note that if you want to automatically resize the testing images, try to add two lines below
========================================================================
segnet_inference_kitti.prototxt
name: "VGG_ILSVRC_16_layer"
layer {
name: "data"
type: "DenseImageData"
top: "data"
top: "label"
dense_image_data_param {
source: "/home/morinjwang/data/JWang2017IROS/test.txt" # Change this to the absolute path to your data file
batch_size: 1
new_height: 360
new_width: 480
}
}
========================================================================
2) make the test.txt file (/path/of/the/original/image /path/of/the/corresponding/groundtruth/image)
========================================================================
text.txt
...
/home/morinjwang/data/JWang2017IROS/image_02/0000/000110.png /home/morinjwang/data/JWang2017IROS/img_gth/segments/0000/000110.png
...
========================================================================
3) run test_segmentation_camvid.py
댓글 없음:
댓글 쓰기