CosyVoice icon indicating copy to clipboard operation
CosyVoice copied to clipboard

KeyError: "tag" when running examples/libritts/cosyvoice/run.sh

Open GrahamHuang3 opened this issue 1 year ago • 4 comments

Dingtalk_20241213170543 I have prepared train data and execute run.sh, but it says KeyError about "tag". I see this key has a fixed value called "TRAIN" or "CV" in executor.py, but why it reports KeyError?....... Any solutions?

GrahamHuang3 avatar Dec 13 '24 09:12 GrahamHuang3

your training data is all filtered, check your training data

aluminumbox avatar Dec 14 '24 09:12 aluminumbox

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] avatar Jan 14 '25 01:01 github-actions[bot]

is this solved?

jokerlj92 avatar Jun 15 '25 14:06 jokerlj92

In my situation, the original WAV file had a low sample rate. However, during data processing, the sample rate was constrained, leading to the loss of valid data after processing.

To address this, you can:

  1. Increase the sample rate of the raw WAV file.

  2. Adjust the sample rate filter threshold parameter in ./cosyvoice/dataset/processor.py def resample(data, resample_rate=22050, min_sample_rate=16000, mode='train'): # min_sample_rate = xx

doingscu avatar Sep 24 '25 07:09 doingscu