Coder Social home page Coder Social logo

Comments (14)

MjdMahasneh avatar MjdMahasneh commented on July 2, 2024 1

try reading the readme file (main page) section 'Preparing the data for training' they also provide a nice simple code to explain the labeling method.

from image-segmentation-keras.

saramsv avatar saramsv commented on July 2, 2024

@duyanfang123 Did you find the answer for your question? I am having the same problem.

from image-segmentation-keras.

lijiashu avatar lijiashu commented on July 2, 2024

how can i run this code?

from image-segmentation-keras.

saramsv avatar saramsv commented on July 2, 2024

@lijiashu
For training, predicting and visualizing, you can pretty much use the same code provided in the readme(main page). For me, I ended up using 224*224 for the image size though.
The only confusing part for me was how to provide annotation for my own data which I later figured it out. If that's the case for you, I can help you with that.

from image-segmentation-keras.

rhs082 avatar rhs082 commented on July 2, 2024

saramsv:

For annotation please suggest software how for non standard data.

from image-segmentation-keras.

saramsv avatar saramsv commented on July 2, 2024

I don't know if you can do anything without annotation. But I think you can probably use LabelMe to annotate your data.
When you have annotations for your data, then you need to create a png image corresponding to each image. The created images are going to keep your annotation information for each image.
Here is an example of how to create each annotation image.
For example you have a 224 by 224 image and it has only 2 classes (say road and grass). You create a numpy array of zeros with size 224 by 224. Then for all pixels belonging to class "road" you change the pixels' value to 1 and for all pixels belonging to class "grass" you assign value 2. The resulted image would be the annotation for the corresponding image and would have 0 for background, 1 for road and 2 for grass.

from image-segmentation-keras.

rhs082 avatar rhs082 commented on July 2, 2024

Do you prefer a VGG annotator for labeling?

from image-segmentation-keras.

lijiashu avatar lijiashu commented on July 2, 2024

I had trained teh model and when i use this model to predict the picture i had not get the ringht mark.

from image-segmentation-keras.

YLONl avatar YLONl commented on July 2, 2024

@duyanfang123 @saramsv There are many softwares for annotation, like labelme,labelImg,yolo_mark..https://cloud.tencent.com/developer/news/241350. Or use code for annotation,like the readme

from image-segmentation-keras.

srinivas1746 avatar srinivas1746 commented on July 2, 2024

Hi @divamgupta , @saramsv , I understood, how to generate label image, but unable to give the label name(class name). Where can I give the names of the class for training own data set.

Please help me out.

from image-segmentation-keras.

divamgupta avatar divamgupta commented on July 2, 2024

You do not give the names of the labels to the model. Just make sure each segmentation class is mapped to a unique ID.

from image-segmentation-keras.

srinivas1746 avatar srinivas1746 commented on July 2, 2024

Thanks for your quick reply.

Trained my data by giving unique pixel value for class.

For placing boundary boxes with class name, we have to see manually class color in output predicted image. its like post processing step. Am i correct?
Thanks

from image-segmentation-keras.

divamgupta avatar divamgupta commented on July 2, 2024

If you save as jpg image then you have to read the color values . Using the python interface, the predict function would return a numpy array with the class ID for each pixel .

from image-segmentation-keras.

srinivas1746 avatar srinivas1746 commented on July 2, 2024

Okay, I will do that.

Thanks.

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.