Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bob
bob.pad.voice
Commits
49aaac1a
Commit
49aaac1a
authored
Sep 27, 2017
by
Pavel KORSHUNOV
Browse files
extending lstm eval
parent
4030ade6
Pipeline
#12812
passed with stages
in 16 minutes
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
bob/pad/voice/algorithm/LSTMEval.py
View file @
49aaac1a
...
...
@@ -121,6 +121,9 @@ class LSTMEval(Algorithm):
# frames = numpy.asarray(frames)
# logger.info(" .... And frames of shape {0} are extracted to pass into DNN model".format(frames.shape))
if
frames
is
None
:
return
None
if
self
.
data_std
:
frames
=
numpy
.
divide
(
frames
-
self
.
data_mean
,
self
.
data_std
)
...
...
@@ -140,6 +143,7 @@ class LSTMEval(Algorithm):
else
:
raise
ValueError
(
"Tensorflow session was not initialized, so cannot project on DNN model!"
)
logger
.
info
(
"Projected scores {0}"
.
format
(
projections
))
return
numpy
.
asarray
(
projections
,
dtype
=
numpy
.
float32
)
def
project
(
self
,
feature
):
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment