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

NameError: name 'joblib' is not defined #5

Closed jiminbot20 closed 3 years ago

jiminbot20 commented 3 years ago

https://github.com/habla-liaa/ser-with-w2v2/blob/f3983fa0caaa122b69e549f1e558d17538001c81/tasks/normalize.py#L57

Traceback (most recent call last): File "/opt/conda/bin/paiprun", line 8, in sys.exit(main()) File "/opt/conda/lib/python3.8/site-packages/paips/run_paips.py", line 50, in main main_task.run() File "/opt/conda/lib/python3.8/site-packages/paips/core.py", line 459, in run out_dict = self.serial_run(run_async=run_async) File "/opt/conda/lib/python3.8/site-packages/paips/core.py", line 346, in __serial_run outs = self.process() File "/opt/conda/lib/python3.8/site-packages/paips/core.py", line 654, in process out_dict = task.run() File "/opt/conda/lib/python3.8/site-packages/paips/core.py", line 459, in run out_dict = self.serial_run(run_async=run_async) File "/opt/conda/lib/python3.8/site-packages/paips/core.py", line 346, in serial_run outs = self.process() File "/opt/conda/lib/python3.8/site-packages/paips/core.py", line 654, in process out_dict = task.run() File "/opt/conda/lib/python3.8/site-packages/paips/core.py", line 471, in run out_dict = self.__serial_map(iteration=iteration,run_async=run_async) File "/opt/conda/lib/python3.8/site-packages/paips/core.py", line 395, in serial_map outs.append(self.serial_run(run_async=run_async)) File "/opt/conda/lib/python3.8/site-packages/paips/core.py", line 346, in __serial_run outs = self.process() File "/opt/conda/lib/python3.8/site-packages/paips/core.py", line 654, in process out_dict = task.run() File "/opt/conda/lib/python3.8/site-packages/paips/core.py", line 459, in run out_dict = self.serial_run(run_async=run_async) File "/opt/conda/lib/python3.8/site-packages/paips/core.py", line 346, in __serial_run outs = self.process() File "/home/emotion/w2v/tasks/normalize.py", line 85, in process data_i = joblib.load(data_i) NameError: name 'joblib' is not defined

There's no 'joblib', it should be imported at the top.

import joblib

this fixed error.

mrpep commented 3 years ago

Thanks! Solved with commit c9be8a9bc8c6c6969838e3e77c2fc8af10e27136