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

Webcam demo results in random colored pixels

Open neidhard opened this issue 8 years ago • 16 comments

I use this commnad for webcam_demo.py (model and weights from SegNet Model Zoo):

> python Scripts/webcam_demo.py --model Example_Models/segnet_model_driving_webdemo.prototxt --weights /Example_Models/segnet_weights_driving_webdemo.caffemodel --colours /Scripts/camvid12.png

but I see something like this all the time screenshot_7

neidhard avatar Mar 30 '16 10:03 neidhard

Hey. I have a similar problem 123

montekristo1946 avatar Apr 10 '16 11:04 montekristo1946

Can you please check the data going into segnet (ie. input_image)? It should have values that range from 0-255 and not 0-1?

alexgkendall avatar Apr 11 '16 08:04 alexgkendall

the contents of an array input_image [[167 168 167 ..., 110 111 111] [168 168 168 ..., 112 112 113] [168 168 168 ..., 113 112 112] ..., [114 120 122 ..., 116 117 115] [115 122 124 ..., 116 117 117] [115 120 122 ..., 117 118 118]]]]

montekristo1946 avatar Apr 11 '16 11:04 montekristo1946

Strange. Can you complete the rest of the tutorial okay?

alexgkendall avatar Apr 12 '16 08:04 alexgkendall

an example for the rest of a similar problem. I want to add that caffe-segnet compiled under windows (vs 2013)

montekristo1946 avatar Apr 12 '16 09:04 montekristo1946

I compiled caffe-segnet under windows (vs2013) too

neidhard avatar Apr 12 '16 10:04 neidhard

skomika hello. Please tell me how to compile the source (caffe-segnet-win) you took?

montekristo1946 avatar Apr 14 '16 18:04 montekristo1946

I took https://github.com/alexgkendall/caffe-segnet and built it using this tutorial: https://initialneil.wordpress.com/2015/01/11/build-caffe-in-windows-with-visual-studio-2013-cuda-6-5-opencv-2-4-9/

neidhard avatar Apr 22 '16 08:04 neidhard

New details. The trained model windows works fine on Ubuntu (fully intact). Please tell me where to find the problem.

montekristo1946 avatar Jun 03 '16 11:06 montekristo1946

1 hi,i also hava this problem,i do this on windows vs2013,where the problem....

zhangyunming avatar Jun 15 '16 10:06 zhangyunming

@skomika hi,have you fixed the problem? i have the same problem with you,can you give me some suggestion?

zhangyunming avatar Jun 15 '16 10:06 zhangyunming

I analyze the problem in the implementation of C ++, when you run the debug version of the problem can be seen already in the first nachinaetsya layers. Does anyone have ideas what to do?

montekristo1946 avatar Jun 15 '16 18:06 montekristo1946

@montekristo1946 hi,maybe the weights did not read right on windows ,but the weights can work perfect on linux.

yes,it is the reason, now,i can run the segnet on windows

zhangyunming avatar Jun 16 '16 02:06 zhangyunming

please tell me that you have corrected.

montekristo1946 avatar Jun 16 '16 19:06 montekristo1946

@montekristo1946 yes,i have run the segnet on windows vs2013

do this:

modify io.cpp like

qq 20160617162726

qq 20160617162730

zhangyunming avatar Jun 17 '16 08:06 zhangyunming

Thank you. It works. You can close the topic.

montekristo1946 avatar Jun 17 '16 10:06 montekristo1946