-
-
Notifications
You must be signed in to change notification settings - Fork 20
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
Applying on typical PyTorch data format #5
Comments
That, is you want to interpolate along e.g. the height dimension? Sure:
Then do interpolation. Batch and width both get treated as batch dimensions, and interpolation is performed along the height dimension. Once you've sampled from the cubic spline, transpose the dimensions back again. |
Actually, I want to do the interpolation along the channel dimension. Namely, the input data is |
Along the channel dimension? Sounds a little odd, but sure.
So in this case, your channel dimension corresponds to Does that make sense? |
Great! Thanks!
|
More or less. The final call to spline.derivative will be evaluated at all the t points, and those were also specified as being the times of the knots in natural_cubic_spline_coeffs, so the values you get out will be the derivative at all of your inputs x. I don't know if that aligns with what you're after exactly. |
Hi,
Is it possible to apply the cubic spline interpolation on one dimension of a data with the data format as in PyTorch
[BatchSize, Channel, Height, Width]
?Thanks
The text was updated successfully, but these errors were encountered: