Commit 808919ea authored by Anthony Larcher's avatar Anthony Larcher
Browse files
parents d8554f63 85c0f1ff
......@@ -487,8 +487,6 @@ class FeaturesServer(object):
feat, label = self.post_processing(feat, label, global_mean, global_std)
else:
feat, label = self.post_processing(feat, label)
if self.mask is not None:
feat = feat[:, self.mask]
return feat, label
......
......@@ -659,8 +659,7 @@ class StatServer:
# Compute 0th-order statistics
self.stat0[idx, :] = pp.sum(0)
# Compute 1st-order statistics
self.stat1[idx, :] = numpy.reshape(numpy.transpose(
numpy.dot(data.transpose(), pp)), ubm.sv_size()).astype(STAT_TYPE)
self.stat1[idx, :] = numpy.reshape(numpy.transpose(numpy.dot(data.transpose(), pp)), ubm.sv_size()).astype(STAT_TYPE)
def get_mean_stat1(self):
"""Return the mean of first order statistics
......
Supports Markdown
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