Fix weird dash lines on ImageProjectiveTransformV2#42077
Fix weird dash lines on ImageProjectiveTransformV2#42077Smankusors wants to merge 1 commit intotensorflow:masterfrom
Conversation
|
huh...? It seems that I need to update unit tests at |
Yes |
It's at Hi @Smankusors, if you feel difficult doing tests or don't mind that I take over your job, I can also fix it in #41365. Anyway, feel free to reach out me if there is any problem. |
|
I haven't validated if this fix is correct, but my implementation in addons is tested against scipy (well, just plugin in the tensorflow/addons#1721 |
I think this is very worth fixing -- would you mind taking it here? |
oh yeah damn I pasted a wrong path 😅 hmm I will try do this... Should my transform values be added to the unit tests? |
Yes! You should fix the original one, and probably add some new test cases that will break in current implementation. |
expected output is from the existing test unit |
|
I fix it in #41365. It's because the nearest interpolation will round the coordinate. So for example, for "WRAP" fill mode, |
nice, I suppose I will close this PR because it doesn't work 😅 |



Fixes #41989
So, this is before (look at second row):

and after :

And the script to generate these images is here
Let me know if there's something wrong 😉