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

Error in evaluateFromList() from SpeakerNet.py #150

Closed
gems047 opened this issue Apr 20, 2022 · 1 comment
Closed

Error in evaluateFromList() from SpeakerNet.py #150

gems047 opened this issue Apr 20, 2022 · 1 comment

Comments

@gems047
Copy link

gems047 commented Apr 20, 2022

Am training below and getting error
python ./trainSpeakerNet.py --model VGGVox --log_input True --encoder_type SAP --trainfunc angleproto --save_path exps/exp2 --nClasses 5994 --batch_size 200

Looks like test audios in test_list are not getting accepted. provided similar path and format (.wav) for dev(train_list) and test(test_list)

Error:

File "/voxceleb_trainer/SpeakerNet.py", line 182, in evaluateFromList
for idx, data in enumerate(test_loader):
File "/miniconda3/envs/voxpy37/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 530, in next
data = self._next_data()
File "/miniconda3/envs/voxpy37/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 1224, in _next_data
return self._process_data(data)
File "/miniconda3/envs/voxpy37/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 1250, in _process_data
data.reraise()
File "/miniconda3/envs/voxpy37/lib/python3.7/site-packages/torch/_utils.py", line 457, in reraise
raise exception
RuntimeError: Caught RuntimeError in DataLoader worker process 0.
Original Traceback (most recent call last):
File "/miniconda3/envs/voxpy37/lib/python3.7/site-packages/torch/utils/data/_utils/worker.py", line 287, in _worker_loop
data = fetcher.fetch(index)
File "/miniconda3/envs/voxpy37/lib/python3.7/site-packages/torch/utils/data/_utils/fetch.py", line 49, in fetch
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/miniconda3/envs/voxpy37/lib/python3.7/site-packages/torch/utils/data/_utils/fetch.py", line 49, in
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/voxceleb_trainer/DatasetLoader.py", line 179, in getitem
audio = loadWAV(os.path.join(self.test_path,self.test_list[index]), self.max_frames, evalmode=True, num_eval=self.num_eval)
File "/voxceleb_trainer/DatasetLoader.py", line 32, in loadWAV
audio, sample_rate = soundfile.read(filename)
File "/miniconda3/envs/voxpy37/lib/python3.7/site-packages/soundfile.py", line 257, in read
subtype, endian, format, closefd) as f:
File "/miniconda3/envs/voxpy37/lib/python3.7/site-packages/soundfile.py", line 629, in init
self._file = self._open(file, mode_int, closefd)
File "/miniconda3/envs/voxpy37/lib/python3.7/site-packages/soundfile.py", line 1184, in _open
"Error opening {0!r}: ".format(self.name))

File "/miniconda3/envs/voxpy37/lib/python3.7/site-packages/soundfile.py", line 1357, in _error_check
raise RuntimeError(prefix + _ffi.string(err_str).decode('utf-8', 'replace'))
RuntimeError: Error opening '/voxceleb_trainer/data/voxceleb1/id00685': File contains data in an unknown format.

@Jungjee
Copy link
Collaborator

Jungjee commented Jul 1, 2022

I checked and modified in #154. Please check out this version.

@Jungjee Jungjee closed this as completed Jul 1, 2022
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

2 participants