We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a611d7b + 039ccbf commit 545b1f1Copy full SHA for 545b1f1
egs/gop_speechocean762/s5/local/visualize_feats.py
@@ -8,6 +8,7 @@
8
import random
9
import kaldi_io
10
import seaborn as sns
11
+import numpy as np
12
from collections import Counter
13
from sklearn.manifold import TSNE
14
from utils import load_human_scores, load_phone_symbol_table
@@ -62,6 +63,9 @@ def main():
62
63
min(args.samples, len(lables)))
64
features, lables = list(zip(*sampled_paris))
65
66
+ # Convert the tuple of arrays to a single 2D array
67
+ features = np.vstack(features)
68
+
69
# Draw scatters
70
label_counter = Counter(lables)
71
colors = sns.color_palette("colorblind", len(label_counter))
0 commit comments