Coder Social home page Coder Social logo

Comments (4)

EvilPerfectionist avatar EvilPerfectionist commented on July 20, 2024

@Zumbalamambo Hello, please look at the code in LoadBatches.py at line 46-49(

img = img[:, : , 0]
). "img = img[:, : , 0]" -> The blue channel is the first channel, so '0' in the equation is the blue channel. And in the following lines, you can see that the pixel value in blue channel represents the class labels.

from image-segmentation-keras.

EvilPerfectionist avatar EvilPerfectionist commented on July 20, 2024

@Zumbalamambo According to your first question, there are many methods to make annotation images. First, some large datasets provide the corresponding annotation images for raw image, such as PASCAL VOC 2012. If you cannot find the suitable dataset for your project, you can make your dataset by yourself, using either photoshop or some opensource software. You can search them on the internet.

from image-segmentation-keras.

Zumbalamambo avatar Zumbalamambo commented on July 20, 2024

@EvilPerfectionist
20170905094129778

This is how the annotation image will be if i use photoshop. But the masks are looking different.Its of light color. How do we do that?

from image-segmentation-keras.

lktinh2018 avatar lktinh2018 commented on July 20, 2024

@EvilPerfectionist
20170905094129778

This is how the annotation image will be if i use photoshop. But the masks are looking different.Its of light color. How do we do that?

We need to convert image with class value from 0->nClasses, because in load image function we assign label from zero->nClasses.
I will try with my dataset and give you my result if it's completed.

Best regards,
Tinh Lam

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.