forked from wkentaro/labelme
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add example of semantic_segmentation
- Loading branch information
Showing
20 changed files
with
1,454 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Semantic Segmentation Example | ||
|
||
## Annotation | ||
|
||
```bash | ||
labelme data_annotated --labels="$(tr '\n' , < labels.txt)" --nodata | ||
``` | ||
|
||
![](.readme/annotation.jpg) | ||
|
||
|
||
## Convert to VOC-like Dataset | ||
|
||
```bash | ||
# It generates: | ||
# - data_dataset_voc/JPEGImages | ||
# - data_dataset_voc/SegmentationClass | ||
# - data_dataset_voc/SegmentationClassVisualization | ||
./labelme2voc.py labels.txt data_annotated data_dataset_voc | ||
``` | ||
|
||
<img src="data_dataset/JPEGImages/2011_000003.jpg" width="33%" /> <img src="data_dataset/SegmentationClass/2011_000003.png" width="33%" /> <img src="data_dataset/SegmentationClassVisualization/2011_000003.jpg" width="33%" /> | ||
|
||
Fig 1. JPEG image (left), PNG label (center), JPEG label visualization (right) | ||
*Note that the reason why the label file is mostly black is it contains only very low label values (ex. `-1, 0, 4, 14`).* |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.