π Geometric Computer Vision Library for Spatial AI
Python artificial-intelligencecomputer-visiondeep-learninghacktoberfestimage-processingmachine-learningneural-networkpythonpytorchroboticsspatial-ai
fixed batch indexing
Dmytro Mishkinae303e1a7feb
diff --git a/kornia/feature/scale_space_detector.py b/kornia/feature/scale_space_detector.pyindex c04b9a362..078f6d386 100644--- a/kornia/feature/scale_space_detector.py+++ b/kornia/feature/scale_space_detector.py@@ -108,7 +108,7 @@ class ScaleSpaceDetector(nn.Module):if responses_flatten.size(1) > num_feats:resp_flat_best, idxs = torch.topk(responses_flatten, k=num_feats, dim=1)- max_coords_best = max_coords_flatten[:, idxs.view(-1)]+ max_coords_best = torch.gather(max_coords_flatten, 1, idxs.unsqueeze(-1).repeat(1, 1, 3))else:resp_flat_best = responses_flattenmax_coords_best = max_coords_flatten