Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Imports in meta-mms example notebooks need to be updated: np.complex --> complex #5505

Open
kaizengrowth opened this issue Jun 13, 2024 · 0 comments

Comments

@kaizengrowth
Copy link

馃悰 Bug

Example notebooks for meta-mms on Google CoLab fail to import the data_utils library required for loading text to audio.

To Reproduce

Run cell 3. "Load the checkpoint`

Error message given:

AttributeError: module 'numpy' has no attribute 'complex'.
`np.complex` was a deprecated alias for the builtin `complex`. To avoid this error in existing code, use `complex` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.complex128` here.
The aliases was originally deprecated in NumPy 1.20;

Code sample

from data_utils import TextAudioLoader, TextAudioCollate, TextAudioSpeakerLoader, TextAudioSpeakerCollate

Expected behavior

Usage of np.complex inside of data_utils need to be updated to complex or np.complex128 so that this library can be successfully imported.

Environment

Google CoLab notebook

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

No branches or pull requests

1 participant