Commit 49aaac1a authored by Pavel KORSHUNOV's avatar Pavel KORSHUNOV

extending lstm eval

parent 4030ade6
Pipeline #12812 passed with stages
in 16 minutes
......@@ -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):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment