π Geometric Computer Vision Library for Spatial AI
Python artificial-intelligencecomputer-visiondeep-learninghacktoberfestimage-processingmachine-learningneural-networkpythonpytorchroboticsspatial-ai
fix linter error
edgarriba017303e0ef5d
diff --git a/kornia/feature/scale_space_detector.py b/kornia/feature/scale_space_detector.pyindex 0ee8a7e1f..915b86154 100644--- a/kornia/feature/scale_space_detector.py+++ b/kornia/feature/scale_space_detector.py@@ -44,7 +44,9 @@ def _scale_index_to_scale(max_coords: torch.Tensor, sigmas: torch.Tensor) -> torscale_grid = torch.cat([scale_coords_index, dummy_x], dim=3)# Finally, interpolate the scale value- scale_val = F.grid_sample(sigmas[0].log2().view(1, 1, 1, -1).expand(scale_grid.size(0), 1, 1, L), scale_grid, align_corners=True)+ scale_val = F.grid_sample(+ sigmas[0].log2().view(1, 1, 1, -1).expand(scale_grid.size(0), 1, 1, L),+ scale_grid, align_corners=True)# Replace the scale_x_yout = torch.cat([torch.pow(2.0, scale_val).view(B, N, 1), max_coords[:, :, 1:]], dim=2)