处理数据的时候报这个问题
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 20/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- python
- Domain
- machine-learning
Research direction
Start with data_gen/tts/data_gen_utils.py at get_pitch, where the traceback reaches np.pad, then trace the inputs from data_gen/singing/binarize.py. Reproduce the failure with the reported data and determine which padding calculation becomes negative; done means the failing case is explained and the correction is covered by a suitable regression test.
Written by the indexing model from the issue text.
Description
Traceback (most recent call last):
File "/mnt/d/workspace/DiffSinger-master/utils/multiprocess_utils.py", line 13, in chunked_worker
res = map_func(*arg)
File "/mnt/d/workspace/DiffSinger-master/data_gen/singing/binarize.py", line 382, in process_item
cls.get_pitch(wav_fn, wav, mel, ph, res)
File "/mnt/d/workspace/DiffSinger-master/data_gen/singing/binarize.py", line 364, in get_pitch
gt_f0, gt_pitch_coarse = get_pitch(wav, spec, hparams)
File "/mnt/d/workspace/DiffSinger-master/data_gen/tts/data_gen_utils.py", line 174, in get_pitch
f0 = np.pad(f0, [[lpad, rpad]], mode='constant')
File "<array_function internals>", line 200, in pad
File "/home/wjc/anaconda3/envs/svc/lib/python3.8/site-packages/numpy/lib/arraypad.py", line 744, in pad
pad_width = _as_pairs(pad_width, array.ndim, as_index=True)
File "/home/wjc/anaconda3/envs/svc/lib/python3.8/site-packages/numpy/lib/arraypad.py", line 510, in _as_pairs
raise ValueError("index can't contain negative values")
ValueError: index can't contain negative values
- Dominant language
- Python
- Stars
- 4.9k
- Forks
- 826
- PR merge metrics
- No merged PRs in 30d
Getting set up
We have not checked this project's setup files yet. Start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from MoonInTheRiver/DiffSinger
-
seda ziya testOpen
Difficulty 5/5 Over a week Newbie friendliness 1/100
MoonInTheRiver/DiffSinger#115 · 1 reaction ·
-
forro/piseiroOpen
Difficulty 3/5 1-2 days Newbie friendliness 25/100
MoonInTheRiver/DiffSinger#114 ·
-
运行时配置文件不完整Open
Difficulty 4/5 3-5 days Newbie friendliness 20/100
MoonInTheRiver/DiffSinger#113 · 1 comment ·
-
Difficulty 5/5 Over a week Newbie friendliness 20/100
MoonInTheRiver/DiffSinger#112 ·
-
如何推理生成音频Open
Difficulty 5/5 Over a week Newbie friendliness 10/100
MoonInTheRiver/DiffSinger#111 · 1 comment ·
All issues in MoonInTheRiver/DiffSinger
Similar issues
-
needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
openvinotoolkit/openvino_notebooks#3665 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
Maintainers usually reply within 1 day
-
docs
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Maintainers usually reply within 1 day
-
benchmark-gap
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day