RVC-Project / RVC-Project/Retrieval-based-Voice-Conversion-WebUI

ValueError: 40000 SR doesn't match target 48000 SR

Open
#2,190 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
38.4k
Forks
5.3k
PR merge metrics
No merged PRs in 30d

Description

I get this error when I try to continue training:

Process Process-1:
Traceback (most recent call last):
  File "multiprocessing\process.py", line 315, in _bootstrap
  File "multiprocessing\process.py", line 108, in run
  File "D:\RVC1006Nvidia\infer\modules\train\train.py", line 271, in run
    train_and_evaluate(
  File "D:\RVC1006Nvidia\infer\modules\train\train.py", line 401, in train_and_evaluate
    for batch_idx, info in data_iterator:
  File "D:\RVC1006Nvidia\runtime\lib\site-packages\torch\utils\data\dataloader.py", line 634, in __next__
    data = self._next_data()
  File "D:\RVC1006Nvidia\runtime\lib\site-packages\torch\utils\data\dataloader.py", line 1346, in _next_data
    return self._process_data(data)
  File "D:\RVC1006Nvidia\runtime\lib\site-packages\torch\utils\data\dataloader.py", line 1372, in _process_data
    data.reraise()
  File "D:\RVC1006Nvidia\runtime\lib\site-packages\torch\_utils.py", line 644, in reraise
    raise exception
ValueError: Caught ValueError in DataLoader worker process 0.
Original Traceback (most recent call last):
  File "D:\RVC1006Nvidia\runtime\lib\site-packages\torch\utils\data\_utils\worker.py", line 308, in _worker_loop
    data = fetcher.fetch(index)
  File "D:\RVC1006Nvidia\runtime\lib\site-packages\torch\utils\data\_utils\fetch.py", line 51, in fetch
    data = [self.dataset[idx] for idx in possibly_batched_index]
  File "D:\RVC1006Nvidia\runtime\lib\site-packages\torch\utils\data\_utils\fetch.py", line 51, in <listcomp>
    data = [self.dataset[idx] for idx in possibly_batched_index]
  File "D:\RVC1006Nvidia\infer\lib\train\data_utils.py", line 141, in __getitem__
    return self.get_audio_text_pair(self.audiopaths_and_text[index])
  File "D:\RVC1006Nvidia\infer\lib\train\data_utils.py", line 63, in get_audio_text_pair
    spec, wav = self.get_audio(file)
  File "D:\RVC1006Nvidia\infer\lib\train\data_utils.py", line 101, in get_audio
    raise ValueError(
ValueError: 40000 SR doesn't match target 48000 SR

The problem is that I already tried with 40k and 48k and none of those work, the error always reappears. I also try restarting the pc but it doesn't work

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with infer/lib/train/data_utils.py, especially get_audio and get_audio_text_pair, then trace the call from infer/modules/train/train.py through train_and_evaluate. Reproduce the failure with the reported 40000 and 48000 sample-rate data and inspect how the target rate is selected. Done means supported training data no longer raises the sample-rate mismatch during loading.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, pytorch
Domain
machine-learning
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.