tal-ai / fg_cme Goto Github PK
View Code? Open in Web Editor NEWLearning Fine-Grained Cross Modality Excitement for Speech Emotion Recognition
License: Apache License 2.0
Learning Fine-Grained Cross Modality Excitement for Speech Emotion Recognition
License: Apache License 2.0
Hi there!
Great paper and great code! I just have a small question regarding the binary alignment matrix part of the code and paper.
In this part in the main function:
align_info = open(align_path, 'r').readlines()[1:-1] # get rid off the head and tail info
align_info = [re.split('\ +', x) for x in align_info]
align_info = [(x[-1].strip('\n').split('(')[0].lower(),int(x[1]),int(x[2])) for x in align_info]
# For the silence probably we can make some use
align_info = [x for x in align_info if x[0] not in ['<s>','<sil>','</s>']]
align_input = []
for _, begin_time, end_time in align_info:
begin_idx = int(begin_time * 0.01 / 0.01)
end_idx = int(end_time * 0.01 / 0.01) + 1
align_slice = torch.zeros(audio_input.size(0))
align_slice[begin_idx:end_idx] = 1.0
align_input.append(align_slice[None,:])
align_input = torch.cat(align_input, dim=0)
If align info is a generic alignment file with timestamps based on seconds, then I am not sure how begin_idx = int(begin_time * 0.01 / 0.01)
would work. According to my intuition this should probably be:
begin_idx = int(begin_time * sampling_rate / frame_step)
Same question for end_idx
.
Please let me know if there is something wrong in my understanding!
Thank You
Hello, I'm reproducing the code and want to verify it on other datasets. How to get the pkl file specifically? Thanks.
Hello, I want to reproduce this experiment using IEOMCAP. But I am confused how do I organize the dataset properly. How to get glove300d_w2i.pkl, glove300d_full.npy and Session[1-5]-wav.pkl?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.