Coder Social home page Coder Social logo

Comments (7)

vbhavank avatar vbhavank commented on July 2, 2024 1

@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!

from image-segmentation-keras.

Vincentlinzesheng avatar Vincentlinzesheng commented on July 2, 2024 1

@vbhavank for 1, it works, thanks

from image-segmentation-keras.

jiyongma avatar jiyongma commented on July 2, 2024

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

from image-segmentation-keras.

gugudexiatian avatar gugudexiatian commented on July 2, 2024

Have you solved it and how

from image-segmentation-keras.

Ysoleil avatar Ysoleil commented on July 2, 2024

@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

from image-segmentation-keras.

Vincentlinzesheng avatar Vincentlinzesheng commented on July 2, 2024

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

from image-segmentation-keras.

safamath avatar safamath commented on July 2, 2024

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

from image-segmentation-keras.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.