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
86f3fd1e
Commit
86f3fd1e
authored
4 years ago
by
Frisinghelli Daniel
Browse files
Options
Downloads
Patches
Plain Diff
Improved documentation of available options.
parent
ee41cb57
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pysegcnn/main/config.py
+24
-18
24 additions, 18 deletions
pysegcnn/main/config.py
with
24 additions
and
18 deletions
pysegcnn/main/config.py
+
24
−
18
View file @
86f3fd1e
...
...
@@ -45,7 +45,7 @@ TRG_DS = 'Alcd'
BANDS
=
[
'
red
'
,
'
green
'
,
'
blue
'
,
'
nir
'
,
'
swir1
'
,
'
swir2
'
]
# tile size of a single sample
TILE_SIZE
=
None
TILE_SIZE
=
128
# the source dataset configuration dictionary
src_ds_config
=
{
...
...
@@ -247,33 +247,39 @@ model_config = {
# whether to apply any sort of transfer learning
# if transfer=False, the model is only trained on the source dataset
'
transfer
'
:
True
,
#
'transfer': False
#
'transfer': True,
'
transfer
'
:
False
,
# name of the pretrained model to apply for transfer learning
#
R
equired if supervised=True
#
O
ptional if unsupervised=True
#
r
equired if
transfer=True and
supervised=True
#
o
ptional if
transfer=True and
unsupervised=True
'
pretrained_model
'
:
''
,
# nopep8
# Supervised vs. Unsupervised ---------------------------------------------
# the mode of transfer learning
# supervised=True: fine-tune a pretrained model to the target dataset
# IMPORTANT: this option requires target domain labels!
# supervised=False: adapt a model via unsupervised domain adaptation from
# the source to the target domain
# -------------------------------------------------------------------------
# IMPORTANT: this setting only applies if 'transfer=True'
# if 'transfer=False', supervised is automatically set to True
# -------------------------------------------------------------------------
# supervised=True: the pretrained model defined by 'pretrained_model' is
# trained using labeled data from the specified SOURCE
# dataset ('src_ds_config') only
#
# supervised=False: A model is trained jointly using LABELED data from the
# specified SOURCE ('src_ds_config') dataset and
# UNLABELED data from the specified TARGET dataset
# ('trg_ds_config'). The model is either trained from
# scratch ('uda_from_pretrained=False') or the pretrained
# model in 'pretrained_model' is loaded
# ('uda_from_pretrained=True')
# 'supervised': True,
'
supervised
'
:
False
,
# whether to freeze the pretrained model weights when fine-tuning
# NOTE: this option only works for supervised transfer learning
# if True, only the classification layer is fine-tuned
# if False, all layers are fine-tuned
# whether to freeze the pretrained model weights when using supervised
# transfer learning
'
freeze
'
:
True
,
#
L
oss function for unsupervised domain adaptation
#
C
urrently supported methods:
#
l
oss function for unsupervised domain adaptation
#
c
urrently supported methods:
# - DeepCORAL (correlation alignment)
'
uda_loss
'
:
'
coral
'
,
...
...
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