Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue while initializing an EmodbDataset #1

Open
mshivasharan opened this issue Feb 5, 2021 · 0 comments
Open

Issue while initializing an EmodbDataset #1

mshivasharan opened this issue Feb 5, 2021 · 0 comments

Comments

@mshivasharan
Copy link

Hello Alan, I have downloaded Emodb and used the code. Please help me with below error.

PS D:\GitHub\alanwuha\torchemotion> python D:\GitHub\alanwuha\torchemotion\datasets\1.py
C:\Users\mshiv\miniconda3\lib\site-packages\torchaudio\extension\extension.py:14: UserWarning: torchaudio C++ extension is not available.
warnings.warn('torchaudio C++ extension is not available.')
C:\Users\mshiv\miniconda3\lib\site-packages\torchaudio\backend\utils.py:63: UserWarning: The interface of "soundfile" backend is planned to change in 0.8.0 to match
that of "sox_io" backend and the current interface will be removed in 0.9.0. To use the new interface, do torchaudio.USE_SOUNDFILE_LEGACY_INTERFACE = False before
setting the backend to "soundfile". Please refer to pytorch/audio#903 for the detail.
warnings.warn(
Traceback (most recent call last):
File "C:\Users\mshiv\miniconda3\lib\site-packages\pandas\core\indexes\base.py", line 3080, in get_loc
return self._engine.get_loc(casted_key)
File "pandas_libs\index.pyx", line 70, in pandas._libs.index.IndexEngine.get_loc
File "pandas_libs\index.pyx", line 101, in pandas._libs.index.IndexEngine.get_loc
File "pandas_libs\hashtable_class_helper.pxi", line 4554, in pandas._libs.hashtable.PyObjectHashTable.get_item
File "pandas_libs\hashtable_class_helper.pxi", line 4562, in pandas._libs.hashtable.PyObjectHashTable.get_item
KeyError: 0

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "D:\GitHub\alanwuha\torchemotion\datasets\1.py", line 7, in
for index, sample in enumerate(emodb_data):
File "D:\GitHub\alanwuha\torchemotion\datasets\EmodbDataset.py", line 47, in getitem
audio_name = os.path.join(self.root, self.df.loc[idx, 'file'])
File "C:\Users\mshiv\miniconda3\lib\site-packages\pandas\core\indexing.py", line 889, in getitem
return self._getitem_tuple(key)
File "C:\Users\mshiv\miniconda3\lib\site-packages\pandas\core\indexing.py", line 1060, in _getitem_tuple
return self._getitem_lowerdim(tup)
File "C:\Users\mshiv\miniconda3\lib\site-packages\pandas\core\indexing.py", line 807, in _getitem_lowerdim
section = self._getitem_axis(key, axis=i)
File "C:\Users\mshiv\miniconda3\lib\site-packages\pandas\core\indexing.py", line 1124, in _getitem_axis
return self._get_label(key, axis=axis)
File "C:\Users\mshiv\miniconda3\lib\site-packages\pandas\core\indexing.py", line 1073, in _get_label
return self.obj.xs(label, axis=axis)
File "C:\Users\mshiv\miniconda3\lib\site-packages\pandas\core\generic.py", line 3738, in xs
loc = index.get_loc(key)
File "C:\Users\mshiv\miniconda3\lib\site-packages\pandas\core\indexes\base.py", line 3082, in get_loc
raise KeyError(key) from err
KeyError: 0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant