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
854ffb6f
Commit
854ffb6f
authored
4 years ago
by
Frisinghelli Daniel
Browse files
Options
Downloads
Patches
Plain Diff
Changed naming convention.
parent
83eaba9d
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
+5
-5
5 additions, 5 deletions
pysegcnn/core/models.py
with
5 additions
and
5 deletions
pysegcnn/core/models.py
+
5
−
5
View file @
854ffb6f
...
...
@@ -45,7 +45,7 @@ class Network(nn.Module):
state_file : `str` or `None` or :py:class:`pathlib.Path`
The model state file, where the model parameters are saved.
in_channels : `int`
Number of
channels of the input imag
es.
Number of
input featur
es.
nclasses : `int`
Number of classes.
epoch : `int`
...
...
@@ -61,7 +61,7 @@ class Network(nn.Module):
state_file : `str` or `None` or :py:class:`pathlib.Path`
The model state file, where the model parameters are saved.
in_channels : `int`
Number of
channels of the input imag
es.
Number of
input featur
es.
nclasses : `int`
Number of classes.
...
...
@@ -304,8 +304,8 @@ class Network(nn.Module):
return
model
,
optimizer
class
EncoderDecoderNetwork
(
Network
):
"""
Generic convolutional encoder
-decoder network
.
class
ConvolutionalAutoEncoder
(
Network
):
"""
Generic convolutional
auto
encoder.
Attributes
----------
...
...
@@ -413,7 +413,7 @@ class EncoderDecoderNetwork(Network):
return
self
.
classifier
(
x
)
class
SegNet
(
EncoderDecoderNetwork
):
class
SegNet
(
ConvolutionalAutoEncoder
):
"""
An implementation of `SegNet`_ in PyTorch.
.. _SegNet:
...
...
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