babysor / babysor/MockingBird

运行demo_cli出错

Open
#846 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
36.9k
Forks
5.2k
PR merge metrics
No merged PRs in 30d

Description

每次运行都是在进度条快完成时报exception,如:
generate wave
{| ████████████████ 47500/48000 | Batch Size: 5 | Gen Rate: 4.4kHz | }
C:\Users\xxxxx\AppData\Local\Programs\Python\Python310\lib\site-packages\numpy\lib\arraypad.py:736: VisibleDeprecationWarning: Creating an ndarray from ragged nested sequences (which is a list-or-tuple of lists-or-tuples-or ndarrays with different lengths or shapes) is deprecated. If you meant to do this, you must specify 'dtype=object' when creating the ndarray.
array = np.asarray(array)
Caught exception: ValueError('The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()')
Restarting

我把此文件上方的from models.vocoder import inference as vocoder改成了from models.vocoder.wavernn import inference as vocoder(否则import inference会直接报错)

请问这是什么原因呢?谢谢!

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the failure with demo_cli using the shown Python 3.10 environment and capture the complete traceback. Inspect the models/vocoder import paths, especially models.vocoder.wavernn.inference, and trace the array handling associated with the NumPy warning and ambiguous truth-value error. Done means the demo reaches completion without restarting or raising this exception.

Written by the indexing model from the issue text.

Assessment

Tech stack
numpy, python
Domain
ai, machine-learning
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 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.