Skip to content

🐍 Geometric Computer Vision Library for Spatial AI

docs: add missing package docstrings (D104)

Keshav Singhd76c2a5f6799
diff --git a/kornia/__init__.py b/kornia/__init__.py
index 3e94ae341..18cb73613 100644
--- a/kornia/__init__.py
+++ b/kornia/__init__.py
@@ -15,8 +15,7 @@
# limitations under the License.
#
-"""
-Kornia β€” Differentiable computer vision and image processing for PyTorch.
+"""Kornia β€” Differentiable computer vision and image processing for PyTorch.
This package exposes core modules (filters, geometry, etc.) and provides
convenience imports at the top level.
diff --git a/kornia/augmentation/__init__.py b/kornia/augmentation/__init__.py
index d97858e4b..af6bd7ed2 100644
--- a/kornia/augmentation/__init__.py
+++ b/kornia/augmentation/__init__.py
@@ -15,8 +15,7 @@
# limitations under the License.
#
-"""
-Kornia Augmentation β€” Differentiable image, video, and 3D data augmentation for PyTorch.
+"""Kornia Augmentation β€” Differentiable image, video, and 3D data augmentation for PyTorch.
This subpackage provides a wide range of augmentation modules for computer vision tasks.
"""
diff --git a/kornia/augmentation/auto/__init__.py b/kornia/augmentation/auto/__init__.py
index 02c32c064..c82cf2700 100644
--- a/kornia/augmentation/auto/__init__.py
+++ b/kornia/augmentation/auto/__init__.py
@@ -15,8 +15,7 @@
# limitations under the License.
#
-"""
-Kornia Augmentation Auto β€” Automated augmentation policies for computer vision.
+"""Kornia Augmentation Auto β€” Automated augmentation policies for computer vision.
This subpackage provides AutoAugment and related policy-based augmentation utilities.
"""
diff --git a/kornia/augmentation/auto/autoaugment/__init__.py b/kornia/augmentation/auto/autoaugment/__init__.py
index 01bbb8df3..0d6758b22 100644
--- a/kornia/augmentation/auto/autoaugment/__init__.py
+++ b/kornia/augmentation/auto/autoaugment/__init__.py
@@ -15,8 +15,7 @@
# limitations under the License.
#
-"""
-Kornia AutoAugment β€” AutoAugment policy implementations for Kornia augmentation.
+"""Kornia AutoAugment β€” AutoAugment policy implementations for Kornia augmentation.
This subpackage provides the AutoAugment class and related utilities.
"""
diff --git a/kornia/augmentation/auto/operations/__init__.py b/kornia/augmentation/auto/operations/__init__.py
index 00ddbeb59..82e55d62a 100644
--- a/kornia/augmentation/auto/operations/__init__.py
+++ b/kornia/augmentation/auto/operations/__init__.py
@@ -15,8 +15,7 @@
# limitations under the License.
#
-"""
-Kornia AutoAugment Operations β€” Building blocks for policy-based augmentation.
+"""Kornia AutoAugment Operations β€” Building blocks for policy-based augmentation.
This subpackage provides operation classes and utilities for AutoAugment policies.
"""
diff --git a/kornia/augmentation/auto/rand_augment/__init__.py b/kornia/augmentation/auto/rand_augment/__init__.py
index 9423f153c..5781dffd0 100644
--- a/kornia/augmentation/auto/rand_augment/__init__.py
+++ b/kornia/augmentation/auto/rand_augment/__init__.py
@@ -15,8 +15,7 @@
# limitations under the License.
#
-"""
-Kornia RandAugment β€” RandAugment policy implementations for Kornia augmentation.
+"""Kornia RandAugment β€” RandAugment policy implementations for Kornia augmentation.
This subpackage provides the RandAugment class and related utilities.
"""
diff --git a/kornia/augmentation/auto/trivial_augment/__init__.py b/kornia/augmentation/auto/trivial_augment/__init__.py
index 422a6c869..46caa539e 100644
--- a/kornia/augmentation/auto/trivial_augment/__init__.py
+++ b/kornia/augmentation/auto/trivial_augment/__init__.py
@@ -15,8 +15,7 @@
# limitations under the License.
#
-"""
-Kornia TrivialAugment β€” TrivialAugment policy implementations for Kornia augmentation.
+"""Kornia TrivialAugment β€” TrivialAugment policy implementations for Kornia augmentation.
This subpackage provides the TrivialAugment class and related utilities.
"""
diff --git a/kornia/augmentation/container/__init__.py b/kornia/augmentation/container/__init__.py
index 01073b931..817959350 100644
--- a/kornia/augmentation/container/__init__.py
+++ b/kornia/augmentation/container/__init__.py
@@ -15,8 +15,7 @@
# limitations under the License.
#
-"""
-Kornia Augmentation Container β€” Sequential and dispatcher augmentation utilities.
+"""Kornia Augmentation Container β€” Sequential and dispatcher augmentation utilities.
This subpackage provides augmentation containers and dispatchers for flexible pipelines.
"""
diff --git a/kornia/augmentation/presets/__init__.py b/kornia/augmentation/presets/__init__.py
index 085dd8b1c..58ddd5dcd 100644
--- a/kornia/augmentation/presets/__init__.py
+++ b/kornia/augmentation/presets/__init__.py
@@ -15,8 +15,7 @@
# limitations under the License.
#
-"""
-Kornia Augmentation Presets β€” Predefined augmentation pipelines and configurations.
+"""Kornia Augmentation Presets β€” Predefined augmentation pipelines and configurations.
This subpackage provides ready-to-use augmentation presets for common tasks.
"""
diff --git a/kornia/augmentation/random_generator/__init__.py b/kornia/augmentation/random_generator/__init__.py
index e739d1a67..bea7a1dfd 100644
--- a/kornia/augmentation/random_generator/__init__.py
+++ b/kornia/augmentation/random_generator/__init__.py
@@ -15,8 +15,7 @@
# limitations under the License.
#
-"""
-Kornia Augmentation Random Generator β€” Random parameter generators for augmentations.
+"""Kornia Augmentation Random Generator β€” Random parameter generators for augmentations.
This subpackage provides random generators for 2D and 3D augmentation modules.
"""
diff --git a/kornia/augmentation/utils/__init__.py b/kornia/augmentation/utils/__init__.py
index b6f3d465e..e7fa52bbf 100644
--- a/kornia/augmentation/utils/__init__.py
+++ b/kornia/augmentation/utils/__init__.py
@@ -15,8 +15,7 @@
# limitations under the License.
#
-"""
-Kornia Augmentation Utils β€” Helper functions and utilities for augmentations.
+"""Kornia Augmentation Utils β€” Helper functions and utilities for augmentations.
This subpackage provides internal helpers and utility functions for augmentation modules.
"""
diff --git a/kornia/color/__init__.py b/kornia/color/__init__.py
index 579d9d15f..c12955386 100644
--- a/kornia/color/__init__.py
+++ b/kornia/color/__init__.py
@@ -15,8 +15,7 @@
# limitations under the License.
#
-"""
-Kornia Color β€” Color space conversions and color-related utilities for PyTorch.
+"""Kornia Color β€” Color space conversions and color-related utilities for PyTorch.
This subpackage provides modules for color transformations, colormaps, and conversions.
"""
diff --git a/kornia/contrib/__init__.py b/kornia/contrib/__init__.py
index 59136a28a..eb1d8ff6c 100644
--- a/kornia/contrib/__init__.py
+++ b/kornia/contrib/__init__.py
@@ -15,8 +15,7 @@
# limitations under the License.
#
-"""
-Kornia Contrib β€” Experimental and contributed modules for Kornia.
+"""Kornia Contrib β€” Experimental and contributed modules for Kornia.
This subpackage provides community-contributed and experimental features.
"""
diff --git a/kornia/contrib/models/__init__.py b/kornia/contrib/models/__init__.py
index 758633d4d..e5405927d 100644
--- a/kornia/contrib/models/__init__.py
+++ b/kornia/contrib/models/__init__.py
@@ -15,8 +15,7 @@
# limitations under the License.
#
-"""
-Kornia Contrib Models β€” Experimental and contributed model structures for Kornia.
+"""Kornia Contrib Models β€” Experimental and contributed model structures for Kornia.
This subpackage provides contributed model classes and result structures.
"""
diff --git a/kornia/contrib/models/efficient_vit/__init__.py b/kornia/contrib/models/efficient_vit/__init__.py
index 87760a2b8..ed02d6e3d 100644
--- a/kornia/contrib/models/efficient_vit/__init__.py
+++ b/kornia/contrib/models/efficient_vit/__init__.py
@@ -15,8 +15,7 @@
# limitations under the License.
#
-"""
-Kornia Contrib EfficientViT β€” Efficient Vision Transformer models for Kornia.
+"""Kornia Contrib EfficientViT β€” Efficient Vision Transformer models for Kornia.
This subpackage provides EfficientViT model classes and configurations.
"""
diff --git a/kornia/contrib/models/efficient_vit/nn/__init__.py b/kornia/contrib/models/efficient_vit/nn/__init__.py
index 5ffb1c926..b453ad435 100644
--- a/kornia/contrib/models/efficient_vit/nn/__init__.py
+++ b/kornia/contrib/models/efficient_vit/nn/__init__.py
@@ -15,8 +15,7 @@
# limitations under the License.
#
-"""
-Kornia Contrib EfficientViT NN β€” Neural network layers for EfficientViT models.
+"""Kornia Contrib EfficientViT NN β€” Neural network layers for EfficientViT models.
This subpackage provides neural network building blocks for EfficientViT.
"""
diff --git a/kornia/contrib/models/efficient_vit/utils/__init__.py b/kornia/contrib/models/efficient_vit/utils/__init__.py
index 4f755baca..a2d2b1634 100644
--- a/kornia/contrib/models/efficient_vit/utils/__init__.py
+++ b/kornia/contrib/models/efficient_vit/utils/__init__.py
@@ -15,8 +15,7 @@
# limitations under the License.
#
-"""
-Kornia Contrib EfficientViT Utils β€” Utility functions for EfficientViT models.
+"""Kornia Contrib EfficientViT Utils β€” Utility functions for EfficientViT models.
This subpackage provides helper functions and utilities for EfficientViT implementations.
"""
diff --git a/kornia/contrib/models/rt_detr/__init__.py b/kornia/contrib/models/rt_detr/__init__.py
index 632c9402e..7aa256fd1 100644
--- a/kornia/contrib/models/rt_detr/__init__.py
+++ b/kornia/contrib/models/rt_detr/__init__.py
@@ -15,8 +15,7 @@
# limitations under the License.
#
-"""
-Kornia Contrib RT-DETR β€” Real-time DEtection TRansformer models for Kornia.
+"""Kornia Contrib RT-DETR β€” Real-time DEtection TRansformer models for Kornia.
This subpackage provides RT-DETR model classes, configs, and post-processors.
"""
diff --git a/kornia/contrib/models/rt_detr/architecture/__init__.py b/kornia/contrib/models/rt_detr/architecture/__init__.py
index 15c8d45a7..028ddb379 100644
--- a/kornia/contrib/models/rt_detr/architecture/__init__.py
+++ b/kornia/contrib/models/rt_detr/architecture/__init__.py
@@ -15,8 +15,7 @@
# limitations under the License.
#
-"""
-Kornia Contrib RT-DETR Architecture β€” Model architecture components for RT-DETR.
+"""Kornia Contrib RT-DETR Architecture β€” Model architecture components for RT-DETR.
This subpackage provides building blocks for RT-DETR model architectures.
"""
diff --git a/kornia/contrib/models/sam/__init__.py b/kornia/contrib/models/sam/__init__.py
index 5bc4836eb..d16bedc4e 100644
--- a/kornia/contrib/models/sam/__init__.py
+++ b/kornia/contrib/models/sam/__init__.py
@@ -15,8 +15,7 @@
# limitations under the License.
#
-"""
-Kornia Contrib SAM β€” Segment Anything Model (SAM) integration for Kornia.
+"""Kornia Contrib SAM β€” Segment Anything Model (SAM) integration for Kornia.
This subpackage provides SAM model classes and configuration for segmentation tasks.
"""
diff --git a/kornia/contrib/models/sam/architecture/__init__.py b/kornia/contrib/models/sam/architecture/__init__.py
index 92e098df4..32f3f1df3 100644
--- a/kornia/contrib/models/sam/architecture/__init__.py
+++ b/kornia/contrib/models/sam/architecture/__init__.py
@@ -15,8 +15,7 @@
# limitations under the License.
#
-"""
-Kornia Contrib SAM Architecture β€” Model architecture components for SAM.
+"""Kornia Contrib SAM Architecture β€” Model architecture components for SAM.
This subpackage provides building blocks for the Segment Anything Model (SAM).
"""
diff --git a/kornia/core/__init__.py b/kornia/core/__init__.py
index 49e6e03e3..fc366686a 100644
--- a/kornia/core/__init__.py
+++ b/kornia/core/__init__.py
@@ -15,8 +15,7 @@
# limitations under the License.
#
-"""
-Kornia Core β€” Core tensor operations, backends, and utilities for Kornia.
+"""Kornia Core β€” Core tensor operations, backends, and utilities for Kornia.
This subpackage provides core functionality, device management, and backend support.
"""
diff --git a/kornia/core/mixin/__init__.py b/kornia/core/mixin/__init__.py
index 6c0b33d2f..2be7a652b 100644
--- a/kornia/core/mixin/__init__.py
+++ b/kornia/core/mixin/__init__.py
@@ -15,8 +15,7 @@
# limitations under the License.
#
-"""
-Kornia Core Mixin β€” Mixins for image modules and ONNX export in Kornia.
+"""Kornia Core Mixin β€” Mixins for image modules and ONNX export in Kornia.
This subpackage provides mixin classes for extending core functionality.
"""
diff --git a/kornia/enhance/__init__.py b/kornia/enhance/__init__.py
index d1973c13a..d3b96c945 100644
--- a/kornia/enhance/__init__.py
+++ b/kornia/enhance/__init__.py
@@ -15,8 +15,7 @@
# limitations under the License.
#
-"""
-Kornia Enhance β€” Image enhancement operations for Kornia.
+"""Kornia Enhance β€” Image enhancement operations for Kornia.
This subpackage provides modules for brightness, contrast, and other image enhancements.
"""
diff --git a/kornia/feature/__init__.py b/kornia/feature/__init__.py
index eaac8c2de..1d334191d 100644
--- a/kornia/feature/__init__.py
+++ b/kornia/feature/__init__.py
@@ -15,8 +15,7 @@
# limitations under the License.
#
-"""
-Kornia Feature β€” Feature detection, description, and matching for Kornia.
+"""Kornia Feature β€” Feature detection, description, and matching for Kornia.
This subpackage provides modules for keypoint detection, descriptors, and feature matching.
"""
diff --git a/kornia/feature/adalam/__init__.py b/kornia/feature/adalam/__init__.py
index 6acbac6df..89dfafddc 100644
--- a/kornia/feature/adalam/__init__.py
+++ b/kornia/feature/adalam/__init__.py
@@ -15,8 +15,7 @@
# limitations under the License.
#
-"""
-Kornia Feature Adalam β€” AdaLAM feature matching for Kornia.
+"""Kornia Feature Adalam β€” AdaLAM feature matching for Kornia.
This subpackage provides AdaLAM filtering and matching utilities.
"""
diff --git a/kornia/feature/dedode/__init__.py b/kornia/feature/dedode/__init__.py
index 328fff5ef..e1bdf0ea9 100644
--- a/kornia/feature/dedode/__init__.py
+++ b/kornia/feature/dedode/__init__.py
@@ -15,8 +15,7 @@
# limitations under the License.
#
-"""
-Kornia Feature DeDoDe β€” DeDoDe feature detector for Kornia.
+"""Kornia Feature DeDoDe β€” DeDoDe feature detector for Kornia.
This subpackage provides the DeDoDe keypoint detector and related utilities.
"""
diff --git a/kornia/feature/dedode/transformer/__init__.py b/kornia/feature/dedode/transformer/__init__.py
index a1dfa5766..1532a738a 100644
--- a/kornia/feature/dedode/transformer/__init__.py
+++ b/kornia/feature/dedode/transformer/__init__.py
@@ -15,8 +15,7 @@
# limitations under the License.
#
-"""
-Kornia Feature DeDoDe Transformer β€” Transformer backbones for DeDoDe feature detector.
+"""Kornia Feature DeDoDe Transformer β€” Transformer backbones for DeDoDe feature detector.
This subpackage provides transformer models for DeDoDe feature extraction.
"""
diff --git a/kornia/feature/dedode/transformer/layers/__init__.py b/kornia/feature/dedode/transformer/layers/__init__.py
index 27b26dc51..5b0c24a82 100644
--- a/kornia/feature/dedode/transformer/layers/__init__.py
+++ b/kornia/feature/dedode/transformer/layers/__init__.py
@@ -15,6 +15,12 @@
# limitations under the License.
#
+"""Layers submodule for Kornia DeDoDe transformer.
+
+This package provides transformer layer components such as attention, blocks, MLPs, patch embedding,
+and SwiGLU FFN for DeDoDe feature extraction.
+"""
+
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
diff --git a/kornia/feature/disk/__init__.py b/kornia/feature/disk/__init__.py
index f0b289f64..1aa46b512 100644
--- a/kornia/feature/disk/__init__.py
+++ b/kornia/feature/disk/__init__.py
@@ -15,8 +15,7 @@
# limitations under the License.
#
-"""
-Kornia Feature DISK β€” DISK feature detector and descriptor for Kornia.
+"""Kornia Feature DISK β€” DISK feature detector and descriptor for Kornia.
This subpackage provides the DISK keypoint detector and feature structures.
"""
diff --git a/kornia/feature/lightglue_onnx/__init__.py b/kornia/feature/lightglue_onnx/__init__.py
index 04d3f100b..47fb8100e 100644
--- a/kornia/feature/lightglue_onnx/__init__.py
+++ b/kornia/feature/lightglue_onnx/__init__.py
@@ -15,8 +15,7 @@
# limitations under the License.
#
-"""
-Kornia Feature LightGlue ONNX β€” ONNX-based LightGlue feature matcher for Kornia.
+"""Kornia Feature LightGlue ONNX β€” ONNX-based LightGlue feature matcher for Kornia.
This subpackage provides the OnnxLightGlue matcher and related utilities.
"""
diff --git a/kornia/feature/lightglue_onnx/utils/__init__.py b/kornia/feature/lightglue_onnx/utils/__init__.py
index d1ea8410f..646747c9d 100644
--- a/kornia/feature/lightglue_onnx/utils/__init__.py
+++ b/kornia/feature/lightglue_onnx/utils/__init__.py
@@ -15,8 +15,7 @@
# limitations under the License.
#
-"""
-Kornia Feature LightGlue ONNX Utils β€” Utilities for ONNX-based LightGlue matcher.
+"""Kornia Feature LightGlue ONNX Utils β€” Utilities for ONNX-based LightGlue matcher.
This subpackage provides helper functions for LightGlue ONNX models.
"""
diff --git a/kornia/feature/loftr/__init__.py b/kornia/feature/loftr/__init__.py
index 89d1ab894..fdd0e3b26 100644
--- a/kornia/feature/loftr/__init__.py
+++ b/kornia/feature/loftr/__init__.py
@@ -15,8 +15,7 @@
# limitations under the License.
#
-"""
-Kornia Feature LoFTR β€” LoFTR feature matcher for Kornia.
+"""Kornia Feature LoFTR β€” LoFTR feature matcher for Kornia.
This subpackage provides the LoFTR (Detector-Free Local Feature Matching) implementation.
"""
diff --git a/kornia/feature/loftr/backbone/__init__.py b/kornia/feature/loftr/backbone/__init__.py
index 6337e5d20..5578c37b4 100644
--- a/kornia/feature/loftr/backbone/__init__.py
+++ b/kornia/feature/loftr/backbone/__init__.py
@@ -15,8 +15,7 @@
# limitations under the License.
#
-"""
-Kornia Feature LoFTR Backbone β€” Backbone modules for LoFTR feature matcher.
+"""Kornia Feature LoFTR Backbone β€” Backbone modules for LoFTR feature matcher.
This subpackage provides backbone architectures for LoFTR feature extraction.
"""
diff --git a/kornia/feature/loftr/loftr_module/__init__.py b/kornia/feature/loftr/loftr_module/__init__.py
index a871888a4..4add68032 100644
--- a/kornia/feature/loftr/loftr_module/__init__.py
+++ b/kornia/feature/loftr/loftr_module/__init__.py
@@ -15,8 +15,7 @@
# limitations under the License.
#
-"""
-Kornia Feature LoFTR Module β€” LoFTR module components for Kornia.
+"""Kornia Feature LoFTR Module β€” LoFTR module components for Kornia.
This subpackage provides fine preprocessing and transformer modules for LoFTR.
"""
diff --git a/kornia/feature/loftr/utils/__init__.py b/kornia/feature/loftr/utils/__init__.py
index 072bcb211..14c536214 100644
--- a/kornia/feature/loftr/utils/__init__.py
+++ b/kornia/feature/loftr/utils/__init__.py
@@ -15,8 +15,7 @@
# limitations under the License.
#
-"""
-Kornia Feature LoFTR Utils β€” Utilities for LoFTR feature matcher.
+"""Kornia Feature LoFTR Utils β€” Utilities for LoFTR feature matcher.
This subpackage provides helper functions for LoFTR modules.
"""
diff --git a/kornia/feature/sold2/__init__.py b/kornia/feature/sold2/__init__.py
index 08b4d265d..63a2db674 100644
--- a/kornia/feature/sold2/__init__.py
+++ b/kornia/feature/sold2/__init__.py
@@ -15,8 +15,7 @@
# limitations under the License.
#
-"""
-Kornia Feature SOLD2 β€” SOLD2 line segment detector for Kornia.
+"""Kornia Feature SOLD2 β€” SOLD2 line segment detector for Kornia.
This subpackage provides the SOLD2 detector and related utilities.
"""
diff --git a/kornia/filters/__init__.py b/kornia/filters/__init__.py
index ad3036939..183dafaa9 100644
--- a/kornia/filters/__init__.py
+++ b/kornia/filters/__init__.py
@@ -15,8 +15,7 @@
# limitations under the License.
#
-"""
-Kornia Filters β€” Image filtering operations for Kornia.
+"""Kornia Filters β€” Image filtering operations for Kornia.
This subpackage provides modules for blurring, sharpening, and other image filters.
"""
diff --git a/kornia/geometry/__init__.py b/kornia/geometry/__init__.py
index 44e264eaa..2d87fa256 100644
--- a/kornia/geometry/__init__.py
+++ b/kornia/geometry/__init__.py
@@ -15,8 +15,7 @@
# limitations under the License.
#
-"""
-Kornia Geometry β€” Geometric vision operations for Kornia.
+"""Kornia Geometry β€” Geometric vision operations for Kornia.
This subpackage provides modules for transformations, camera models, and geometry processing.
"""
diff --git a/kornia/geometry/calibration/__init__.py b/kornia/geometry/calibration/__init__.py
index ac0489a0c..a660560f0 100644
--- a/kornia/geometry/calibration/__init__.py
+++ b/kornia/geometry/calibration/__init__.py
@@ -15,8 +15,7 @@
# limitations under the License.
#
-"""
-Kornia Geometry Calibration β€” Camera calibration utilities for Kornia.
+"""Kornia Geometry Calibration β€” Camera calibration utilities for Kornia.
This subpackage provides functions for camera calibration, distortion, and undistortion.
"""
diff --git a/kornia/geometry/camera/__init__.py b/kornia/geometry/camera/__init__.py
index 15a832b07..763c13e24 100644
--- a/kornia/geometry/camera/__init__.py
+++ b/kornia/geometry/camera/__init__.py
@@ -15,8 +15,7 @@
# limitations under the License.
#
-"""
-Kornia Geometry Camera β€” Camera models and camera-related utilities for Kornia.
+"""Kornia Geometry Camera β€” Camera models and camera-related utilities for Kornia.
This subpackage provides camera models, distortion, and projection functions.
"""
diff --git a/kornia/geometry/epipolar/__init__.py b/kornia/geometry/epipolar/__init__.py
index ba44a625b..48b2a10c3 100644
--- a/kornia/geometry/epipolar/__init__.py
+++ b/kornia/geometry/epipolar/__init__.py
@@ -15,8 +15,7 @@
# limitations under the License.
#
-"""
-Kornia Geometry Epipolar β€” Epipolar geometry operations for Kornia.
+"""Kornia Geometry Epipolar β€” Epipolar geometry operations for Kornia.
This subpackage provides functions for epipolar distance, fundamental matrices, and stereo vision.
"""
diff --git a/kornia/geometry/liegroup/__init__.py b/kornia/geometry/liegroup/__init__.py
index b2f144113..b98a6eb52 100644
--- a/kornia/geometry/liegroup/__init__.py
+++ b/kornia/geometry/liegroup/__init__.py
@@ -15,8 +15,7 @@
# limitations under the License.
#
-"""
-Kornia Geometry Lie Group β€” Lie group operations for Kornia.
+"""Kornia Geometry Lie Group β€” Lie group operations for Kornia.
This subpackage provides SE2, SE3, SO2, and related Lie group classes and utilities.
"""
diff --git a/kornia/geometry/solvers/__init__.py b/kornia/geometry/solvers/__init__.py
index 4f4e2e943..af4655acd 100644
--- a/kornia/geometry/solvers/__init__.py
+++ b/kornia/geometry/solvers/__init__.py
@@ -15,8 +15,7 @@
# limitations under the License.
#
-"""
-Kornia Geometry Solvers β€” Polynomial and geometric solvers for Kornia.
+"""Kornia Geometry Solvers β€” Polynomial and geometric solvers for Kornia.
This subpackage provides polynomial solvers and related utilities for geometry tasks.
"""
diff --git a/kornia/geometry/subpix/__init__.py b/kornia/geometry/subpix/__init__.py
index ef4e3ec16..b4536299d 100644
--- a/kornia/geometry/subpix/__init__.py
+++ b/kornia/geometry/subpix/__init__.py
@@ -15,8 +15,7 @@
# limitations under the License.
#
-"""
-Kornia Geometry Subpix β€” Subpixel operations for Kornia.
+"""Kornia Geometry Subpix β€” Subpixel operations for Kornia.
This subpackage provides subpixel localization and softmax utilities for geometry tasks.
"""
diff --git a/kornia/geometry/transform/__init__.py b/kornia/geometry/transform/__init__.py
index 01864f1ae..c1d46df49 100644
--- a/kornia/geometry/transform/__init__.py
+++ b/kornia/geometry/transform/__init__.py
@@ -15,8 +15,7 @@
# limitations under the License.
#
-"""
-Kornia Geometry Transform β€” Geometric transformation operations for Kornia.
+"""Kornia Geometry Transform β€” Geometric transformation operations for Kornia.
This subpackage provides affine, crop, and other geometric transformation utilities.
"""
diff --git a/kornia/grad_estimator/__init__.py b/kornia/grad_estimator/__init__.py
index 9ce9b938b..9ad884015 100644
--- a/kornia/grad_estimator/__init__.py
+++ b/kornia/grad_estimator/__init__.py
@@ -15,8 +15,7 @@
# limitations under the License.
#
-"""
-Kornia Grad Estimator β€” Gradient estimation utilities for Kornia.
+"""Kornia Grad Estimator β€” Gradient estimation utilities for Kornia.
This subpackage provides straight-through estimators and related functions.
"""
diff --git a/kornia/image/__init__.py b/kornia/image/__init__.py
index 72543880c..2dd22c4f9 100644
--- a/kornia/image/__init__.py
+++ b/kornia/image/__init__.py
@@ -15,6 +15,12 @@
# limitations under the License.
#
+"""Image submodule for Kornia.
+
+This package provides image data structures and utilities, including image layout, size, pixel format,
+and channel order definitions.
+"""
+
from .base import ChannelsOrder, ImageLayout, ImageSize, PixelFormat
from .image import Image
diff --git a/kornia/io/__init__.py b/kornia/io/__init__.py
index 3aec3416b..32ceece8d 100644
--- a/kornia/io/__init__.py
+++ b/kornia/io/__init__.py
@@ -15,6 +15,11 @@
# limitations under the License.
#
+"""IO submodule for Kornia.
+
+This package provides image input/output utilities, including image loading and writing functions.
+"""
+
from .io import ImageLoadType, load_image, write_image
__all__ = ["ImageLoadType", "load_image", "write_image"]
diff --git a/kornia/losses/__init__.py b/kornia/losses/__init__.py
index 6e99eea74..12cc5dd96 100644
--- a/kornia/losses/__init__.py
+++ b/kornia/losses/__init__.py
@@ -15,6 +15,12 @@
# limitations under the License.
#
+"""Losses submodule for Kornia.
+
+This package provides a collection of loss functions for computer vision tasks, including SSIM,
+PSNR, Dice, Focal, Lovasz, and more.
+"""
+
from __future__ import annotations
from .cauchy import CauchyLoss, cauchy_loss
diff --git a/kornia/metrics/__init__.py b/kornia/metrics/__init__.py
index 3eed02a04..839ad1653 100644
--- a/kornia/metrics/__init__.py
+++ b/kornia/metrics/__init__.py
@@ -15,6 +15,12 @@
# limitations under the License.
#
+"""Metrics submodule for Kornia.
+
+This package provides evaluation metrics for computer vision, such as accuracy, mean IoU,
+PSNR, SSIM, and endpoint error.
+"""
+
from .accuracy import accuracy
from .average_meter import AverageMeter
from .confusion_matrix import confusion_matrix
diff --git a/kornia/models/__init__.py b/kornia/models/__init__.py
index e86c211b6..c8bdff143 100644
--- a/kornia/models/__init__.py
+++ b/kornia/models/__init__.py
@@ -15,6 +15,12 @@
# limitations under the License.
#
+"""Models submodule for Kornia.
+
+This package provides model architectures and utilities for tasks such as depth estimation,
+detection, segmentation, super-resolution, and tracking.
+"""
+
from . import (
depth_estimation,
detection,
diff --git a/kornia/models/depth_estimation/__init__.py b/kornia/models/depth_estimation/__init__.py
index 3b71e89fe..db1217c30 100644
--- a/kornia/models/depth_estimation/__init__.py
+++ b/kornia/models/depth_estimation/__init__.py
@@ -15,5 +15,10 @@
# limitations under the License.
#
+"""Depth estimation models submodule for Kornia.
+
+This package provides model architectures and utilities for monocular depth estimation tasks.
+"""
+
from .base import *
from .depth_anything import *
diff --git a/kornia/models/detection/__init__.py b/kornia/models/detection/__init__.py
index d0631e432..ca1c992b4 100644
--- a/kornia/models/detection/__init__.py
+++ b/kornia/models/detection/__init__.py
@@ -15,6 +15,11 @@
# limitations under the License.
#
+"""Detection models submodule for Kornia.
+
+This package provides model architectures and utilities for object detection tasks.
+"""
+
from .base import *
from .rtdetr import *
from .utils import *
diff --git a/kornia/models/edge_detection/__init__.py b/kornia/models/edge_detection/__init__.py
index cd042359b..25c41b02c 100644
--- a/kornia/models/edge_detection/__init__.py
+++ b/kornia/models/edge_detection/__init__.py
@@ -15,5 +15,10 @@
# limitations under the License.
#
+"""Edge detection models submodule for Kornia.
+
+This package provides model architectures and utilities for edge detection tasks.
+"""
+
from .base import *
from .dexined import *
diff --git a/kornia/models/segmentation/__init__.py b/kornia/models/segmentation/__init__.py
index eb1a695cd..bb8949159 100644
--- a/kornia/models/segmentation/__init__.py
+++ b/kornia/models/segmentation/__init__.py
@@ -15,5 +15,10 @@
# limitations under the License.
#
+"""Segmentation models submodule for Kornia.
+
+This package provides model architectures and utilities for image segmentation tasks.
+"""
+
from .base import *
from .segmentation_models import *
diff --git a/kornia/models/super_resolution/__init__.py b/kornia/models/super_resolution/__init__.py
index 09fad8d53..5c01e6e94 100644
--- a/kornia/models/super_resolution/__init__.py
+++ b/kornia/models/super_resolution/__init__.py
@@ -15,6 +15,11 @@
# limitations under the License.
#
+"""Super-resolution models submodule for Kornia.
+
+This package provides model architectures and utilities for image super-resolution tasks.
+"""
+
from .base import *
from .rrdbnet import *
from .small_sr import *
diff --git a/kornia/models/tracking/__init__.py b/kornia/models/tracking/__init__.py
index a1b71eecb..413a0339c 100644
--- a/kornia/models/tracking/__init__.py
+++ b/kornia/models/tracking/__init__.py
@@ -15,4 +15,9 @@
# limitations under the License.
#
+"""Tracking models submodule for Kornia.
+
+This package provides model architectures and utilities for object tracking tasks.
+"""
+
from .boxmot_tracker import *
diff --git a/kornia/morphology/__init__.py b/kornia/morphology/__init__.py
index 2ece1b802..568ae5f16 100644
--- a/kornia/morphology/__init__.py
+++ b/kornia/morphology/__init__.py
@@ -15,4 +15,9 @@
# limitations under the License.
#
+"""Morphology submodule for Kornia.
+
+This package provides morphological operations for image processing tasks.
+"""
+
from .morphology import *
diff --git a/kornia/nerf/__init__.py b/kornia/nerf/__init__.py
index 4d273d5cb..b38a157df 100644
--- a/kornia/nerf/__init__.py
+++ b/kornia/nerf/__init__.py
@@ -14,3 +14,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
+
+"""Neural Radiance Fields (NeRF) submodule for Kornia.
+
+This package provides utilities and models for NeRF-based 3D scene representation and rendering.
+"""
diff --git a/kornia/onnx/__init__.py b/kornia/onnx/__init__.py
index bceea4487..e29e783a2 100644
--- a/kornia/onnx/__init__.py
+++ b/kornia/onnx/__init__.py
@@ -15,6 +15,11 @@
# limitations under the License.
#
+"""ONNX submodule for Kornia.
+
+This package provides utilities and modules for ONNX export and integration.
+"""
+
from .module import *
from .sequential import *
from .utils import *
diff --git a/kornia/sensors/__init__.py b/kornia/sensors/__init__.py
index 4d273d5cb..e6e1a3dd9 100644
--- a/kornia/sensors/__init__.py
+++ b/kornia/sensors/__init__.py
@@ -14,3 +14,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
+
+"""Sensors submodule for Kornia.
+
+This package provides utilities and modules for sensor data processing and integration.
+"""
diff --git a/kornia/sensors/camera/__init__.py b/kornia/sensors/camera/__init__.py
index 385ff3e05..321fa2ca7 100644
--- a/kornia/sensors/camera/__init__.py
+++ b/kornia/sensors/camera/__init__.py
@@ -15,6 +15,11 @@
# limitations under the License.
#
+"""Camera models submodule for Kornia sensors.
+
+This package provides camera model definitions and utilities for camera calibration and projection.
+"""
+
from .camera_model import (
BrownConradyModel,
CameraModel,
diff --git a/kornia/tracking/__init__.py b/kornia/tracking/__init__.py
index cc7c3fdb4..5613e098e 100644
--- a/kornia/tracking/__init__.py
+++ b/kornia/tracking/__init__.py
@@ -15,6 +15,11 @@
# limitations under the License.
#
+"""Tracking submodule for Kornia.
+
+This package provides tracking algorithms and utilities, including planar homography tracking.
+"""
+
from .planar_tracker import HomographyTracker
__all__ = ["HomographyTracker"]
diff --git a/kornia/transpiler/__init__.py b/kornia/transpiler/__init__.py
index 63622a37d..9074294c1 100644
--- a/kornia/transpiler/__init__.py
+++ b/kornia/transpiler/__init__.py
@@ -15,6 +15,11 @@
# limitations under the License.
#
+"""Transpiler submodule for Kornia.
+
+This package provides utilities to transpile Kornia operations to other frameworks such as JAX, NumPy, and TensorFlow.
+"""
+
from .transpiler import to_jax, to_numpy, to_tensorflow
__all__ = ["to_jax", "to_numpy", "to_tensorflow"]
diff --git a/kornia/utils/__init__.py b/kornia/utils/__init__.py
index 5dcfd5e06..377644fb4 100644
--- a/kornia/utils/__init__.py
+++ b/kornia/utils/__init__.py
@@ -15,6 +15,11 @@
# limitations under the License.
#
+"""Utils submodule for Kornia.
+
+This package provides utility functions and helpers for image processing, device management, data conversion, and more.
+"""
+
from ._compat import torch_meshgrid
from .download import CachedDownloader
from .draw import draw_convex_polygon, draw_line, draw_point2d, draw_rectangle
diff --git a/kornia/x/__init__.py b/kornia/x/__init__.py
index 84ac29368..1a4787ea3 100644
--- a/kornia/x/__init__.py
+++ b/kornia/x/__init__.py
@@ -15,6 +15,11 @@
# limitations under the License.
#
+"""Experimental submodule (x) for Kornia.
+
+This package provides experimental features, trainers, callbacks, and utilities for advanced workflows.
+"""
+
from .callbacks import EarlyStopping, ModelCheckpoint
from .trainer import Trainer
from .trainers import ImageClassifierTrainer, ObjectDetectionTrainer, SemanticSegmentationTrainer