ICNet-tensorflow icon indicating copy to clipboard operation
ICNet-tensorflow copied to clipboard

train 2class dataset from strach has nothing result

Open zhangyunming opened this issue 7 years ago • 7 comments

hi,hellochick: i use the code you release severel days ago , i use my data in two class(background,foreground) to train from strach

  1. the input i set 512*512 2, class_num=2,(8bit label image are 0 &1),ignore_label set 0,later 100, 255 and so on 3, the loss is about 0.5

i test on the code in your demo.py(changed by your demo.) ,but it has nothing result.

whats wrong

zhangyunming avatar Oct 25 '18 10:10 zhangyunming

Almost all the test images are foreground..

zhangyunming avatar Oct 25 '18 10:10 zhangyunming

icnet_tf

zhangyunming avatar Oct 25 '18 10:10 zhangyunming

I have met the same issue. I trained my own data from scratch and got nothing output. My data has three classes, that is 0, 1 and 2, where 0 stands for background. I set n_classes to 3 & ignore 255 and n_classes to 2 & ignore 0, both got nothing. The output image is all 1.

0oshowero0 avatar Oct 29 '18 03:10 0oshowero0

Hey guys, you can refer to #50, there are some advices which can help you to solve the problems!

hellochick avatar Oct 30 '18 02:10 hellochick

Well, the code can run but it learnt nothing. When I start training, it has outputs other than 1. But later on the output is all 1.

0oshowero0 avatar Nov 02 '18 11:11 0oshowero0

Yes,when i do everything same with issue50,its still the problem

zhangyunming avatar Nov 03 '18 03:11 zhangyunming

Do you guys load the pre-trained model? I think you should do that, or the network might learned nothing. If you trained from scratch, you should teach the model to classify object first (trained on ImageNet or something else).

hellochick avatar Nov 04 '18 06:11 hellochick