-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Description
Hello,
Could you please provide examples comparing your interpolation implementation with, say, https://docs.scipy.org/doc/scipy/reference/generated/scipy.interpolate.griddata.html
Examples such as
H = 256
W = 256
num_x_pts = 10
num_y_pts = 10
interp_obj = interpolation_method(H, W, mode='bilinear')
xx = torch.linspace(0, W, num_x_pts)
yy = torch.linspace(0, H, num_y_pts)
Y_grid, X_grid = torch.meshgrid(yy, xx, indexing='ij')
X = X_grid.reshape(-1)
Y = Y_grid.reshape(-1)
Z = torch.rand(num_y_pts*num_x_pts, )
out = interp_obj.forward(X, Y, Z)
Here, interpolation_method could be your implementation.
Metadata
Metadata
Assignees
Labels
No labels