Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PySegCNN
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
earth_observation_public
PySegCNN
Commits
d9a3b557
Commit
d9a3b557
authored
4 years ago
by
Frisinghelli Daniel
Browse files
Options
Downloads
Patches
Plain Diff
Added generic label class
parent
f8a96422
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pysegcnn/core/constants.py
+15
-3
15 additions, 3 deletions
pysegcnn/core/constants.py
with
15 additions
and
3 deletions
pysegcnn/core/constants.py
+
15
−
3
View file @
d9a3b557
...
...
@@ -40,8 +40,20 @@ class Sentinel2(enum.Enum):
swir2
=
12
# generic class label enumeration class
class
Label
(
enum
.
Enum
):
@property
def
id
(
self
):
return
self
.
value
[
0
]
@property
def
color
(
self
):
return
self
.
value
[
1
]
# labels of the Sparcs dataset
class
SparcsLabels
(
enum
.
Enum
):
class
SparcsLabels
(
Label
):
Shadow
=
0
,
'
grey
'
Shadow_over_water
=
1
,
'
darkblue
'
Water
=
2
,
'
blue
'
...
...
@@ -52,13 +64,13 @@ class SparcsLabels(enum.Enum):
# labels of the Cloud95 dataset
class
Cloud95Labels
(
enum
.
Enum
):
class
Cloud95Labels
(
Label
):
Clear
=
0
,
'
skyblue
'
Cloud
=
1
,
'
white
'
# labels of the ProSnow dataset
class
ProSnowLabels
(
enum
.
Enum
):
class
ProSnowLabels
(
Label
):
Cloud
=
0
,
'
white
'
Snow
=
1
,
'
lightblue
'
Snow_free
=
2
,
'
sienna
'
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment