Skip to content

Fix: AttributeError for numpy.ndarray in omnivoice_engine#375

Open
becksanswerr wants to merge 1 commit into
KoljaB:masterfrom
becksanswerr:fix-omnivoice-numpy-error
Open

Fix: AttributeError for numpy.ndarray in omnivoice_engine#375
becksanswerr wants to merge 1 commit into
KoljaB:masterfrom
becksanswerr:fix-omnivoice-numpy-error

Conversation

@becksanswerr
Copy link
Copy Markdown

When using OmniVoice, the synthesis process crashes with AttributeError: 'numpy.ndarray' object has no attribute 'cpu' because the model already returns a numpy array. I added a simple hasattr check to safely handle both tensors and numpy arrays.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant