Skip to content

Commit

Permalink
Support #1375: add demo/image_demo.py support for STARE (#1376)
Browse files Browse the repository at this point in the history
* Support #1375: add demo/image_demo.py support for STARE

* Update mmseg/core/evaluation/class_names.py

Co-authored-by: MengzhangLI <[email protected]>

Co-authored-by: MengzhangLI <[email protected]>
  • Loading branch information
CCODING04 and MengzhangLI authored Mar 15, 2022
1 parent a3aab38 commit 3d0c2eb
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion mmseg/core/evaluation/class_names.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,9 @@ def isaid_classes():
'Soccer_ball_field', 'plane', 'Harbor'
]

def stare_classes():
"""stare class names for external use."""
return ['background', 'vessel']

def cityscapes_palette():
"""Cityscapes palette for external use."""
Expand Down Expand Up @@ -254,6 +257,9 @@ def isaid_palette():
[0, 0, 191], [0, 0, 255], [0, 191, 127], [0, 127, 191],
[0, 127, 255], [0, 100, 155]]

def stare_palette():
"""STARE palette for external use."""
return [[120, 120, 120], [6, 230, 230]]

dataset_aliases = {
'cityscapes': ['cityscapes'],
Expand All @@ -267,7 +273,8 @@ def isaid_palette():
'coco-stuff10k', 'coco-stuff164k', 'coco_stuff', 'coco_stuff10k',
'coco_stuff164k'
],
'isaid': ['isaid', 'iSAID']
'isaid': ['isaid', 'iSAID'],
'stare':['stare', 'STARE']
}


Expand Down

0 comments on commit 3d0c2eb

Please sign in to comment.