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

some bugs #7

Open
MrYANG23 opened this issue Oct 20, 2021 · 3 comments
Open

some bugs #7

MrYANG23 opened this issue Oct 20, 2021 · 3 comments

Comments

@MrYANG23
Copy link

f0 = remove_outlier(f0)

the remove_outlier here return none
image
and in line 51,52:
list indices must be integers or slices, not list

@guoaoo
Copy link

guoaoo commented Nov 27, 2021

x = np.array(x)

code

return x.to_list()

@hcy71o
Copy link

hcy71o commented May 4, 2022

Revise the code as below
in preprocessors/libritts.py
BEFORE
if len([f for f in f0 if f != 0]) ==0 or len([e for e in energy if e != 0]):
AFTER
if len([f for f in f0 if f != 0]) ==0 or len([e for e in energy if e != 0])==0:

@fish0131
Copy link

When I ran the preprocess.py, I would get this error: IndexError: cannot do a non-empty take from an empty axes.

Traceback (most recent call last):
File "preprocess.py", line 54, in
main(preprocessor, args.data_path, args.output_path)
File "preprocess.py", line 39, in main
datas = preprocessor.build_from_path(data_dir, out_dir)
File "/media/fish-bsp/fish_4TB/Audio/StyleSpeech-main/preprocessors/libritts.py", line 132, in build_from_path
f0 = remove_outlier(f0)

How can I revise the code to let it run successfully? Thanks.

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

4 participants