Comments (14)
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.
@duyanfang123 Did you find the answer for your question? I am having the same problem.
from image-segmentation-keras.
how can i run this code?
from image-segmentation-keras.
@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.
saramsv:
For annotation please suggest software how for non standard data.
from image-segmentation-keras.
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.
Do you prefer a VGG annotator for labeling?
from image-segmentation-keras.
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.
@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.
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.
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.
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.
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.
Okay, I will do that.
Thanks.
from image-segmentation-keras.
Related Issues (20)
- How to resume model training from last saved weight file?
- Installation requirement of h5py<=2.10.0?
- Not working on video
- Augmentations with "do_augment=True"
- Local Machine Multi GPU usage
- Wrong number of classes in visualize_segmentation
- urllib.error.URLError: <urlopen error [WinError 10061] 由于目标计算机积极拒绝,无法连接。>
- Unable to Work Preprocessing Function Parameter for model.train() HOT 1
- Custom Augmentation: AttributeError: 'Compose' object has no attribute 'to_deterministic'
- how to get FLOPs and Params
- crash to reboot durring training on both linux and windows
- iteration number is fixed to 512 and doesn't change
- Normalization problem
- if my pictures have a channel number more than 3, how to change the code to adapt to it
- Run pre-trained from Command Line?
- turning off the print statements?
- Another project using this lib....
- question about vgg16.py block 5
- TypeError: train() got an unexpected keyword argument 'callbacks'
- Model Deployment
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from image-segmentation-keras.