Open sbelharbi opened 2 months ago
Hi, the code populates the extracted word-level embedding according to the time stamps and a specific time interval.
Suppose you have N embeddings for N words. Each word was spoken at time step t_i. Your goal is to obtain an TxF feature vectors, so that in every t seconds (like in every 0.01s), there is a F-dimensional feature for it.
We know that N << T, we need to duplicate the embedding for Word N_i to populate all the feature vectors in-between t = N_i-1 and t = N_i. The code did just this.
Once you get the big picture, you may implement your own version. My code is terrible and is restricted by my pipeline.
hi, can you please give some insights on this function?
the code is not documented. it makes it difficult to understand what is being done especially without data of failed previous part of the code. from
abaw5_preprocessing/base/speech.py
:what is this difference:
is sums timestamps with bert features. although, the 2 first components could be something else since the words have been included as first element. but then, the resulting matrix has been modified before being stored.
given a bert feature embedding of size n, 768 where n is the number of tokens. how do you align the embedding to each frame? it seems you use some
idx_nearest
to pick the index of the token to get its corresponding features. but, it is not clear what is 'diff'.thanks