vits
vits copied to clipboard
About ceiling for calculating phoneme duration
Is there any reason to use torch.ceil instead of torch.round or other algorithms for calculating phoneme duration?
Thank you.
Is there any reason to use torch.ceil instead of torch.round or other algorithms for calculating phoneme duration?
Thank you.
if you got a duration 0.3, torch.ceil (0.3)=1, torch.round(0.3)=0.
Thank you for your opinion. but as the implementation, minimum value of duration is 1 because torch.clamp_min is applied.
an extreme case, if you got duration [1.1, 1.1, 1.1, ....], torch.ceil outputs [2, 2, 2, 2, 2....], so this duration is about 2 times longer than model expected.