habla-liaa / ser-with-w2v2

Official implementation of INTERSPEECH 2021 paper 'Emotion Recognition from Speech Using Wav2vec 2.0 Embeddings'
126 stars 23 forks source link

Question about 'paip' and 'dienen' packages #8

Open jiminbot20 opened 3 years ago

jiminbot20 commented 3 years ago

Recently, I'm trying to study your paper and codes, but I couldn't run shell file with following readme.txt.

So I try to run with python step by step with reconstructing your code, but I couldn't understand the exact role of 'paip' and 'dienen' packages which seem like you made by your own.

Could you please explain 'paip' and 'dienen' packages ?

mrpep commented 3 years ago

Which error did you get when following readme.txt? I think it is a bit complicated to run the code step by step.

The idea of paips is that you specify a directed acyclic graph of tasks (DAGs) using a configuration file. It can cache tasks like feature extraction, dataset reading, and has some other nice functionalities to automate experiment tracking and agilize research. In the repository https://github.com/mrpep/paips, there is a tutorial and explanation of how it works.

Dienen is a package to specify neural networks using configuration files. It is also documented in the repository https://github.com/mrpep/dienen.

Columbine21 commented 3 years ago

Hello, when i was using paip packages, I got "ModuleNotFoundError: No module named 'ruamel_yaml'" errors.

when i used pip install ruamel_yaml

I got Requirement already satisfied. @mrpep

edosyhptra commented 3 years ago

Hello, when i was using paip packages, I got "ModuleNotFoundError: No module named 'ruamel_yaml'" errors.

when i used pip install ruamel_yaml

I got Requirement already satisfied. @mrpep

Got the same Error. Did you run on Google Colab?

Columbine21 commented 3 years ago

Hello, when i was using paip packages, I got "ModuleNotFoundError: No module named 'ruamel_yaml'" errors. when i used pip install ruamel_yaml I got Requirement already satisfied. @mrpep

Got the same Error. Did you run on Google Colab?

I have fixed the problem by using conda install on our own server. However, I still think it really inconvenient to use paip and dienen packages for debugging.

mrpep commented 3 years ago

I think that depending on the Python version, different versions of ruamel.yaml are installed, and the way ruamel.yaml is imported has changed from one of those versions. So sometimes it has to be imported as ruamel.yaml and sometimes as ruamel_yaml. Maybe you are not using latest Python versions and an old version of ruamel_yaml was installed. I am planning in using another yaml parser in the future. Another option is adding a try, except when importing ruamel so that both import options are tried.

mrpep commented 2 years ago

The ruamel_yaml problem should be fixed now.