🐍 Geometric Computer Vision Library for Spatial AI
Python artificial-intelligencecomputer-visiondeep-learninghacktoberfestimage-processingmachine-learningneural-networkpythonpytorchroboticsspatial-ai
xfail TestRandAugment::test_transform_mat based in torch version (#2617)
João Gustavo A. Amorim7a3acd9d00f5
diff --git a/test/augmentation/test_auto_operation.py b/test/augmentation/test_auto_operation.pyindex d3751790a..bef29ef33 100644--- a/test/augmentation/test_auto_operation.py+++ b/test/augmentation/test_auto_operation.py@@ -12,6 +12,7 @@ from kornia.augmentation.auto.trivial_augment import TrivialAugmentfrom kornia.augmentation.container import AugmentationSequentialfrom kornia.geometry.bbox import bbox_to_maskfrom kornia.testing import assert_close+from kornia.utils._compat import torch_versionfrom test.augmentation.test_container import reproducibility_test@@ -109,6 +110,10 @@ class TestRandAugment:in_tensor = torch.rand(10, 3, 50, 50, requires_grad=True)aug(in_tensor)+ @pytest.mark.xfail(+ torch_version() in {'1.10.2', '1.11.0', '1.12.1', '1.13.1'},+ reason='randomness failing into some torch versions',+ )def test_transform_mat(self, device, dtype):aug = RandAugment(n=3, m=15)in_tensor = torch.rand(10, 3, 50, 50, device=device, dtype=dtype, requires_grad=True)