-
Notifications
You must be signed in to change notification settings - Fork 74.3k
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
Weird dash lines on ImageProjectiveTransformV2 #41989
Comments
I have tried in colab with TF version 2.3, nightly version( |
@Smankusors Have you tried to check coordinates calcs in https://github.com/tensorflow/tensorflow/blob/master/tensorflow/core/kernels/image_ops.h? |
yea but unfortunately I can't quite understand it. It's the |
Ok let me know if you will find something in the meantine. |
@Smankusors As you have already some example code can you try to add a small PR to extend or add a test in https://github.com/tensorflow/tensorflow/blob/master/tensorflow/python/ops/image_ops_test.py to let to cover you error? |
huh... sure.... but currently I don't know what RGB values should be filled on that dash lines 😕 |
/cc @WindQAQ @tanzhenyu Are we using any reference impl to compare these image ops outputs (e.g. PIL etc..)? |
@Smankusors Can I ask you how you have formed the transformation matrix in the example? |
it's random combination of
where each of them have 50% chance |
alright I just get this compiled after encountering this issue (#42066). it seems the fix is simple, only put -1 somewhere in the code. And the dash lines is gone. 😲 Although........ I don't fully understand the code yet... |
Fixed by 86276ae |
@Smankusors Please let me know if there is any further problem. Thanks 😃 |
System information
Describe the current behavior
I used these transform values
but the resulting images got.... weird dash lines. To view the images, you can open my notebook from link on the standalone code section.
Describe the expected behavior
It should be seamless without weird lines?
Standalone code to reproduce the issue
https://colab.research.google.com/drive/1z6zDhE6ikQr-aYHluxvlrpOhriztOmB0?usp=sharing
Other question
tensorflow/tensorflow/core/kernels/image_ops.cc
Lines 61 to 83 in 4910e8e
Also is this is only logging? It's not stopping me entering random string into
fill_mode
andinterpolation
parameters?Speculation
My speculation is, it seems like the code responsible for map the coordinate miss by 1 pixel? I tried to understand
image_ops
code but I don't get which one it is.The text was updated successfully, but these errors were encountered: