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

RuntimeError: The expanded size of the tensor (17280) must match the existing size (16080) at non-singleton dimension 1.

Open
#2,186 4 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

训练过程报错并中断:
Traceback (most recent call last):
File "multiprocessing\process.py", line 315, in _bootstrap
File "multiprocessing\process.py", line 108, in run
File "E:\BaiduNetdiskDownload\RVC0813Nvidia\train_nsf_sim_cache_sid_load_pretrain.py", line 228, in run
train_and_evaluate(
File "E:\BaiduNetdiskDownload\RVC0813Nvidia\train_nsf_sim_cache_sid_load_pretrain.py", line 430, in train_and_evaluate
wave = commons.slice_segments(
File "E:\BaiduNetdiskDownload\RVC0813Nvidia\lib\infer_pack\commons.py", line 49, in slice_segments
ret[i] = x[i, :, idx_str:idx_end]
RuntimeError: The expanded size of the tensor (17280) must match the existing size (16080) at non-singleton dimension 1. Target sizes: [1, 17280]. Tensor sizes: [16080]

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 train_nsf_sim_cache_sid_load_pretrain.py at run and train_and_evaluate, then inspect lib/infer_pack/commons.py at slice_segments and reproduce the reported training failure. Determine why the slice produces different lengths, document the cause, and verify that the training path completes without this tensor-size error.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
machine-learning
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.