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
9998a37e
Commit
9998a37e
authored
4 years ago
by
Frisinghelli Daniel
Browse files
Options
Downloads
Patches
Plain Diff
Changed default format from png to pdf.
parent
b8030ead
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
pysegcnn/plot/class_distribution.py
+3
-3
3 additions, 3 deletions
pysegcnn/plot/class_distribution.py
pysegcnn/plot/composites.py
+3
-3
3 additions, 3 deletions
pysegcnn/plot/composites.py
pysegcnn/plot/plot_config.py
+4
-5
4 additions, 5 deletions
pysegcnn/plot/plot_config.py
with
10 additions
and
11 deletions
pysegcnn/plot/class_distribution.py
+
3
−
3
View file @
9998a37e
...
...
@@ -22,7 +22,7 @@ from pysegcnn.core.trainer import DatasetConfig
from
pysegcnn.core.graphics
import
plot_class_distribution
from
pysegcnn.core.logging
import
log_conf
from
pysegcnn.plot.plot_config
import
(
PLOT_PATH
,
BANDS
,
FIGSIZE
,
ALPHA
,
DATASETS
,
DPI
)
DATASETS
)
if
__name__
==
'
__main__
'
:
...
...
@@ -42,5 +42,5 @@ if __name__ == '__main__':
fig
=
plot_class_distribution
(
ds
,
FIGSIZE
,
ALPHA
)
# save figure
filename
=
PLOT_PATH
.
joinpath
(
'
{}_sdist.p
ng
'
.
format
(
name
))
fig
.
savefig
(
filename
,
dpi
=
DPI
,
bbox_inches
=
'
tight
'
)
filename
=
PLOT_PATH
.
joinpath
(
'
{}_sdist.p
df
'
.
format
(
name
))
fig
.
savefig
(
filename
,
bbox_inches
=
'
tight
'
)
This diff is collapsed.
Click to expand it.
pysegcnn/plot/composites.py
+
3
−
3
View file @
9998a37e
...
...
@@ -23,7 +23,7 @@ from pysegcnn.core.trainer import DatasetConfig
from
pysegcnn.core.graphics
import
plot_sample
from
pysegcnn.core.logging
import
log_conf
from
pysegcnn.plot.plot_config
import
(
PLOT_PATH
,
BANDS
,
FIGSIZE
,
ALPHA
,
DATASETS
,
PLOT_BANDS
,
DPI
)
DATASETS
,
PLOT_BANDS
)
# module level logger
LOGGER
=
logging
.
getLogger
(
__name__
)
...
...
@@ -57,5 +57,5 @@ if __name__ == '__main__':
alpha
=
ALPHA
,
figsize
=
FIGSIZE
)
# save the figure
fig
.
savefig
(
PLOT_PATH
.
joinpath
(
'
.
'
.
join
([
scene_id
,
'
p
ng
'
])),
dpi
=
DPI
,
bbox_inches
=
'
tight
'
)
fig
.
savefig
(
PLOT_PATH
.
joinpath
(
'
.
'
.
join
([
scene_id
,
'
p
df
'
])),
bbox_inches
=
'
tight
'
)
This diff is collapsed.
Click to expand it.
pysegcnn/plot/plot_config.py
+
4
−
5
View file @
9998a37e
...
...
@@ -29,8 +29,8 @@ if not PLOT_PATH.exists():
# path to the datasets on the current machine
# DRIVE_PATH = pathlib.Path('C:/Eurac/Projects/CCISNOW/Datasets/')
#
DRIVE_PATH = pathlib.Path('F:/Studium/SS 2020/Datasets/')
DRIVE_PATH
=
pathlib
.
Path
(
'
/mnt/CEPH_PROJECTS/cci_snow/dfrisinghelli/Datasets
'
)
# nopep8
DRIVE_PATH
=
pathlib
.
Path
(
'
F:/Studium/SS 2020/Datasets/
'
)
#
DRIVE_PATH = pathlib.Path('/mnt/CEPH_PROJECTS/cci_snow/dfrisinghelli/Datasets') # nopep8
# DRIVE_PATH = pathlib.Path('/home/dfrisinghelli/Datasets')
# name and paths to the datasets
...
...
@@ -42,15 +42,14 @@ DATASETS = {'Sparcs': {'root_dir': DRIVE_PATH.joinpath('Sparcs'),
'
merge_labels
'
:
{
'
Cirrus
'
:
'
Cloud
'
,
'
Not_used
'
:
'
No_data
'
},
'
gt_pattern
'
:
'
(.*)Labels
\\
.tif
'
}
}
}
# spectral bands to plot distribution
BANDS
=
[
'
blue
'
,
'
green
'
,
'
red
'
,
'
nir
'
,
'
swir1
'
,
'
swir2
'
]
# plot parameters
FIGSIZE
=
(
1
6
,
9
)
FIGSIZE
=
(
1
0
,
10
)
ALPHA
=
0.5
DPI
=
300
# natural with atmospheric removal
PLOT_BANDS
=
[
'
swir2
'
,
'
nir
'
,
'
green
'
]
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