Skip to content

🐍 Geometric Computer Vision Library for Spatial AI

fixed useless return in ransac.py (#1352)

nvshubhsharma4bcbd591a2d2
diff --git a/kornia/geometry/ransac.py b/kornia/geometry/ransac.py
index 0e24c1713..1475beead 100644
--- a/kornia/geometry/ransac.py
+++ b/kornia/geometry/ransac.py
@@ -64,7 +64,6 @@ class RANSAC(nn.Module):
self.polisher_solver = find_fundamental # type: ignore
else:
raise NotImplementedError(f"{model_type} is unknown. Try one of {self.supported_models}")
- return
def sample(self,
sample_size: int,