image-segmentation-keras icon indicating copy to clipboard operation
image-segmentation-keras copied to clipboard

I get all output predicted images of single color

Open mttlutkarsh opened this issue 7 years ago • 7 comments
trafficstars

mttlutkarsh avatar May 25 '18 12:05 mttlutkarsh

@mttlutkarsh I had the same issue, the following modifications worked for me:

  1. The problem i was trying to solve had only two classes(object and background). I compiled the VGGsegnet model with a binary_crossentropy loss
  2. Making sure that the binary mask had only 1's and 0's as my mask contained 255 and 0 as the max and min.
  3. Make sure you are loading the right model for testing as the code saves models at every epoch. Hope this is helpful. Good luck!

vbhavank avatar Jul 24 '18 20:07 vbhavank

Have you ever run into the loss = Nan problem in training VGGsegnet , or which one of your optimizers and loss functions you choose to run successfully? @vbhavank @divamgupta

jiyongma avatar Oct 27 '18 11:10 jiyongma

Have you solved it and how

gugudexiatian avatar Jan 06 '19 03:01 gugudexiatian

@mttlutkarsh I had the same issue, the following modifications worked for me:

  1. The problem i was trying to solve had only two classes(object and background). I compiled the VGGsegnet model with a binary_crossentropy loss
  2. Making sure that the binary mask had only 1's and 0's as my mask contained 255 and 0 as the max and min.
  3. Make sure you are loading the right model for testing as the code saves models at every epoch. Hope this is helpful. Good luck!

for 2, can l ask how to deal the mask,like this picture, green and black isbackground, red is seg part. Thank u very much! 15-30-31_885

Ysoleil avatar Mar 01 '19 02:03 Ysoleil

@vbhavank for 1, it works, thanks

Vincentlinzesheng avatar May 17 '19 03:05 Vincentlinzesheng

@Ysoleil i think for green and black should be set to black(pixel 0) ,and red be set to pixel 1

Vincentlinzesheng avatar May 17 '19 03:05 Vincentlinzesheng

@Vincentlinzesheng can you tell me in which folder can I find the predicted output images please?

safamath avatar May 21 '20 07:05 safamath