@@ -28,7 +28,7 @@ def test_image_cov_3_channels(self) -> None:
28
28
]
29
29
)
30
30
self .assertEqual (list (test_output .shape ), [3 , 3 ])
31
- assertTensorAlmostEqual (self , test_output , expected_output , delta = 0.0002 )
31
+ assertTensorAlmostEqual (self , test_output , expected_output , delta = 0.001 )
32
32
33
33
def test_image_cov_3_channels_batch_5 (self ) -> None :
34
34
test_input = torch .cat (
@@ -51,7 +51,7 @@ def test_image_cov_3_channels_batch_5(self) -> None:
51
51
]
52
52
)
53
53
self .assertEqual (list (test_output .shape ), [3 , 3 ])
54
- assertTensorAlmostEqual (self , test_output , expected_output , delta = 0.0002 )
54
+ assertTensorAlmostEqual (self , test_output , expected_output , delta = 0.001 )
55
55
56
56
def test_image_cov_2_channels (self ) -> None :
57
57
test_input = torch .randn (1 , 2 , 5 , 5 )
@@ -111,7 +111,7 @@ def test_cov_matrix_to_klt(self) -> None:
111
111
[- 0.1749 , - 0.1056 , 0.0124 ],
112
112
]
113
113
)
114
- assertTensorAlmostEqual (self , output_mtx , expected_mtx , delta = 0.0003 )
114
+ assertTensorAlmostEqual (self , output_mtx , expected_mtx , delta = 0.001 )
115
115
116
116
117
117
class TestDatasetKLTMatrix (BaseTest ):
@@ -143,7 +143,7 @@ def create_tensor() -> torch.Tensor:
143
143
[- 0.0978 , - 0.0006 , 0.0003 ],
144
144
]
145
145
)
146
- assertTensorAlmostEqual (self , klt_transform , expected_mtx , delta = 0.00032 )
146
+ assertTensorAlmostEqual (self , klt_transform , expected_mtx , delta = 0.001 )
147
147
148
148
def test_dataset_klt_matrix_randn (self ) -> None :
149
149
num_tensors = 100
0 commit comments