Commit 1d52441e authored by Sulfyderz's avatar Sulfyderz
Browse files

[Error Update]:Matching the StatServer method signature from sidekit with s4d.

parent ea798b80
......@@ -67,7 +67,8 @@ class ModelIV:
print('sn_cov: ', self.sn_cov.shape)
def train(self, feature_server, idmap, normalization=True):
stat = StatServer(idmap, self.ubm)
#stat = StatServer(idmap, self.ubm)
stat = StatServer(idmap, distrib_nb=self.ubm.distrib_nb(), feature_size=self.ubm.dim())
stat.accumulate_stat(ubm=self.ubm, feature_server=feature_server, seg_indices=range(stat.segset.shape[0]), num_thread=self.nb_thread)
stat = stat.sum_stat_per_model()[0]
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