Skip to content

🐍 Geometric Computer Vision Library for Spatial AI

fix(feature): resolve drop_path typo in DeDoDe transformer block (#3781)

S B Pranay82705d646ba1
diff --git a/kornia/feature/dedode/transformer/layers/block.py b/kornia/feature/dedode/transformer/layers/block.py
index d4863cb36..26eee05fd 100644
--- a/kornia/feature/dedode/transformer/layers/block.py
+++ b/kornia/feature/dedode/transformer/layers/block.py
@@ -153,7 +153,7 @@ class Block(nn.Module):
)
elif self.training and self.sample_drop_ratio > 0.0:
x = x + self.drop_path1(attn_residual_func(x))
- x = x + self.drop_path1(ffn_residual_func(x)) # FIXME: drop_path2
+ x = x + self.drop_path2(ffn_residual_func(x))
else:
x = x + attn_residual_func(x)
x = x + ffn_residual_func(x)