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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deepspeech error #117

Open
G-force78 opened this issue May 12, 2024 · 3 comments
Open

deepspeech error #117

G-force78 opened this issue May 12, 2024 · 3 comments

Comments

@G-force78
Copy link

Traceback (most recent call last):
File "/content/SyncTalk/data_utils/deepspeech_features/extract_ds_features.py", line 131, in
main()
File "/content/SyncTalk/data_utils/deepspeech_features/extract_ds_features.py", line 107, in main
extract_features(
File "/content/SyncTalk/data_utils/deepspeech_features/extract_ds_features.py", line 80, in extract_features
conv_audios_to_deepspeech(
File "/content/SyncTalk/data_utils/deepspeech_features/deepspeech_features.py", line 53, in conv_audios_to_deepspeech
ds_features = pure_conv_audio_to_deepspeech(
File "/content/SyncTalk/data_utils/deepspeech_features/deepspeech_features.py", line 144, in pure_conv_audio_to_deepspeech
x=audio.astype(np.float),
File "/usr/local/lib/python3.10/dist-packages/numpy/init.py", line 319, in getattr
raise AttributeError(former_attrs[attr])
AttributeError: module 'numpy' has no attribute 'float'.
np.float was a deprecated alias for the builtin float. To avoid this error in existing code, use float by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use np.float64 here.
The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at:
https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations. Did you mean: 'cfloat'?

@G-force78
Copy link
Author

G-force78 commented May 12, 2024

SyncTalk/workspace/10.npy: Invalid data found when processing input
Then processed another from scratch and got same error

parser.add_argument('--aud', type=str, default='', help="audio source (empty will load the default, else should be a path to a npy file)")

aud_ds.npy: Invalid data found when processing input

sorry but this implemenattion is just full of errors every step of the way

@hereTac
Copy link

hereTac commented May 13, 2024

File "/content/SyncTalk/data_utils/deepspeech_features/deepspeech_features.py", line 14
Change the code as below way

# x=audio.astype(np.float),
x=audio.astype(float),

@hereTac
Copy link

hereTac commented May 13, 2024

SyncTalk/workspace/10.npy: Invalid data found when processing input Then processed another from scratch and got same error

parser.add_argument('--aud', type=str, default='', help="audio source (empty will load the default, else should be a path to a npy file)")

aud_ds.npy: Invalid data found when processing input

sorry but this implemenattion is just full of errors every step of the way

ISSUE #113

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

No branches or pull requests

2 participants