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

setting uv = f0 = 0 before normalize? #17

Closed
Cescfangs opened this issue Apr 1, 2022 · 1 comment
Closed

setting uv = f0 = 0 before normalize? #17

Cescfangs opened this issue Apr 1, 2022 · 1 comment

Comments

@Cescfangs
Copy link

Hey guys, I found you set uv = f0 = 0 at line 57, what's the intension behind this?

def norm_interp_f0(f0, pitch_norm='log', f0_mean=None, f0_std=None):
is_torch = isinstance(f0, torch.Tensor)
if is_torch:
device = f0.device
f0 = f0.data.cpu().numpy()
uv = f0 == 0
f0 = norm_f0(f0, uv, pitch_norm, f0_mean, f0_std)

BTW, I found same issue in DiffSinger MoonInTheRiver/DiffSinger#47

@Cescfangs
Copy link
Author

sorry, I'vs missed the ==

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

1 participant