Open RoversCode opened 4 months ago
In the paper, the final formula for the model is However, the Gaussian kernel is written as follows in the code.
loc = torch.cumsum(_dur_pred, dim=0) - _dur_pred / 2 h = torch.exp( -0.5 * torch.square(t - (l - loc.unsqueeze(-1))) / (1.5) ** 2 )
Why is it t - (l - loc.unsqueeze(-1)) and not t - l - loc.unsqueeze(-1) ? It seems that this does not match the formula shown in the paper. I would like to know the reason and hope to get some replies. Thank you.
I have found a few aspects that do not match the paper. It seems this is from a research codebase that is likely evolving quickly.
In the paper, the final formula for the model is However, the Gaussian kernel is written as follows in the code.
Why is it t - (l - loc.unsqueeze(-1)) and not t - l - loc.unsqueeze(-1) ? It seems that this does not match the formula shown in the paper. I would like to know the reason and hope to get some replies. Thank you.