Giter Club home page Giter Club logo

speechformer's People

Contributors

happycolor avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

speechformer's Issues

RuntimeError: Given normalized_shape=[96], expected input with shape [*, 96], but got input of size[1, 101, 76]

File "train_model_new.py", line 173, in test
pred_logits = initail_model(features)
File "/home/kaldi/.local/lib/python3.7/site-packages/torch/nn/modules/module.py", line 727, in _call_impl
result = self.forward(*input, **kwargs)
File "/data4/rj/SpeechFormer/model/speechformer.py", line 122, in forward
x = self.layers(x).squeeze(dim=1)
File "/home/kaldi/.local/lib/python3.7/site-packages/torch/nn/modules/module.py", line 727, in _call_impl
result = self.forward(*input, **kwargs)
File "/home/kaldi/.local/lib/python3.7/site-packages/torch/nn/modules/container.py", line 117, in forward
input = module(input)
File "/home/kaldi/.local/lib/python3.7/site-packages/torch/nn/modules/module.py", line 727, in _call_impl
result = self.forward(*input, **kwargs)
File "/data4/rj/SpeechFormer/model/speechformer.py", line 83, in forward
output = self.input_norm(x)
File "/home/kaldi/.local/lib/python3.7/site-packages/torch/nn/modules/module.py", line 727, in _call_impl
result = self.forward(input, **kwargs)
File "/home/kaldi/.local/lib/python3.7/site-packages/torch/nn/modules/normalization.py", line 170, in forward
input, self.normalized_shape, self.weight, self.bias, self.eps)
File "/home/kaldi/.local/lib/python3.7/site-packages/torch/nn/functional.py", line 2095, in layer_norm
torch.backends.cudnn.enabled)
RuntimeError: Given normalized_shape=[96], expected input with shape [
, 96], but got input of size[1, 101, 76]

因为代码里使用model_json['input_dim'] = (self.feat_dim // model_json['num_heads']) * model_json['num_heads']
在推理的时候会报上述错误,这个您有遇到吗?谢谢

Hi, I'm having an overfit problem

I ran your code on the DAIC data set, the model is SpeechFormer-S, the audio features are logmel, and there is overfitting. Specifically, the loss in the training phase can be reduced, but the loss in the testing phase is getting higher and higher. Could you please give me some suggestions?

Hi. Can you upload the code that generates ".csv"?

Hi. Can you upload the code that generates the .csv?

Note that you should create a metadata file (.csv format) for each dataset to record the name and label (and state, e.g. train or dev or test) of the samples. Then modify the argument: meta_csv_file in ./config/xxx_feature_config.json according to the absolute path of the corresponding .csv file.

model is not working

after i did everything you told me to do
i got this message after running train_model.py:
Use arguments from command line: []
Use arguments from train json file: ['train.EPOCH', 60, 'train.batch_size', 16, 'train.lr', 0.0005]
Modified mark: L2244_expa111
Use GPU: 0
world_size=0 Using dist_url=tcp://127.0.0.1:1869

and i dont have any .mat file and model is not working
what should i do to solve this?

能提供数据预处理的代码吗?

你好,不同数据集的结构是不一样的,你能提供怎么把不同的数据集的音频文件整合到对应的音频文件夹wav_file中以及其音频文件所对应的label的代码吗?

F1 was only 0.603

Thank you for your research, I am trying to reproduce your results. I cut the DAIC-WOZ database according to your standards, then extracted the wav2vec features, and used the meta-feature file you provided for training, but the final F1 was only 0.603, Where do you think the problem may occur? In addition, when preprocessing the data, did you eliminate the voice of the virtual agent and only retain the voice of the subject?

Audio Segmentation: Rules and Procedure

Hi,
Thanks for sharing the codebase.

For DAIC-WOZ, the example metadata csv file has a mid-tag for each audio name which I assume they are different segments. Is it possible to share the audio segmentation scripts / procedures? Since for similar reproduction purpose, statistics of segment feed into the model is really crucial.

extract_wav2vec.py pre_trained model problem

Hi,
I want to extract features by extract_wav2vec.py code and I've selected a lot of pre-trained wav2vec models but all of them had problem. For example while I am using https://dl.fbaipublicfiles.com/fairseq/wav2vec/vq-wav2vec_kmeans.pt model from https://github.com/facebookresearch/fairseq/tree/main/examples/wav2vec site. I have this problem:
if cfg.activation == "relu":
AttributeError: 'Namespace' object has no attribute 'activation'

And for other models I give similar error about args.

How can I solve it ?
Thanks.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.