π Geometric Computer Vision Library for Spatial AI
Python artificial-intelligencecomputer-visiondeep-learninghacktoberfestimage-processingmachine-learningneural-networkpythonpytorchroboticsspatial-ai
test: make zca whiten doctest robust (#4187)
sunny4dc852777a08
diff --git a/kornia/enhance/zca.py b/kornia/enhance/zca.pyindex 88641e68a..29b04546b 100644--- a/kornia/enhance/zca.py+++ b/kornia/enhance/zca.py@@ -295,10 +295,10 @@ def zca_whiten(inp: torch.Tensor, dim: int = 0, unbiased: bool = True, eps: floaExamples:>>> x = torch.tensor([[0,1],[1,0],[-1,0]], dtype = torch.float32)- >>> zca_whiten(x)- tensor([[ 0.0000, 1.1547],- [ 1.0000, -0.5773],- [-1.0000, -0.5773]])+ >>> zca_whiten(x).round(decimals=3)+ tensor([[ 0.0000, 1.1550],+ [ 1.0000, -0.5770],+ [-1.0000, -0.5770]])"""if not isinstance(inp, torch.Tensor):