yistLin / dvector

Speaker embedding (d-vector) trained with GE2E loss
272 stars 46 forks source link

visualize.py AttributeError: 'list' object has no attribute 'shape' bug #12

Closed abreuwallace closed 1 year ago

abreuwallace commented 1 year ago

Hi,

In visualize.py the method tsne.fit_transform(embs) should receive a numpy array, not a list.

If embs is a list it calls def _fit(self, embs, skip_num_points=0): and the line emb.shape[0] throws the error cited in the PR title.

This PR solves it.

Wallace