You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So I noticed something strange while running tests for grayscale. Passing sample through our AugmentationSequential is changing the value of sample["image"] to be equal to that of output["image"].
Steps to reproduce
In theory, the following change should allow the test to pass but it does not.
Passing sample through our AugmentationSequential is changing the value of sample["image"] to be equal to that of output["image"].
This looks like a bug in our AugmentationSequential wrapper. The upstream Kornia implementation does not suffer from this bug. This can be tested with:
In theory, the following change should allow the test to pass but it does not.
Actually, and fully realizing that I was the one who wrote these tests, I see no reason why these tests should pass. As an example, imagine an image with 3 channels. The first channel is white (255). All other channels are black (0). If we use weights=[0, 0, 1] or weights=[1, 0, 0], we will see completely different outputs (all black in the first case, same image in the second case). I actually think we should remove the test for having the same sum at the end.
Description
So I noticed something strange while running tests for grayscale. Passing sample through our
AugmentationSequential
is changing the value ofsample["image"]
to be equal to that ofoutput["image"]
.Steps to reproduce
In theory, the following change should allow the test to pass but it does not.
But this throws the following errors:
Version
0.6.0.dev0 (abceea0)
The text was updated successfully, but these errors were encountered: