PlayVoice / lora-svc

singing voice change based on whisper, and lora for singing voice clone
MIT License
631 stars 78 forks source link

这里可能为空, 如果为空的时候需要跳过 #35

Open kasuganosora opened 1 year ago

kasuganosora commented 1 year ago

https://github.com/PlayVoice/lora-svc/blob/a0dbed19d7857bf36c76cbf73e0c6f25d50a8d6d/svc_preprocess_speaker_lora.py#L39

/content/lora-svc/svc_preprocess_speaker_lora.py:37: RuntimeWarning: Mean of empty slice. speaker_ave = speaker_ave + pitch.mean() /usr/local/lib/python3.9/dist-packages/numpy/core/_methods.py:189: RuntimeWarning: invalid value encountered in true_divide ret = ret.dtype.type(ret / rcount) Traceback (most recent call last): File "/content/lora-svc/svc_preprocess_speaker_lora.py", line 39, in if (speaker_max < pitch.max()): File "/usr/local/lib/python3.9/dist-packages/numpy/core/_methods.py", line 40, in _amax return umr_maximum(a, axis, None, out, keepdims, initial, where) ValueError: zero-size array to reduction operation maximum which has no identity

MaxMax2016 commented 1 year ago

好的,收到