alexgkendall / SegNet-Tutorial

Files for a tutorial to train SegNet for road scenes using the CamVid dataset
http://mi.eng.cam.ac.uk/projects/segnet/tutorial.html
851 stars 518 forks source link

Webcam demo results in random colored pixels #32

Open neidhard opened 8 years ago

neidhard commented 8 years ago

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

montekristo1946 commented 8 years ago

Hey. I have a similar problem 123

alexgkendall commented 8 years ago

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?

montekristo1946 commented 8 years ago

the contents of an array _inputimage [[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]]]]

alexgkendall commented 8 years ago

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

montekristo1946 commented 8 years ago

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

neidhard commented 8 years ago

I compiled caffe-segnet under windows (vs2013) too

montekristo1946 commented 8 years ago

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

neidhard commented 8 years ago

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/

montekristo1946 commented 8 years ago

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

zhangyunming commented 8 years ago

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

zhangyunming commented 8 years ago

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

montekristo1946 commented 8 years ago

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?

zhangyunming commented 8 years ago

@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

montekristo1946 commented 8 years ago

please tell me that you have corrected.

zhangyunming commented 8 years ago

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

do this:

modify io.cpp like

qq 20160617162726

qq 20160617162730

montekristo1946 commented 8 years ago

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