Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
deepOF
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lucas Miranda
deepOF
Commits
4316e209
Commit
4316e209
authored
Nov 25, 2020
by
Lucas Miranda
Browse files
Options
Downloads
Patches
Plain Diff
Updated default GMVAE models
parent
8e546668
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Pipeline
#87811
failed
Nov 25, 2020
Stage: test
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
deepof/models.py
+7
-0
7 additions, 0 deletions
deepof/models.py
deepof/train_model.py
+1
-1
1 addition, 1 deletion
deepof/train_model.py
with
8 additions
and
1 deletion
deepof/models.py
+
7
−
0
View file @
4316e209
...
@@ -249,6 +249,7 @@ class SEQ_2_SEQ_GMVAE:
...
@@ -249,6 +249,7 @@ class SEQ_2_SEQ_GMVAE:
self
.
dense_activation
=
dense_activation
self
.
dense_activation
=
dense_activation
self
.
LSTM_units_1
=
self
.
hparams
[
"
units_lstm
"
]
self
.
LSTM_units_1
=
self
.
hparams
[
"
units_lstm
"
]
self
.
LSTM_units_2
=
int
(
self
.
hparams
[
"
units_lstm
"
]
/
2
)
self
.
LSTM_units_2
=
int
(
self
.
hparams
[
"
units_lstm
"
]
/
2
)
self
.
LSTM_unroll
=
True
self
.
DENSE_1
=
int
(
self
.
hparams
[
"
units_lstm
"
]
/
2
)
self
.
DENSE_1
=
int
(
self
.
hparams
[
"
units_lstm
"
]
/
2
)
self
.
DENSE_2
=
self
.
hparams
[
"
units_dense2
"
]
self
.
DENSE_2
=
self
.
hparams
[
"
units_dense2
"
]
self
.
DROPOUT_RATE
=
self
.
hparams
[
"
dropout_rate
"
]
self
.
DROPOUT_RATE
=
self
.
hparams
[
"
dropout_rate
"
]
...
@@ -344,6 +345,7 @@ class SEQ_2_SEQ_GMVAE:
...
@@ -344,6 +345,7 @@ class SEQ_2_SEQ_GMVAE:
activation
=
"
tanh
"
,
activation
=
"
tanh
"
,
recurrent_activation
=
"
sigmoid
"
,
recurrent_activation
=
"
sigmoid
"
,
return_sequences
=
True
,
return_sequences
=
True
,
unroll
=
self
.
lstm_unroll
,
# kernel_constraint=UnitNorm(axis=0),
# kernel_constraint=UnitNorm(axis=0),
use_bias
=
True
,
use_bias
=
True
,
)
)
...
@@ -354,6 +356,7 @@ class SEQ_2_SEQ_GMVAE:
...
@@ -354,6 +356,7 @@ class SEQ_2_SEQ_GMVAE:
activation
=
"
tanh
"
,
activation
=
"
tanh
"
,
recurrent_activation
=
"
sigmoid
"
,
recurrent_activation
=
"
sigmoid
"
,
return_sequences
=
False
,
return_sequences
=
False
,
unroll
=
self
.
lstm_unroll
,
# kernel_constraint=UnitNorm(axis=0),
# kernel_constraint=UnitNorm(axis=0),
use_bias
=
True
,
use_bias
=
True
,
)
)
...
@@ -397,6 +400,7 @@ class SEQ_2_SEQ_GMVAE:
...
@@ -397,6 +400,7 @@ class SEQ_2_SEQ_GMVAE:
activation
=
"
tanh
"
,
activation
=
"
tanh
"
,
recurrent_activation
=
"
sigmoid
"
,
recurrent_activation
=
"
sigmoid
"
,
return_sequences
=
True
,
return_sequences
=
True
,
unroll
=
self
.
lstm_unroll
,
# kernel_constraint=UnitNorm(axis=1),
# kernel_constraint=UnitNorm(axis=1),
use_bias
=
True
,
use_bias
=
True
,
)
)
...
@@ -407,6 +411,7 @@ class SEQ_2_SEQ_GMVAE:
...
@@ -407,6 +411,7 @@ class SEQ_2_SEQ_GMVAE:
activation
=
"
sigmoid
"
,
activation
=
"
sigmoid
"
,
recurrent_activation
=
"
sigmoid
"
,
recurrent_activation
=
"
sigmoid
"
,
return_sequences
=
True
,
return_sequences
=
True
,
unroll
=
self
.
lstm_unroll
,
# kernel_constraint=UnitNorm(axis=1),
# kernel_constraint=UnitNorm(axis=1),
use_bias
=
True
,
use_bias
=
True
,
)
)
...
@@ -425,6 +430,7 @@ class SEQ_2_SEQ_GMVAE:
...
@@ -425,6 +430,7 @@ class SEQ_2_SEQ_GMVAE:
activation
=
"
tanh
"
,
activation
=
"
tanh
"
,
recurrent_activation
=
"
sigmoid
"
,
recurrent_activation
=
"
sigmoid
"
,
return_sequences
=
True
,
return_sequences
=
True
,
unroll
=
self
.
lstm_unroll
,
# kernel_constraint=UnitNorm(axis=1),
# kernel_constraint=UnitNorm(axis=1),
use_bias
=
True
,
use_bias
=
True
,
)
)
...
@@ -435,6 +441,7 @@ class SEQ_2_SEQ_GMVAE:
...
@@ -435,6 +441,7 @@ class SEQ_2_SEQ_GMVAE:
activation
=
"
tanh
"
,
activation
=
"
tanh
"
,
recurrent_activation
=
"
sigmoid
"
,
recurrent_activation
=
"
sigmoid
"
,
return_sequences
=
True
,
return_sequences
=
True
,
unroll
=
self
.
lstm_unroll
,
# kernel_constraint=UnitNorm(axis=1),
# kernel_constraint=UnitNorm(axis=1),
use_bias
=
True
,
use_bias
=
True
,
)
)
...
...
...
...
This diff is collapsed.
Click to expand it.
deepof/train_model.py
+
1
−
1
View file @
4316e209
...
@@ -12,8 +12,8 @@ usage: python -m examples.model_training -h
...
@@ -12,8 +12,8 @@ usage: python -m examples.model_training -h
from
deepof.data
import
*
from
deepof.data
import
*
from
deepof.models
import
*
from
deepof.models
import
*
from
deepof.utils
import
*
from
deepof.utils
import
*
from
deepof.train_utils
import
*
from
tensorflow
import
keras
from
tensorflow
import
keras
from
train_utils
import
*
parser
=
argparse
.
ArgumentParser
(
parser
=
argparse
.
ArgumentParser
(
description
=
"
Autoencoder training for DeepOF animal pose recognition
"
description
=
"
Autoencoder training for DeepOF animal pose recognition
"
...
...
...
...
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
sign in
to comment