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
2220de7c
Commit
2220de7c
authored
4 years ago
by
Frisinghelli Daniel
Browse files
Options
Downloads
Patches
Plain Diff
Added enumerations of tested models, optimizers and loss functions
parent
f85ddbc0
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/models.py
+13
-0
13 additions, 0 deletions
pysegcnn/core/models.py
with
13 additions
and
0 deletions
pysegcnn/core/models.py
+
13
−
0
View file @
2220de7c
...
...
@@ -7,11 +7,13 @@ Created on Fri Jun 26 16:31:36 2020
"""
# builtins
import
os
import
enum
# externals
import
numpy
as
np
import
torch
import
torch.nn
as
nn
import
torch.optim
as
optim
# locals
from
pysegcnn.core.layers
import
(
Encoder
,
Decoder
,
Conv2dPool
,
Conv2dUnpool
,
...
...
@@ -139,3 +141,14 @@ class UNet(Network):
# classification
return
self
.
classifier
(
x
)
class
SupportedModels
(
enum
.
Enum
):
Unet
=
UNet
class
SupportedOptimizers
(
enum
.
Enum
):
Adam
=
optim
.
Adam
class
SupportedLossFunctions
(
enum
.
Enum
):
CrossEntropy
=
nn
.
CrossEntropyLoss
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