Skip to content

Lacking examples #2

@RSKothari

Description

@RSKothari

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions