-
Notifications
You must be signed in to change notification settings - Fork 44
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 value range of guidemap is incorrect. #14
Comments
I too noticed this and simply rescaled the values of |
This better to be tested. cause it's hard to say how grid_sample behave |
ive added bilateral_slice from original repo compiled for jit. But still has some problems with optimization for some reason. |
After some comparison with my customized tri-linear interpolation, which consists of multiple 2D bilinear interpolation, I'm now pretty sure that the second argument to
instead of
Furthermore, elements in The result of my customized slicing oprator is very similar to the
|
I check the PyTorch doc and found that in function
grid_sample
:and
, which means that
guidemap_guide[m, d, h, w]
should be in range[-1, 1]
. In code, you normalizehg
andwg
to[-1, 1]
but keepguidemap
its original value in[0, 1]
. Does it seem thatguidemap
should also be normalized to[-1, 1]
?The text was updated successfully, but these errors were encountered: