- 
 Couldn't load subscription status. 
- Fork 24
Labeling image segmentation. #217
-
Hi,
I want to ask about the code, I don't know where to ask since I don't know if it's bug or just my lack of understanding.
I'm using image segmentation template and on data.py there are lines that I don't understand
code-generator/src/templates/template-vision-segmentation/data.py
Lines 32 to 54 in f137219
I guessed it's the categories/classes names, but I can't find any reference to the list target_names, even on the parent classes VOCSegmentation, _VOCBase, VisionDataset, and Dataset.
And that brings the next question, how do I label the segmentation result? There are no link between the label and the image dataset right?
Using CVAT, I got labelmap.txt which contains label and mask color, so I was thinking it's the link, but then I can't find any code reading the file.
So, I'm confused. Could anyone please help me with this?
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions
Good question, concerning target_names this image segmentation template was ported from ref example in ignite where we also plot Confusion Matrix : https://github.com/pytorch/ignite/blob/master/examples/references/segmentation/pascal_voc2012/main.py#L156 
So yes, it is unused in this template.
Target names is basically a map between integer mask indices and names.
Replies: 1 comment 1 reply
-
Good question, concerning target_names this image segmentation template was ported from ref example in ignite where we also plot Confusion Matrix : https://github.com/pytorch/ignite/blob/master/examples/references/segmentation/pascal_voc2012/main.py#L156 
So yes, it is unused in this template.
Target names is basically a map between integer mask indices and names.
Beta Was this translation helpful? Give feedback.
All reactions
-
Thanks for clearing that up. I guess I have to read ignite's ref example. 😰
Beta Was this translation helpful? Give feedback.