SegNet-Tutorial icon indicating copy to clipboard operation
SegNet-Tutorial copied to clipboard

Not getting proper output

Open chiragmalli opened this issue 9 years ago • 6 comments

Hey, I am training segnet using 74 images that i have taken randomley from camvid dataset.and i have trainied for 3000 iterations with learning rate 0.01. But when i tried to test it is giving me output as i attached the file. Can someone tell me the reason y i am getting this result? figure_1 figure_3

chiragmalli avatar Jun 27 '16 02:06 chiragmalli

Hi,

First off all can you tell me what is the accuracy displayed by caffe during training ?

Have to used the script compute_bn_statistics ?

Simon-Prevoteaux avatar Aug 15 '16 22:08 Simon-Prevoteaux

I have met the same issue, what's the reason for this result? I'm quit confused about it.

zhouzhenyou avatar Nov 22 '16 13:11 zhouzhenyou

Did you use the compute_bn_statistics script in order to normalize the weights resulting from your training ?

Simon-Prevoteaux avatar Nov 22 '16 20:11 Simon-Prevoteaux

Thx for your help. the script has already been used, and the result almost the same to the figure above. My result was almost blue or red full of the figure.

zhouzhenyou avatar Nov 23 '16 06:11 zhouzhenyou

I have met the same issue, what's the reason for this result?

xingbotao avatar May 20 '17 02:05 xingbotao

met the same problem... every thing was OK when using python scripts, but using the C++ script 'Scripts/test_segmentation.cpp' got the bad output. Input of C++ script 'Scripts/test_segmentation.cpp' ---> argv[1]model_file: deploy.prototxt (uncommented 'compute_bn_statistics.py' line 189 to line 192) argv[2]trained_file: test_weights.caffemodel (run 'compute_bn_statistics.py') argv[3] img: 0001TP_008550.png argv[4] LUT img: camvid11.png

output_image_


At last, I got the point why 'Scripts/test_segmentation.cpp' output different with 'Scripts/test_segmentation_camvid.py'!

In the proto file 'deploy.prototxt' created by 'Script/compute_bn_statistics.py': --->the last Layer is 'prob' layer, its output is Blob[1,11,height,width], but 'Scripts/test_segmentation.cpp' need ArgMax Layer's output, so I added one ArgMax type layer and got result image same with 'Scripts/test_segmentation_camvid.py' output.

jqtao-wh avatar Aug 11 '17 08:08 jqtao-wh