-
Notifications
You must be signed in to change notification settings - Fork 4
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
the function: grid_sample in pytorch #1
Comments
No, I have been going through |
I tried grid_sample and it works for me as follows:
|
@scholltan how to make a field flow(grid) when the input image is 4D? According to doc: |
@alwynmathew according to my understanding, pixel_coords need to be the shape of # [B, H, W, 3], that Z_norm is added into just like X_norm and Y_norm. I did not try it. |
Instead of making the grid in range (0, h) then converting to (-1,+1):
why cant we make the grid in (-1,+1) range directly like this:
|
In line 14 of bilinear.py there might still be an error. Possibly it could be corrected to: I have tried the above and now get similar results (at least visually). Numerically, I no longer get highly underestimated depth values. |
hi,did you try the new function grid_sample in pytorch to implement the same effect?
The text was updated successfully, but these errors were encountered: