🐍 Geometric Computer Vision Library for Spatial AI
This report presents the forensic synthetic code analysis of kornia/kornia, a Python project with 11,274 GitHub stars. SynthScan v2.0 examined 178,804 lines of code across 817 source files, recording 3432 pattern matches distributed across 16 syntactic categories. The overall adjusted score of 28.7 places this repository in the Moderate AI signal band.
The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).
This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.
Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.
This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.
The scanner identified 3432 distinct pattern matches across 16 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | kornia/__init__.py | 28 | CODE | |
| LOW | kornia/__init__.py | 29 | CODE | |
| LOW | kornia/__init__.py | 32 | CODE | |
| LOW | kornia/__init__.py | 32 | CODE | |
| LOW | kornia/__init__.py | 32 | CODE | |
| LOW | kornia/__init__.py | 32 | CODE | |
| LOW | kornia/__init__.py | 32 | CODE | |
| LOW | kornia/__init__.py | 32 | CODE | |
| LOW | kornia/__init__.py | 32 | CODE | |
| LOW | kornia/__init__.py | 32 | CODE | |
| LOW | kornia/__init__.py | 32 | CODE | |
| LOW | kornia/__init__.py | 32 | CODE | |
| LOW | kornia/__init__.py | 32 | CODE | |
| LOW | kornia/__init__.py | 32 | CODE | |
| LOW | kornia/__init__.py | 32 | CODE | |
| LOW | kornia/__init__.py | 32 | CODE | |
| LOW | kornia/__init__.py | 51 | CODE | |
| LOW | kornia/__init__.py | 51 | CODE | |
| LOW | kornia/__init__.py | 51 | CODE | |
| LOW | kornia/__init__.py | 54 | CODE | |
| LOW | kornia/filters/kernels_geometry.py | 18 | CODE | |
| LOW | kornia/filters/__init__.py | 23 | CODE | |
| LOW | kornia/filters/__init__.py | 25 | CODE | |
| LOW | kornia/filters/__init__.py | 25 | CODE | |
| LOW | kornia/filters/__init__.py | 25 | CODE | |
| LOW | kornia/filters/__init__.py | 25 | CODE | |
| LOW | kornia/filters/__init__.py | 26 | CODE | |
| LOW | kornia/filters/__init__.py | 26 | CODE | |
| LOW | kornia/filters/__init__.py | 27 | CODE | |
| LOW | kornia/filters/__init__.py | 27 | CODE | |
| LOW | kornia/filters/__init__.py | 27 | CODE | |
| LOW | kornia/filters/__init__.py | 27 | CODE | |
| LOW | kornia/filters/__init__.py | 27 | CODE | |
| LOW | kornia/filters/__init__.py | 27 | CODE | |
| LOW | kornia/filters/__init__.py | 35 | CODE | |
| LOW | kornia/filters/__init__.py | 35 | CODE | |
| LOW | kornia/filters/__init__.py | 36 | CODE | |
| LOW | kornia/filters/__init__.py | 37 | CODE | |
| LOW | kornia/filters/__init__.py | 37 | CODE | |
| LOW | kornia/filters/__init__.py | 37 | CODE | |
| LOW | kornia/filters/__init__.py | 37 | CODE | |
| LOW | kornia/filters/__init__.py | 37 | CODE | |
| LOW | kornia/filters/__init__.py | 37 | CODE | |
| LOW | kornia/filters/__init__.py | 37 | CODE | |
| LOW | kornia/filters/__init__.py | 37 | CODE | |
| LOW | kornia/filters/__init__.py | 38 | CODE | |
| LOW | kornia/filters/__init__.py | 38 | CODE | |
| LOW | kornia/filters/__init__.py | 38 | CODE | |
| LOW | kornia/filters/__init__.py | 39 | CODE | |
| LOW | kornia/filters/__init__.py | 39 | CODE | |
| LOW | kornia/filters/__init__.py | 40 | CODE | |
| LOW | kornia/filters/__init__.py | 40 | CODE | |
| LOW | kornia/filters/__init__.py | 41 | CODE | |
| LOW | kornia/filters/__init__.py | 41 | CODE | |
| LOW | kornia/filters/__init__.py | 41 | CODE | |
| LOW | kornia/filters/__init__.py | 41 | CODE | |
| LOW | kornia/filters/__init__.py | 41 | CODE | |
| LOW | kornia/filters/__init__.py | 41 | CODE | |
| LOW | kornia/filters/__init__.py | 41 | CODE | |
| LOW | kornia/filters/__init__.py | 41 | CODE | |
| 1023 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | conftest.py | 1 | # LICENSE HEADER MANAGED BY add-license-header | COMMENT |
| LOW | pyproject.toml | 141 | # "FA", # flake8-future-annotations | COMMENT |
| LOW | pyproject.toml | 381 | invalid-return-type = "ignore" | COMMENT |
| LOW | kornia/config.py | 1 | # LICENSE HEADER MANAGED BY add-license-header | COMMENT |
| LOW | kornia/constants.py | 1 | # LICENSE HEADER MANAGED BY add-license-header | COMMENT |
| LOW | kornia/__init__.py | 1 | # LICENSE HEADER MANAGED BY add-license-header | COMMENT |
| LOW | kornia/filters/kernels_geometry.py | 1 | # LICENSE HEADER MANAGED BY add-license-header | COMMENT |
| LOW | kornia/filters/__init__.py | 1 | # LICENSE HEADER MANAGED BY add-license-header | COMMENT |
| LOW | kornia/filters/laplacian.py | 1 | # LICENSE HEADER MANAGED BY add-license-header | COMMENT |
| LOW | kornia/filters/guided.py | 1 | # LICENSE HEADER MANAGED BY add-license-header | COMMENT |
| LOW | kornia/filters/canny.py | 1 | # LICENSE HEADER MANAGED BY add-license-header | COMMENT |
| LOW | kornia/filters/in_range.py | 1 | # LICENSE HEADER MANAGED BY add-license-header | COMMENT |
| LOW | kornia/filters/sobel.py | 1 | # LICENSE HEADER MANAGED BY add-license-header | COMMENT |
| LOW | kornia/filters/dissolving.py | 1 | # LICENSE HEADER MANAGED BY add-license-header | COMMENT |
| LOW | kornia/filters/blur.py | 1 | # LICENSE HEADER MANAGED BY add-license-header | COMMENT |
| LOW | kornia/filters/motion.py | 1 | # LICENSE HEADER MANAGED BY add-license-header | COMMENT |
| LOW | kornia/filters/dexined.py | 1 | # LICENSE HEADER MANAGED BY add-license-header | COMMENT |
| LOW | kornia/filters/bilateral.py | 1 | # LICENSE HEADER MANAGED BY add-license-header | COMMENT |
| LOW | kornia/filters/kernels.py | 1 | # LICENSE HEADER MANAGED BY add-license-header | COMMENT |
| LOW | kornia/filters/median.py | 1 | # LICENSE HEADER MANAGED BY add-license-header | COMMENT |
| LOW | kornia/filters/otsu_thresholding.py | 1 | # LICENSE HEADER MANAGED BY add-license-header | COMMENT |
| LOW | kornia/filters/blur_pool.py | 1 | # LICENSE HEADER MANAGED BY add-license-header | COMMENT |
| LOW | kornia/filters/filter.py | 1 | # LICENSE HEADER MANAGED BY add-license-header | COMMENT |
| LOW | kornia/filters/unsharp.py | 1 | # LICENSE HEADER MANAGED BY add-license-header | COMMENT |
| LOW | kornia/filters/gaussian.py | 1 | # LICENSE HEADER MANAGED BY add-license-header | COMMENT |
| LOW | kornia/metrics/average_meter.py | 1 | # LICENSE HEADER MANAGED BY add-license-header | COMMENT |
| LOW | kornia/metrics/ssim.py | 1 | # LICENSE HEADER MANAGED BY add-license-header | COMMENT |
| LOW | kornia/metrics/endpoint_error.py | 1 | # LICENSE HEADER MANAGED BY add-license-header | COMMENT |
| LOW | kornia/metrics/__init__.py | 1 | # LICENSE HEADER MANAGED BY add-license-header | COMMENT |
| LOW | kornia/metrics/mean_iou.py | 1 | # LICENSE HEADER MANAGED BY add-license-header | COMMENT |
| LOW | kornia/metrics/mean_average_precision.py | 1 | # LICENSE HEADER MANAGED BY add-license-header | COMMENT |
| LOW | kornia/metrics/psnr.py | 1 | # LICENSE HEADER MANAGED BY add-license-header | COMMENT |
| LOW | kornia/metrics/ssim3d.py | 1 | # LICENSE HEADER MANAGED BY add-license-header | COMMENT |
| LOW | kornia/metrics/disparity.py | 1 | # LICENSE HEADER MANAGED BY add-license-header | COMMENT |
| LOW | kornia/metrics/accuracy.py | 1 | # LICENSE HEADER MANAGED BY add-license-header | COMMENT |
| LOW | kornia/metrics/confusion_matrix.py | 1 | # LICENSE HEADER MANAGED BY add-license-header | COMMENT |
| LOW | kornia/losses/hausdorff.py | 1 | # LICENSE HEADER MANAGED BY add-license-header | COMMENT |
| LOW | kornia/losses/focal.py | 1 | # LICENSE HEADER MANAGED BY add-license-header | COMMENT |
| LOW | kornia/losses/mutual_information.py | 1 | # LICENSE HEADER MANAGED BY add-license-header | COMMENT |
| LOW | kornia/losses/charbonnier.py | 1 | # LICENSE HEADER MANAGED BY add-license-header | COMMENT |
| LOW | kornia/losses/ssim.py | 1 | # LICENSE HEADER MANAGED BY add-license-header | COMMENT |
| LOW | kornia/losses/total_variation.py | 1 | # LICENSE HEADER MANAGED BY add-license-header | COMMENT |
| LOW | kornia/losses/geman_mcclure.py | 1 | # LICENSE HEADER MANAGED BY add-license-header | COMMENT |
| LOW | kornia/losses/ms_ssim.py | 1 | # LICENSE HEADER MANAGED BY add-license-header | COMMENT |
| LOW | kornia/losses/__init__.py | 1 | # LICENSE HEADER MANAGED BY add-license-header | COMMENT |
| LOW | kornia/losses/dice.py | 1 | # LICENSE HEADER MANAGED BY add-license-header | COMMENT |
| LOW | kornia/losses/tversky.py | 1 | # LICENSE HEADER MANAGED BY add-license-header | COMMENT |
| LOW | kornia/losses/cauchy.py | 1 | # LICENSE HEADER MANAGED BY add-license-header | COMMENT |
| LOW | kornia/losses/divergence.py | 1 | # LICENSE HEADER MANAGED BY add-license-header | COMMENT |
| LOW | kornia/losses/psnr.py | 1 | # LICENSE HEADER MANAGED BY add-license-header | COMMENT |
| LOW | kornia/losses/one_hot.py | 1 | # LICENSE HEADER MANAGED BY add-license-header | COMMENT |
| LOW | kornia/losses/ssim3d.py | 1 | # LICENSE HEADER MANAGED BY add-license-header | COMMENT |
| LOW | kornia/losses/lovasz_softmax.py | 1 | # LICENSE HEADER MANAGED BY add-license-header | COMMENT |
| LOW | kornia/losses/depth_smooth.py | 1 | # LICENSE HEADER MANAGED BY add-license-header | COMMENT |
| LOW | kornia/losses/lovasz_hinge.py | 1 | # LICENSE HEADER MANAGED BY add-license-header | COMMENT |
| LOW | kornia/losses/welsch.py | 1 | # LICENSE HEADER MANAGED BY add-license-header | COMMENT |
| LOW | kornia/losses/_utils.py | 1 | # LICENSE HEADER MANAGED BY add-license-header | COMMENT |
| LOW | kornia/transpiler/__init__.py | 1 | # LICENSE HEADER MANAGED BY add-license-header | COMMENT |
| LOW | kornia/transpiler/transpiler.py | 1 | # LICENSE HEADER MANAGED BY add-license-header | COMMENT |
| LOW | kornia/augmentation/__init__.py | 1 | # LICENSE HEADER MANAGED BY add-license-header | COMMENT |
| 739 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | conftest.py | 165 | def pytest_collection_modifyitems(config, items): | CODE |
| LOW | conftest.py | 432 | def _is_subprocess_isolated_test(item) -> bool: | CODE |
| LOW | conftest.py | 548 | def skip_half_precision_on_cuda(request): | CODE |
| LOW⚡ | kornia/__init__.py | 124 | def get_cuda_device_if_available(*args: Any, **kwargs: Any) -> Any: | CODE |
| LOW⚡ | kornia/__init__.py | 130 | def get_mps_device_if_available(*args: Any, **kwargs: Any) -> Any: | CODE |
| LOW⚡ | kornia/__init__.py | 136 | def get_cuda_or_mps_device_if_available(*args: Any, **kwargs: Any) -> Any: | CODE |
| LOW | kornia/filters/guided.py | 30 | def _preprocess_fast_guided_blur( | CODE |
| LOW | kornia/filters/guided.py | 45 | def _guided_blur_grayscale_guidance( | CODE |
| LOW | kornia/filters/guided.py | 84 | def _guided_blur_multichannel_guidance( | CODE |
| LOW | kornia/metrics/disparity.py | 67 | def mean_absolute_disparity_error( | CODE |
| LOW | kornia/metrics/disparity.py | 119 | def root_mean_squared_disparity_error( | STRING |
| LOW | kornia/losses/focal.py | 211 | def binary_focal_loss_with_logits( | STRING |
| LOW | kornia/losses/mutual_information.py | 64 | def truncated_gaussian_kernel(x: torch.Tensor, window_radius: float = 1.0) -> torch.Tensor: | CODE |
| LOW | kornia/losses/mutual_information.py | 113 | def _joint_histogram_to_entropies(joint_histogram: torch.Tensor, eps: float = 1e-8) -> torch.Tensor: | CODE |
| LOW | kornia/losses/mutual_information.py | 771 | def normalized_mutual_information_loss( | CODE |
| LOW | kornia/losses/depth_smooth.py | 39 | def inverse_depth_smoothness_loss(idepth: torch.Tensor, image: torch.Tensor) -> torch.Tensor: | CODE |
| LOW | kornia/augmentation/base.py | 40 | def _apply_transform_unimplemented(self: nn.Module, *input: Any) -> torch.Tensor: | CODE |
| LOW | kornia/augmentation/base.py | 196 | def _process_kwargs_to_params_and_flags( | CODE |
| LOW | kornia/augmentation/base.py | 535 | def apply_non_transform_keypoint( | CODE |
| LOW | kornia/augmentation/base.py | 555 | def apply_non_transform_class( | CODE |
| LOW | kornia/augmentation/_2d/base.py | 99 | def generate_transformation_matrix( | CODE |
| LOW⚡ | kornia/augmentation/_2d/intensity/base.py | 60 | def apply_non_transform_boxes( | STRING |
| LOW⚡ | kornia/augmentation/_2d/intensity/base.py | 70 | def apply_non_transform_keypoint( | STRING |
| LOW⚡ | kornia/augmentation/_2d/intensity/base.py | 80 | def apply_non_transform_class( | STRING |
| LOW | kornia/augmentation/_2d/geometric/base.py | 53 | def compute_inverse_transformation(self, transform: torch.Tensor) -> torch.Tensor: | CODE |
| LOW | kornia/augmentation/_2d/geometric/base.py | 57 | def get_transformation_matrix( | CODE |
| LOW | kornia/augmentation/_2d/geometric/base.py | 164 | def apply_non_transform_keypoint( | CODE |
| LOW | kornia/augmentation/_2d/geometric/base.py | 189 | def apply_non_transform_class( | CODE |
| LOW | kornia/augmentation/_2d/mix/mixup.py | 117 | def apply_non_transform_class( | STRING |
| LOW | kornia/augmentation/_2d/mix/cutmix.py | 142 | def apply_non_transform_class( | STRING |
| LOW⚡ | kornia/augmentation/_2d/mix/base.py | 186 | def apply_non_transform_boxes(self, input: Boxes, params: Dict[str, torch.Tensor], flags: Dict[str, Any]) -> Boxes: | CODE |
| LOW⚡ | kornia/augmentation/_2d/mix/base.py | 192 | def apply_non_transform_keypoint( | CODE |
| LOW⚡ | kornia/augmentation/_2d/mix/base.py | 202 | def apply_non_transform_class( | CODE |
| LOW | kornia/augmentation/auto/base.py | 44 | def _update_transform_matrix_for_valid_op(self, module: PolicySequential) -> None: # type: ignore | CODE |
| LOW | kornia/augmentation/auto/base.py | 56 | def compose_subpolicy_sequential(self, subpolicy: SUBPOLICY_CONFIG) -> PolicySequential: | CODE |
| LOW | kornia/augmentation/auto/base.py | 71 | def get_transformation_matrix( | CODE |
| LOW | kornia/augmentation/auto/autoaugment/autoaugment.py | 158 | def compose_subpolicy_sequential(self, subpolicy: SUBPOLICY_CONFIG) -> PolicySequential: | CODE |
| LOW | kornia/augmentation/auto/rand_augment/rand_augment.py | 106 | def compose_subpolicy_sequential(self, subpolicy: SUBPOLICY_CONFIG) -> PolicySequential: | CODE |
| LOW | kornia/augmentation/auto/operations/policy.py | 45 | def _update_transform_matrix_for_valid_op(self, module: nn.Module) -> None: | CODE |
| LOW | kornia/augmentation/auto/operations/policy.py | 73 | def get_transformation_matrix( | CODE |
| LOW | …a/augmentation/auto/trivial_augment/trivial_augment.py | 81 | def compose_subpolicy_sequential(self, subpolicy: SUBPOLICY_CONFIG) -> PolicySequential: | CODE |
| LOW | kornia/augmentation/utils/param_validation.py | 23 | def _check_positive_int_or_traced(value: Any, name: str) -> None: | CODE |
| LOW | kornia/augmentation/utils/helpers.py | 103 | def _transform_input_by_shape( | STRING |
| LOW | kornia/augmentation/container/augment.py | 292 | def _update_transform_matrix_for_valid_op(self, module: nn.Module) -> None: | CODE |
| LOW | kornia/augmentation/container/ops.py | 46 | def get_instance_module_param(cls, param: ParamItem) -> Dict[str, torch.Tensor]: | CODE |
| LOW | kornia/augmentation/container/ops.py | 65 | def get_sequential_module_param(cls, param: ParamItem) -> List[ParamItem]: | CODE |
| LOW | kornia/augmentation/container/ops.py | 253 | def make_input_only_sequential(module: "K.container.ImageSequentialBase") -> Callable[P, torch.Tensor]: | CODE |
| LOW | kornia/augmentation/container/video.py | 144 | def __infer_channel_exclusive_batch_shape__(self, batch_shape: torch.Size, chennel_index: int) -> torch.Size: | STRING |
| LOW | kornia/augmentation/container/video.py | 148 | def __repeat_param_across_channels__(self, param: torch.Tensor, frame_num: int) -> torch.Tensor: | STRING |
| LOW | kornia/augmentation/container/video.py | 185 | def _input_shape_convert_back(self, input: torch.Tensor, frame_num: int) -> torch.Tensor: | STRING |
| LOW | kornia/augmentation/container/image.py | 173 | def get_random_forward_sequence(self, with_mix: bool = True) -> Tuple[Iterator[Tuple[str, nn.Module]], bool]: | CODE |
| LOW | kornia/augmentation/container/image.py | 218 | def get_mix_augmentation_indices(self, named_modules: Iterator[Tuple[str, nn.Module]]) -> List[int]: | CODE |
| LOW | kornia/augmentation/container/image.py | 284 | def get_transformation_matrix( | CODE |
| LOW | kornia/augmentation/container/base.py | 237 | def get_transformation_matrix( | CODE |
| LOW | kornia/augmentation/container/base.py | 470 | def _parse_transformation_matrix_mode(self, transformation_matrix_mode: str) -> None: | CODE |
| LOW⚡ | kornia/augmentation/container/base.py | 489 | def _update_transform_matrix_for_valid_op(self, module: nn.Module) -> None: | CODE |
| LOW⚡ | kornia/augmentation/container/base.py | 492 | def _update_transform_matrix_by_module(self, module: nn.Module) -> None: | CODE |
| LOW | kornia/augmentation/container/base.py | 509 | def _reset_transform_matrix_state(self) -> None: | CODE |
| LOW | kornia/augmentation/_3d/base.py | 91 | def generate_transformation_matrix( | STRING |
| LOW | kornia/core/utils.py | 45 | def get_cuda_device_if_available(index: int = 0) -> torch.device: | CODE |
| 679 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | kornia/filters/kernels_geometry.py | 33 | Return 2D motion blur filter. Args: kernel_size: motion kernel width and height. It should be odd and posit | STRING |
| HIGH | kornia/filters/kernels_geometry.py | 119 | Return 3D motion blur filter. Args: kernel_size: motion kernel width, height and depth. It should be odd an | STRING |
| HIGH | kornia/filters/in_range.py | 35 | Create a mask indicating whether elements of the input torch.Tensor are within the specified range. .. image:: _sta | STRING |
| HIGH | kornia/filters/in_range.py | 152 | Create a module for applying lower and upper bounds to input tensors. Args: input: The input torch.Tensor t | STRING |
| HIGH | kornia/filters/motion.py | 34 | Blur 2D images (4D torch.Tensor) using the motion filter. Args: kernel_size: motion kernel width and height | STRING |
| HIGH | kornia/filters/motion.py | 99 | Blur 3D volumes (5D torch.Tensor) using the motion filter. Args: kernel_size: motion kernel width and heigh | STRING |
| HIGH | kornia/filters/kernels.py | 560 | Return Gaussian filter coefficients. Args: kernel_size: filter size. It should be odd and positive. | STRING |
| HIGH | kornia/filters/kernels.py | 595 | Return Gaussian filter coefficients based on the modified Bessel functions. Adapted from: https://github.com/Projec | STRING |
| HIGH | kornia/filters/kernels.py | 632 | Return Gaussian filter coefficients by interpolating the error function. Adapted from: https://github.com/Project-M | STRING |
| HIGH | kornia/filters/kernels.py | 669 | Return Gaussian filter matrix coefficients. Args: kernel_size: filter sizes in the y and x direction. Sizes | STRING |
| HIGH | kornia/filters/kernels.py | 726 | Return Gaussian filter matrix coefficients. Args: kernel_size: filter sizes in the z, y and x direction. Si | STRING |
| HIGH | kornia/filters/kernels.py | 781 | Return the coefficients of a 1D Laplacian filter. Args: kernel_size: filter size. It should be odd and posi | STRING |
| HIGH | kornia/filters/kernels.py | 811 | Return Gaussian filter matrix coefficients. Args: kernel_size: filter size should be odd. device: t | STRING |
| HIGH | kornia/filters/kernels.py | 857 | Generate pascal filter kernel by kernel size. Args: kernel_size: height and width of the kernel. no | STRING |
| HIGH | kornia/filters/kernels.py | 897 | Generate Yang Hui triangle (Pascal's triangle) by a given number. Args: kernel_size: height and width of th | STRING |
| HIGH | kornia/filters/kernels.py | 982 | Return Hanning (also known as Hann) kernel, used in signal processing and KCF tracker. .. math:: w(n) = 0.5 - 0.5c | STRING |
| HIGH | kornia/filters/otsu_thresholding.py | 186 | Apply automatic image thresholding using Otsu algorithm to the input tensor. Args: x (Tensor): Input tensor | STRING |
| HIGH | kornia/filters/blur_pool.py | 101 | Compute pools and blurs and downsample a given feature map. Equivalent to ```nn.Sequential(nn.MaxPool2d(...), BlurP | STRING |
| HIGH | kornia/filters/blur_pool.py | 218 | Compute blurs and downsample a given feature map. .. image:: _static/img/blur_pool2d.png See :class:`~kornia.f | STRING |
| HIGH | kornia/filters/unsharp.py | 32 | Create an operator that sharpens a torch.Tensor by applying operation out = 2 * image - gaussian_blur2d(image). .. | STRING |
| HIGH | kornia/filters/unsharp.py | 59 | Create an operator that sharpens image with: out = 2 * image - gaussian_blur2d(image). Args: kernel_size: t | STRING |
| HIGH | kornia/filters/gaussian.py | 39 | Create an operator that blurs a torch.Tensor using a Gaussian filter. .. image:: _static/img/gaussian_blur2d.png | STRING |
| HIGH | kornia/metrics/ssim.py | 42 | Compute the Structural Similarity (SSIM) index map between two images. Measures the (SSIM) index between each eleme | STRING |
| HIGH | kornia/metrics/mean_average_precision.py | 34 | Calculate the Mean Average Precision (mAP) of detected objects. Code altered from https://github.com/sgrvinod/a-PyT | STRING |
| HIGH | kornia/metrics/ssim3d.py | 52 | Compute the Structural Similarity (SSIM) index map between two images. Measures the (SSIM) index between each eleme | STRING |
| HIGH | kornia/losses/focal.py | 221 | Criterion that computes Binary Focal loss. According to :cite:`lin2018focal`, the Focal loss is computed as follows | STRING |
| HIGH | kornia/losses/mutual_information.py | 231 | Compute the joint histogram between the reference signal and another signal. Uses kernel density estimation to | STRING |
| HIGH | kornia/losses/ssim.py | 35 | Compute a loss based on the SSIM measurement. The loss, or the Structural dissimilarity (DSSIM) is described as: | STRING |
| HIGH | kornia/losses/ssim.py | 86 | Create a criterion that computes a loss based on the SSIM measurement. The loss, or the Structural dissimilarity (D | STRING |
| HIGH | kornia/losses/ms_ssim.py | 31 | Creates a criterion that computes MSSIM + L1 loss. According to [1], we compute the MS_SSIM + L1 loss as follows: | STRING |
| HIGH | kornia/losses/one_hot.py | 27 | Convert an integer label x-D torch.Tensor to a one-hot (x+1)-D torch.Tensor. Args: labels: torch.Tensor wit | STRING |
| HIGH | kornia/losses/ssim3d.py | 35 | Compute a loss based on the SSIM measurement. The loss, or the Structural dissimilarity (DSSIM) is described as: | STRING |
| HIGH | kornia/losses/ssim3d.py | 86 | Create a criterion that computes a loss based on the SSIM measurement. The loss, or the Structural dissimilarity (D | STRING |
| HIGH | kornia/augmentation/_2d/mix/mixup.py | 28 | Apply MixUp augmentation to a batch of torch.Tensor images. .. image:: _static/img/RandomMixUpV2.png Implement | STRING |
| HIGH | kornia/augmentation/_2d/mix/transplantation.py | 33 | RandomTransplantation augmentation. .. image:: _static/img/RandomTransplantation.png Randomly transplant (copy | STRING |
| HIGH | kornia/augmentation/_2d/mix/cutmix.py | 29 | Apply CutMix augmentation to a batch of torch.Tensor images. .. image:: _static/img/RandomCutMixV2.png Impleme | STRING |
| HIGH | kornia/augmentation/auto/rand_augment/rand_augment.py | 107 | Build a :class:`PolicySequential` for one RandAugment candidate op. Args: subpolicy: Single-entry p | STRING |
| HIGH | …a/augmentation/auto/trivial_augment/trivial_augment.py | 82 | Build a :class:`PolicySequential` from one TrivialAugment candidate. Args: subpolicy: Single-entry | STRING |
| HIGH | kornia/augmentation/container/patch.py | 175 | Compute spatial padding needed before patch extraction. Args: input: Input image tensor. | STRING |
| HIGH | kornia/augmentation/container/patch.py | 391 | Inverse the patch pipeline when supported. Args: input: Augmented image tensor. params: | STRING |
| HIGH | kornia/augmentation/container/patch.py | 412 | Transform masks for intensity-only patch pipelines. Args: input: Input mask tensor. par | STRING |
| HIGH | kornia/augmentation/container/patch.py | 433 | Inverse mask transforms for supported patch pipelines. Args: input: Augmented mask tensor. | STRING |
| HIGH | kornia/augmentation/container/patch.py | 454 | Transform boxes for intensity-only patch pipelines. Args: input: Input boxes. params: P | STRING |
| HIGH | kornia/augmentation/container/patch.py | 475 | Inverse box transforms for supported patch pipelines. Args: input: Augmented boxes. par | STRING |
| HIGH | kornia/augmentation/container/patch.py | 496 | Transform keypoints for intensity-only patch pipelines. Args: input: Input keypoints. p | STRING |
| HIGH | kornia/augmentation/container/patch.py | 517 | Inverse keypoint transforms for supported patch pipelines. Args: input: Augmented keypoints (concep | STRING |
| HIGH | kornia/augmentation/container/ops.py | 47 | Extract per-module parameter dict from a :class:`ParamItem`. Args: param: Parameter wrapper produce | STRING |
| HIGH | kornia/augmentation/container/ops.py | 66 | Extract nested sequential parameters from a :class:`ParamItem`. Args: param: Parameter wrapper prod | STRING |
| HIGH | kornia/augmentation/container/ops.py | 138 | Normalize user-provided data keys into :class:`DataKey` values. Args: data_keys: Optional keys pass | STRING |
| HIGH | kornia/augmentation/container/ops.py | 284 | Apply one module step to an image tensor. Args: input: Input image tensor. module: Modu | STRING |
| HIGH | kornia/augmentation/container/ops.py | 316 | Apply one inverse module step to an image tensor. Args: input: Tensor to invert. module | STRING |
| HIGH | kornia/augmentation/container/ops.py | 354 | Apply class-label handling for one module step. Args: input: Class-label tensor. module | STRING |
| HIGH | kornia/augmentation/container/image.py | 227 | Return the module sequence used for the current forward call. Args: params: Optional recorded param | STRING |
| HIGH | kornia/augmentation/container/base.py | 55 | Get submodule. This code is taken from torch 1.9.0 since it is not introduced back to torch 1.7.1. We i | STRING |
| HIGH | kornia/augmentation/random_generator/base.py | 96 | Sample random augmentation parameters. Args: batch_shape: Target batch shape. same_on_b | STRING |
| HIGH | kornia/augmentation/random_generator/_2d/crop.py | 159 | Get cropping heights and widths for ```crop``` transformation for resized crop transform. Args: output_size | STRING |
| HIGH | kornia/sensors/camera/distortion_model.py | 92 | Apply Brown-Conrady lens distortion to ideal normalized points. Args: params: Distortion parameter | STRING |
| HIGH | kornia/sensors/camera/distortion_model.py | 111 | Remove Brown-Conrady lens distortion from observed points. Args: params: Distortion parameter tenso | STRING |
| HIGH | kornia/sensors/camera/distortion_model.py | 139 | Apply Kannala-Brandt K3 fisheye distortion to normalized points. Args: params: Fisheye distortion c | STRING |
| HIGH | kornia/sensors/camera/distortion_model.py | 156 | Remove Kannala-Brandt K3 fisheye distortion from observed points. Args: params: Fisheye distortion | STRING |
| 85 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | kornia/core/utils.py | 30 | from kornia.core.exceptions import DeviceError | CODE |
| CRITICAL | kornia/color/yuv.py | 27 | from kornia.core.exceptions import ShapeError | CODE |
| CRITICAL | tests/filters/test_sobel.py | 43 | from kornia.core.exceptions import ShapeError, TypeCheckError | CODE |
| CRITICAL | tests/filters/test_sobel.py | 293 | from kornia.core.exceptions import ShapeError, TypeCheckError | CODE |
| CRITICAL | tests/filters/test_sobel.py | 458 | from kornia.core.exceptions import ShapeError, TypeCheckError | CODE |
| CRITICAL | tests/filters/test_blur_pool.py | 168 | from kornia.core.exceptions import BaseError, ShapeError | CODE |
| CRITICAL | tests/filters/test_median.py | 40 | from kornia.core.exceptions import ShapeError, TypeCheckError | CODE |
| CRITICAL | tests/filters/test_bilateral.py | 57 | from kornia.core.exceptions import TypeCheckError | CODE |
| CRITICAL | tests/filters/test_bilateral.py | 214 | from kornia.core.exceptions import TypeCheckError | CODE |
| CRITICAL | tests/filters/test_gaussian.py | 245 | from kornia.core.exceptions import TypeCheckError | CODE |
| CRITICAL | tests/filters/test_filters.py | 105 | from kornia.core.exceptions import ShapeError, TypeCheckError | CODE |
| CRITICAL | tests/filters/test_filters.py | 424 | from kornia.core.exceptions import ShapeError, TypeCheckError | CODE |
| CRITICAL | tests/filters/test_filters.py | 829 | from kornia.core.exceptions import ShapeError, TypeCheckError | CODE |
| CRITICAL | tests/filters/test_guided.py | 71 | from kornia.core.exceptions import BaseError, TypeCheckError | CODE |
| CRITICAL | tests/filters/test_canny.py | 53 | from kornia.core.exceptions import BaseError, ShapeError, TypeCheckError | CODE |
| CRITICAL | tests/metrics/test_disparity.py | 22 | from kornia.core.exceptions import BaseError, ShapeError, TypeCheckError | CODE |
| CRITICAL | tests/metrics/test_aepe.py | 61 | from kornia.core.exceptions import TypeCheckError | CODE |
| CRITICAL | tests/metrics/test_aepe.py | 73 | from kornia.core.exceptions import ShapeError | CODE |
| CRITICAL | tests/metrics/test_ssim3d.py | 69 | from kornia.core.exceptions import TypeCheckError | CODE |
| CRITICAL | tests/metrics/test_ssim3d.py | 80 | from kornia.core.exceptions import ShapeError | CODE |
| CRITICAL⚡ | tests/losses/test_charbonnier.py | 39 | from kornia.core.exceptions import BaseError | CODE |
| CRITICAL⚡ | tests/losses/test_charbonnier.py | 46 | from kornia.core.exceptions import TypeCheckError | CODE |
| CRITICAL⚡ | tests/losses/test_charbonnier.py | 57 | from kornia.core.exceptions import ShapeError | CODE |
| CRITICAL | tests/losses/test_lovaz_softmax.py | 37 | from kornia.core.exceptions import ShapeError | CODE |
| CRITICAL⚡ | tests/losses/test_geman_macclure.py | 39 | from kornia.core.exceptions import BaseError | CODE |
| CRITICAL⚡ | tests/losses/test_geman_macclure.py | 46 | from kornia.core.exceptions import TypeCheckError | CODE |
| CRITICAL⚡ | tests/losses/test_geman_macclure.py | 57 | from kornia.core.exceptions import ShapeError | CODE |
| CRITICAL⚡ | tests/losses/test_welcsh.py | 96 | from kornia.core.exceptions import BaseError | CODE |
| CRITICAL⚡ | tests/losses/test_welcsh.py | 103 | from kornia.core.exceptions import TypeCheckError | CODE |
| CRITICAL⚡ | tests/losses/test_welcsh.py | 114 | from kornia.core.exceptions import ShapeError | CODE |
| CRITICAL⚡ | tests/losses/test_cauchy.py | 39 | from kornia.core.exceptions import BaseError | CODE |
| CRITICAL⚡ | tests/losses/test_cauchy.py | 46 | from kornia.core.exceptions import TypeCheckError | CODE |
| CRITICAL⚡ | tests/losses/test_cauchy.py | 57 | from kornia.core.exceptions import ShapeError | CODE |
| CRITICAL | tests/augmentation/test_augmentation.py | 4062 | from kornia.core.exceptions import BaseError | CODE |
| CRITICAL | tests/augmentation/test_augmentation.py | 4349 | from kornia.core.exceptions import BaseError, TypeCheckError | CODE |
| CRITICAL | tests/core/test_tensor_wrapper.py | 21 | from kornia.core.exceptions import TypeCheckError | CODE |
| CRITICAL | tests/core/test_helpers.py | 21 | from kornia.core.exceptions import DeviceError | CODE |
| CRITICAL | tests/color/test_yuv.py | 23 | from kornia.core.exceptions import ShapeError | CODE |
| CRITICAL | tests/color/test_xyz.py | 39 | from kornia.core.exceptions import ShapeError, TypeCheckError | CODE |
| CRITICAL | tests/color/test_raw.py | 224 | from kornia.core.exceptions import BaseError, ShapeError | CODE |
| CRITICAL | tests/color/test_gray.py | 40 | from kornia.core.exceptions import TypeCheckError | CODE |
| CRITICAL | tests/color/test_gray.py | 146 | from kornia.core.exceptions import TypeCheckError | CODE |
| CRITICAL | tests/color/test_gray.py | 262 | from kornia.core.exceptions import TypeCheckError | CODE |
| CRITICAL⚡ | tests/models/test_structures.py | 23 | from kornia.core.exceptions import BaseError | CODE |
| CRITICAL | tests/models/test_prompter.py | 66 | from kornia.core.exceptions import ShapeError | CODE |
| CRITICAL | tests/models/test_sam.py | 71 | from kornia.core.exceptions import ShapeError | CODE |
| CRITICAL | tests/contrib/test_conv_distance_transformer.py | 22 | from kornia.core.exceptions import BaseError, TypeCheckError | CODE |
| CRITICAL | tests/contrib/test_kmeans.py | 66 | from kornia.core.exceptions import BaseError, ShapeError | CODE |
| CRITICAL | tests/image/test_print.py | 44 | from kornia.core.exceptions import ShapeError | CODE |
| CRITICAL | tests/image/test_print.py | 51 | from kornia.core.exceptions import ValueCheckError | CODE |
| CRITICAL | tests/image/test_image.py | 25 | from kornia.core.exceptions import ShapeError | CODE |
| CRITICAL | tests/enhance/test_shift_rgb.py | 52 | from kornia.core.exceptions import ImageError | CODE |
| CRITICAL⚡ | tests/enhance/test_jpeg.py | 105 | from kornia.core.exceptions import TypeCheckError | CODE |
| CRITICAL⚡ | tests/enhance/test_jpeg.py | 113 | from kornia.core.exceptions import BaseError | CODE |
| CRITICAL⚡ | tests/enhance/test_jpeg.py | 122 | from kornia.core.exceptions import BaseError | CODE |
| CRITICAL | tests/enhance/test_jpeg.py | 137 | from kornia.core.exceptions import BaseError | CODE |
| CRITICAL | tests/enhance/test_jpeg.py | 152 | from kornia.core.exceptions import BaseError | CODE |
| CRITICAL | tests/enhance/test_jpeg.py | 163 | from kornia.core.exceptions import BaseError | CODE |
| CRITICAL | tests/enhance/test_jpeg.py | 174 | from kornia.core.exceptions import BaseError | CODE |
| CRITICAL | tests/geometry/camera/test_projections.py | 116 | from kornia.core.exceptions import ShapeError | CODE |
| 4 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | pixi.toml | 8 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | pixi.toml | 10 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | pixi.toml | 18 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | pixi.toml | 20 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | pixi.toml | 32 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | pixi.toml | 34 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | pixi.toml | 60 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | pixi.toml | 62 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | pixi.toml | 66 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | pixi.toml | 69 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | pixi.toml | 81 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | pixi.toml | 83 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | pyproject.toml | 320 | # ---------------------------- | COMMENT |
| MEDIUM | pyproject.toml | 341 | # ============================================================================= | COMMENT |
| MEDIUM | pyproject.toml | 343 | # ============================================================================= | COMMENT |
| MEDIUM | kornia/feature/xfeat.py | 322 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM | kornia/feature/xfeat.py | 324 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM | kornia/feature/xfeat.py | 474 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM | kornia/feature/xfeat.py | 476 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM | kornia/feature/scale_space_detector.py | 330 | # ── Hoist loop invariants ──────────────────────────────────────────── | COMMENT |
| MEDIUM | kornia/feature/scale_space_detector.py | 345 | # ── Process octaves sequentially ──────────────────────────────────── | COMMENT |
| MEDIUM | kornia/feature/aliked/aliked.py | 71 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | kornia/feature/aliked/aliked.py | 73 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | kornia/feature/aliked/aliked.py | 107 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | kornia/feature/aliked/aliked.py | 109 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | kornia/feature/aliked/aliked.py | 145 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | kornia/feature/aliked/aliked.py | 147 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | kornia/feature/aliked/aliked.py | 193 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | kornia/feature/aliked/aliked.py | 195 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | kornia/feature/aliked/aliked.py | 377 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | kornia/feature/aliked/aliked.py | 379 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | kornia/feature/aliked/aliked.py | 403 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | kornia/feature/aliked/aliked.py | 405 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | kornia/feature/aliked/aliked.py | 613 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | kornia/feature/aliked/aliked.py | 615 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | kornia/feature/aliked/aliked.py | 730 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | kornia/feature/aliked/aliked.py | 732 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | kornia/geometry/boxes.py | 665 | # ----------------- | STRING |
| MEDIUM | kornia/geometry/boxes.py | 667 | # ----------------- | STRING |
| MEDIUM | kornia/geometry/boxes.py | 691 | # ----------------- | STRING |
| MEDIUM | kornia/geometry/boxes.py | 693 | # ----------------- | STRING |
| MEDIUM | kornia/geometry/calibration/pnp.py | 135 | # ============ | STRING |
| MEDIUM | kornia/geometry/calibration/pnp.py | 137 | # ============ | STRING |
| MEDIUM | kornia/geometry/subpix/spatial_soft_argmax.py | 753 | # ── Step 1: NMS maxima ──────────────────────────────────────────────────── | STRING |
| MEDIUM | kornia/geometry/subpix/spatial_soft_argmax.py | 759 | # ── Step 2: dilate NMS positions — L∞ ball of radius dilation_radius ──────── | STRING |
| MEDIUM | kornia/geometry/subpix/spatial_soft_argmax.py | 835 | # ── Step 5: build a compact int32 lookup table ─────────────────────────── | STRING |
| MEDIUM | kornia/geometry/subpix/spatial_soft_argmax.py | 849 | # ── Step 6: iterative lookup — no .any().item() sync ───────────────────── | STRING |
| MEDIUM | kornia/geometry/subpix/spatial_soft_argmax.py | 907 | # ── Write refined coordinates and corrected response ────────────────────── | STRING |
| MEDIUM⚡ | tests/augmentation/test_onnx_export.py | 197 | # ---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/augmentation/test_onnx_export.py | 208 | # ---------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/feature/test_xfeat.py | 86 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/feature/test_xfeat.py | 88 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/feature/test_xfeat.py | 338 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/feature/test_xfeat.py | 340 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/feature/test_xfeat.py | 26 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/feature/test_xfeat.py | 28 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/feature/test_xfeat.py | 130 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/feature/test_xfeat.py | 132 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/feature/test_xfeat.py | 224 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/feature/test_xfeat.py | 226 | # --------------------------------------------------------------------------- | COMMENT |
| 107 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | kornia/augmentation/base.py | 0 | check if the input torch.tensor is formatted as expected. | STRING |
| HIGH | kornia/augmentation/_2d/base.py | 0 | check if the input torch.tensor is formatted as expected. | STRING |
| HIGH | kornia/augmentation/_3d/base.py | 0 | check if the input torch.tensor is formatted as expected. | STRING |
| HIGH | kornia/augmentation/base.py | 0 | process keypoints corresponding to the inputs that are no transformation applied. | STRING |
| HIGH | kornia/augmentation/_2d/geometric/crop.py | 0 | process keypoints corresponding to the inputs that are no transformation applied. | STRING |
| HIGH | kornia/augmentation/_2d/geometric/base.py | 0 | process keypoints corresponding to the inputs that are no transformation applied. | STRING |
| HIGH | kornia/augmentation/base.py | 0 | process class tags corresponding to the inputs that are transformed. | STRING |
| HIGH | kornia/augmentation/_2d/geometric/base.py | 0 | process class tags corresponding to the inputs that are transformed. | STRING |
| HIGH | kornia/augmentation/_2d/geometric/elastic_transform.py | 0 | process class tags corresponding to the inputs that are transformed. | STRING |
| HIGH | kornia/augmentation/auto/base.py | 0 | reset cached params and transformation-matrix state. | STRING |
| HIGH | kornia/augmentation/auto/operations/policy.py | 0 | reset cached params and transformation-matrix state. | STRING |
| HIGH | kornia/augmentation/container/augment.py | 0 | reset cached params and transformation-matrix state. | STRING |
| HIGH | kornia/augmentation/auto/base.py | 0 | compute the transformation matrix according to the provided parameters. args: input: the input torch.tensor. params: par | STRING |
| HIGH | kornia/augmentation/auto/operations/policy.py | 0 | compute the transformation matrix according to the provided parameters. args: input: the input torch.tensor. params: par | STRING |
| HIGH | kornia/augmentation/container/image.py | 0 | compute the transformation matrix according to the provided parameters. args: input: the input torch.tensor. params: par | STRING |
| HIGH | kornia/augmentation/container/base.py | 0 | compute the transformation matrix according to the provided parameters. args: input: the input torch.tensor. params: par | STRING |
| HIGH | kornia/augmentation/auto/autoaugment/__init__.py | 0 | kornia trivialaugment — trivialaugment policy implementations for kornia augmentation. this subpackage provides the triv | STRING |
| HIGH | kornia/augmentation/auto/rand_augment/__init__.py | 0 | kornia trivialaugment — trivialaugment policy implementations for kornia augmentation. this subpackage provides the triv | STRING |
| HIGH | kornia/augmentation/auto/trivial_augment/__init__.py | 0 | kornia trivialaugment — trivialaugment policy implementations for kornia augmentation. this subpackage provides the triv | STRING |
| HIGH | kornia/augmentation/container/patch.py | 0 | inverse transformation. used to inverse a torch.tensor according to the performed transformation by a forward pass, or w | STRING |
| HIGH | kornia/augmentation/container/video.py | 0 | inverse transformation. used to inverse a torch.tensor according to the performed transformation by a forward pass, or w | STRING |
| HIGH | kornia/augmentation/container/base.py | 0 | inverse transformation. used to inverse a torch.tensor according to the performed transformation by a forward pass, or w | STRING |
| HIGH | kornia/augmentation/container/augment.py | 0 | overwrite the __call__ function to handle various inputs. args: inputs: inputs to operate on. input_names_to_handle: lis | STRING |
| HIGH | kornia/augmentation/container/image.py | 0 | overwrite the __call__ function to handle various inputs. args: inputs: inputs to operate on. input_names_to_handle: lis | STRING |
| HIGH | kornia/core/module.py | 0 | overwrite the __call__ function to handle various inputs. args: inputs: inputs to operate on. input_names_to_handle: lis | STRING |
| HIGH | kornia/color/xyz.py | 0 | convert an rgba tensor to bgr. args: image: input tensor with shape :math:`(*, 4, h, w)`. here, ``*`` means any number o | STRING |
| HIGH | kornia/color/hls.py | 0 | convert an rgba tensor to bgr. args: image: input tensor with shape :math:`(*, 4, h, w)`. here, ``*`` means any number o | STRING |
| HIGH | kornia/color/yuv.py | 0 | convert an rgba tensor to bgr. args: image: input tensor with shape :math:`(*, 4, h, w)`. here, ``*`` means any number o | STRING |
| HIGH | kornia/color/luv.py | 0 | convert an rgba tensor to bgr. args: image: input tensor with shape :math:`(*, 4, h, w)`. here, ``*`` means any number o | STRING |
| HIGH | kornia/color/rgb.py | 0 | convert an rgba tensor to bgr. args: image: input tensor with shape :math:`(*, 4, h, w)`. here, ``*`` means any number o | STRING |
| HIGH | kornia/color/ycbcr.py | 0 | convert an rgba tensor to bgr. args: image: input tensor with shape :math:`(*, 4, h, w)`. here, ``*`` means any number o | STRING |
| HIGH | kornia/color/lab.py | 0 | convert an rgba tensor to bgr. args: image: input tensor with shape :math:`(*, 4, h, w)`. here, ``*`` means any number o | STRING |
| HIGH | kornia/color/gray.py | 0 | convert an rgba tensor to bgr. args: image: input tensor with shape :math:`(*, 4, h, w)`. here, ``*`` means any number o | STRING |
| HIGH | kornia/feature/dedode/detector.py | 0 | run this dedode module forward. inputs are image, feature, or token tensors used by the dedode detector/descriptor pipel | STRING |
| HIGH | kornia/feature/dedode/descriptor.py | 0 | run this dedode module forward. inputs are image, feature, or token tensors used by the dedode detector/descriptor pipel | STRING |
| HIGH | kornia/feature/dedode/decoder.py | 0 | run this dedode module forward. inputs are image, feature, or token tensors used by the dedode detector/descriptor pipel | STRING |
| HIGH | kornia/feature/dedode/transformer/dinov2.py | 0 | run this dedode module forward. inputs are image, feature, or token tensors used by the dedode detector/descriptor pipel | STRING |
| HIGH | kornia/feature/dedode/transformer/layers/block.py | 0 | run this dedode module forward. inputs are image, feature, or token tensors used by the dedode detector/descriptor pipel | STRING |
| HIGH | kornia/feature/dedode/vgg.py | 0 | run this dedode module forward. inputs are image, feature, or token tensors used by the dedode detector/descriptor pipel | STRING |
| HIGH | kornia/feature/dedode/encoder.py | 0 | run this dedode module forward. inputs are image, feature, or token tensors used by the dedode detector/descriptor pipel | STRING |
| HIGH | kornia/feature/dedode/transformer/dinov2.py | 0 | run this dedode module forward. inputs are image, feature, or token tensors used by the dedode detector/descriptor pipel | STRING |
| HIGH | kornia/feature/dedode/transformer/layers/attention.py | 0 | run this dedode module forward. inputs are image, feature, or token tensors used by the dedode detector/descriptor pipel | STRING |
| HIGH | kornia/feature/dedode/transformer/layers/dino_head.py | 0 | run this dedode module forward. inputs are image, feature, or token tensors used by the dedode detector/descriptor pipel | STRING |
| HIGH | kornia/feature/dedode/transformer/layers/swiglu_ffn.py | 0 | run this dedode module forward. inputs are image, feature, or token tensors used by the dedode detector/descriptor pipel | STRING |
| HIGH | kornia/feature/dedode/transformer/layers/layer_scale.py | 0 | run this dedode module forward. inputs are image, feature, or token tensors used by the dedode detector/descriptor pipel | STRING |
| HIGH | kornia/feature/dedode/transformer/layers/mlp.py | 0 | run this dedode module forward. inputs are image, feature, or token tensors used by the dedode detector/descriptor pipel | STRING |
| HIGH | kornia/feature/dedode/transformer/layers/patch_embed.py | 0 | run this dedode module forward. inputs are image, feature, or token tensors used by the dedode detector/descriptor pipel | STRING |
| HIGH | kornia/feature/dedode/transformer/layers/block.py | 0 | run this dedode module forward. inputs are image, feature, or token tensors used by the dedode detector/descriptor pipel | STRING |
| HIGH | kornia/feature/dedode/transformer/layers/drop_path.py | 0 | run this dedode module forward. inputs are image, feature, or token tensors used by the dedode detector/descriptor pipel | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | conftest.py | 276 | def _setup_torch_compile() -> None: | CODE |
| LOW | kornia/config.py | 22 | __all__ = ["InstallationMode", "kornia_config"] | CODE |
| LOW | kornia/constants.py | 23 | __all__ = ["BorderType", "DType", "Resample", "SamplePadding", "TKEnum", "pi"] | CODE |
| LOW | kornia/filters/__init__.py | 72 | __all__ = [ | CODE |
| LOW | kornia/filters/blur_pool.py | 29 | __all__ = [ | CODE |
| LOW | kornia/metrics/__init__.py | 35 | __all__ = [ | CODE |
| LOW | kornia/losses/__init__.py | 60 | __all__ = [ | CODE |
| LOW | kornia/transpiler/__init__.py | 25 | __all__ = ["to_jax", "to_numpy", "to_tensorflow"] | CODE |
| LOW | kornia/augmentation/__init__.py | 118 | __all__ = [ | CODE |
| LOW | kornia/augmentation/base.py | 151 | def set_rng_device_and_dtype(self, device: torch.device, dtype: torch.dtype) -> None: | CODE |
| LOW | kornia/augmentation/_2d/mix/transplantation.py | 29 | __all__ = ["RandomTransplantation"] | CODE |
| LOW | kornia/augmentation/_2d/mix/jigsaw.py | 26 | __all__ = ["RandomJigsaw"] | CODE |
| LOW | kornia/augmentation/_2d/mix/mosaic.py | 31 | __all__ = ["RandomMosaic"] | CODE |
| LOW | kornia/augmentation/auto/__init__.py | 29 | __all__ = ["AutoAugment", "PolicyAugmentBase", "PolicySequential", "RandAugment", "TrivialAugment"] | CODE |
| LOW | kornia/augmentation/auto/base.py | 44 | def _update_transform_matrix_for_valid_op(self, module: PolicySequential) -> None: # type: ignore | CODE |
| LOW | kornia/augmentation/auto/operations/policy.py | 45 | def _update_transform_matrix_for_valid_op(self, module: nn.Module) -> None: | CODE |
| LOW | kornia/augmentation/auto/operations/ops.py | 25 | __all__ = [ | CODE |
| LOW | kornia/augmentation/auto/operations/base.py | 120 | def _update_probability_gen(self, relaxation: bool) -> None: | CODE |
| LOW | kornia/augmentation/utils/__init__.py | 53 | __all__ = [ | CODE |
| LOW | kornia/augmentation/container/patch.py | 36 | __all__ = ["PatchSequential"] | CODE |
| LOW | kornia/augmentation/container/params.py | 22 | __all__ = ["ParamItem", "PatchParamItem"] | CODE |
| LOW | kornia/augmentation/container/augment.py | 40 | __all__ = ["AugmentationSequential"] | CODE |
| LOW | kornia/augmentation/container/augment.py | 292 | def _update_transform_matrix_for_valid_op(self, module: nn.Module) -> None: | CODE |
| LOW | kornia/augmentation/container/video.py | 32 | __all__ = ["VideoSequential"] | CODE |
| LOW | kornia/augmentation/container/image.py | 33 | __all__ = ["ImageSequential"] | CODE |
| LOW | kornia/augmentation/container/base.py | 33 | __all__ = ["BasicSequentialBase", "ImageSequentialBase", "SequentialBase"] | CODE |
| LOW⚡ | kornia/augmentation/container/base.py | 489 | def _update_transform_matrix_for_valid_op(self, module: nn.Module) -> None: | CODE |
| LOW⚡ | kornia/augmentation/container/base.py | 492 | def _update_transform_matrix_by_module(self, module: nn.Module) -> None: | CODE |
| LOW | kornia/augmentation/container/base.py | 503 | def _update_transform_matrix(self, transform_matrix: Optional[torch.Tensor]) -> None: | CODE |
| LOW | kornia/augmentation/random_generator/_2d/translate.py | 31 | __all__ = ["TranslateGenerator"] | CODE |
| LOW | …nia/augmentation/random_generator/_2d/gaussian_blur.py | 33 | __all__ = ["RandomGaussianBlurGenerator"] | CODE |
| LOW | kornia/augmentation/random_generator/_2d/perspective.py | 27 | __all__ = ["PerspectiveGenerator"] | CODE |
| LOW | kornia/augmentation/random_generator/_2d/mixup.py | 27 | __all__ = ["MixupGenerator"] | CODE |
| LOW | …nia/augmentation/random_generator/_2d/plain_uniform.py | 27 | __all__ = ["ParameterBound", "PlainUniformGenerator"] | CODE |
| LOW | kornia/augmentation/random_generator/_2d/patchmix.py | 27 | __all__ = ["PatchMixGenerator"] | CODE |
| LOW | …/augmentation/random_generator/_2d/planckian_jitter.py | 25 | __all__ = ["PlanckianJitterGenerator"] | CODE |
| LOW | kornia/augmentation/random_generator/_2d/jpeg.py | 26 | __all__ = ["JPEGGenerator"] | CODE |
| LOW | kornia/augmentation/random_generator/_2d/affine.py | 32 | __all__ = ["AffineGenerator"] | CODE |
| LOW | kornia/augmentation/random_generator/_2d/shear.py | 32 | __all__ = ["ShearGenerator"] | CODE |
| LOW | …rnia/augmentation/random_generator/_2d/color_jitter.py | 32 | __all__ = ["ColorJitterGenerator"] | CODE |
| LOW | kornia/augmentation/random_generator/_2d/crop.py | 33 | __all__ = ["CropGenerator", "ResizedCropGenerator", "center_crop_generator"] | CODE |
| LOW | …/augmentation/random_generator/_2d/rectangle_earase.py | 31 | __all__ = ["RectangleEraseGenerator"] | CODE |
| LOW | kornia/augmentation/random_generator/_2d/resize.py | 27 | __all__ = ["ResizeGenerator"] | CODE |
| LOW | …a/augmentation/random_generator/_2d/channel_shuffle.py | 25 | __all__ = ["ChannelShuffleGenerator"] | CODE |
| LOW | kornia/augmentation/random_generator/_2d/jigsaw.py | 26 | __all__ = ["JigsawGenerator"] | CODE |
| LOW | …rnia/augmentation/random_generator/_2d/color_jiggle.py | 27 | __all__ = ["ColorJiggleGenerator"] | CODE |
| LOW | kornia/augmentation/random_generator/_2d/posterize.py | 26 | __all__ = ["PosterizeGenerator"] | CODE |
| LOW | kornia/augmentation/random_generator/_2d/probability.py | 26 | __all__ = ["ProbabilityGenerator"] | CODE |
| LOW | kornia/augmentation/random_generator/_2d/cutmix.py | 34 | __all__ = ["CutmixGenerator"] | CODE |
| LOW | …ia/augmentation/random_generator/_2d/gaussian_noise.py | 26 | __all__ = ["GaussianNoiseGenerator"] | CODE |
| LOW | kornia/augmentation/random_generator/_2d/motion_blur.py | 26 | __all__ = ["MotionBlurGenerator"] | CODE |
| LOW | kornia/augmentation/random_generator/_2d/mosaic.py | 28 | __all__ = ["MosaicGenerator"] | CODE |
| LOW | kornia/augmentation/_3d/mix/transplantation.py | 21 | __all__ = ["RandomTransplantation3D"] | CODE |
| LOW | kornia/sensors/camera/__init__.py | 33 | __all__ = [ | CODE |
| LOW | kornia/core/check.py | 37 | __all__ = [ | CODE |
| LOW | kornia/core/__init__.py | 33 | __all__ = [ | CODE |
| LOW | kornia/core/exceptions.py | 24 | __all__ = [ | CODE |
| LOW | kornia/core/external.py | 27 | logger = logging.getLogger(__name__) | CODE |
| LOW | kornia/core/mixin/onnx.py | 199 | def set_session(self, session: ort.InferenceSession) -> None: # type: ignore | CODE |
| LOW | kornia/onnx/download.py | 27 | __all__ = ["CachedDownloader"] | CODE |
| 93 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | kornia/constants.py | 113 | CODE | |
| LOW | kornia/constants.py | 132 | CODE | |
| LOW | kornia/filters/kernels.py | 504 | CODE | |
| LOW | kornia/filters/otsu_thresholding.py | 73 | CODE | |
| LOW | kornia/metrics/mean_average_precision.py | 25 | CODE | |
| LOW | kornia/metrics/disparity.py | 52 | CODE | |
| LOW | kornia/augmentation/base.py | 163 | CODE | |
| LOW | …ia/augmentation/_2d/intensity/gaussian_illumination.py | 79 | CODE | |
| LOW | …rnia/augmentation/_2d/intensity/linear_illumination.py | 75 | CODE | |
| LOW | …rnia/augmentation/_2d/intensity/linear_illumination.py | 182 | CODE | |
| LOW | kornia/augmentation/_2d/intensity/salt_pepper_noise.py | 80 | CODE | |
| LOW | kornia/augmentation/_2d/geometric/crop.py | 121 | CODE | |
| LOW | kornia/augmentation/_2d/geometric/crop.py | 207 | CODE | |
| LOW | kornia/augmentation/_2d/mix/base.py | 212 | CODE | |
| LOW | kornia/augmentation/_2d/mix/mosaic.py | 186 | CODE | |
| LOW | kornia/augmentation/auto/autoaugment/autoaugment.py | 140 | CODE | |
| LOW | kornia/augmentation/auto/operations/policy.py | 73 | CODE | |
| LOW | kornia/augmentation/utils/param_validation.py | 152 | CODE | |
| LOW | kornia/augmentation/utils/helpers.py | 395 | CODE | |
| LOW | kornia/augmentation/container/patch.py | 302 | CODE | |
| LOW | kornia/augmentation/container/augment.py | 365 | CODE | |
| LOW | kornia/augmentation/container/augment.py | 390 | CODE | |
| LOW | kornia/augmentation/container/augment.py | 499 | CODE | |
| LOW | kornia/augmentation/container/augment.py | 657 | CODE | |
| LOW | kornia/augmentation/container/ops.py | 281 | CODE | |
| LOW | kornia/augmentation/container/ops.py | 313 | CODE | |
| LOW | kornia/augmentation/container/ops.py | 399 | CODE | |
| LOW | kornia/augmentation/container/ops.py | 448 | CODE | |
| LOW | kornia/augmentation/container/ops.py | 513 | CODE | |
| LOW | kornia/augmentation/container/ops.py | 561 | CODE | |
| LOW | kornia/augmentation/container/ops.py | 607 | CODE | |
| LOW | kornia/augmentation/container/ops.py | 658 | CODE | |
| LOW | kornia/augmentation/container/ops.py | 705 | CODE | |
| LOW | kornia/augmentation/container/video.py | 194 | CODE | |
| LOW | kornia/augmentation/container/image.py | 143 | CODE | |
| LOW | kornia/augmentation/container/image.py | 284 | CODE | |
| LOW | kornia/augmentation/container/image.py | 342 | CODE | |
| LOW | kornia/augmentation/_3d/geometric/crop.py | 111 | CODE | |
| LOW | kornia/sensors/camera/camera_model.py | 48 | CODE | |
| LOW | kornia/core/check.py | 131 | CODE | |
| LOW | kornia/core/check.py | 272 | CODE | |
| LOW | kornia/core/check.py | 323 | CODE | |
| LOW | kornia/core/utils.py | 88 | CODE | |
| LOW | kornia/core/external.py | 63 | CODE | |
| LOW | kornia/core/mixin/image_module.py | 39 | CODE | |
| LOW | kornia/core/mixin/image_module.py | 58 | CODE | |
| LOW | kornia/core/mixin/image_module.py | 60 | CODE | |
| LOW | kornia/color/raw.py | 53 | CODE | |
| LOW | kornia/color/raw.py | 192 | CODE | |
| LOW | kornia/color/raw.py | 236 | CODE | |
| LOW | kornia/color/rgb.py | 149 | CODE | |
| LOW | kornia/models/sam/model.py | 133 | CODE | |
| LOW | kornia/models/rt_detr/model.py | 96 | CODE | |
| LOW | kornia/models/rt_detr/model.py | 138 | CODE | |
| LOW | kornia/models/rt_detr/architecture/resnet_d.py | 198 | CODE | |
| LOW | kornia/models/siglip2/attention.py | 76 | CODE | |
| LOW | kornia/models/siglip2/config.py | 112 | CODE | |
| LOW | kornia/models/yunet/model.py | 73 | CODE | |
| LOW | kornia/models/yunet/processors.py | 94 | CODE | |
| LOW | kornia/contrib/super_resolution.py | 169 | CODE | |
| 22 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | kornia/filters/dexined.py | 231 | CODE | |
| LOW | kornia/filters/bilateral.py | 84 | CODE | |
| LOW | kornia/filters/filter.py | 207 | CODE | |
| LOW | kornia/filters/filter.py | 457 | CODE | |
| LOW | kornia/augmentation/base.py | 383 | CODE | |
| LOW | kornia/augmentation/base.py | 586 | CODE | |
| LOW | kornia/augmentation/_2d/intensity/random_snow.py | 97 | CODE | |
| LOW | kornia/augmentation/_2d/geometric/resized_crop.py | 82 | CODE | |
| LOW | kornia/augmentation/_2d/geometric/translate.py | 77 | CODE | |
| LOW | kornia/augmentation/_2d/geometric/affine.py | 98 | CODE | |
| LOW | kornia/augmentation/_2d/geometric/crop.py | 93 | CODE | |
| LOW | kornia/augmentation/_2d/geometric/elastic_transform.py | 65 | CODE | |
| LOW | kornia/augmentation/_2d/mix/cutmix.py | 92 | CODE | |
| LOW | kornia/augmentation/_2d/mix/base.py | 121 | CODE | |
| LOW | kornia/augmentation/_2d/mix/mosaic.py | 81 | CODE | |
| LOW | kornia/augmentation/_2d/mix/mosaic.py | 242 | CODE | |
| LOW | kornia/augmentation/container/video.py | 452 | CODE | |
| LOW | kornia/augmentation/presets/ada.py | 102 | CODE | |
| LOW | kornia/augmentation/_3d/geometric/affine.py | 104 | CODE | |
| LOW | kornia/augmentation/_3d/geometric/crop.py | 85 | CODE | |
| LOW | kornia/color/colormap.py | 253 | CODE | |
| LOW | kornia/color/luv.py | 89 | CODE | |
| LOW | kornia/color/hsv.py | 115 | CODE | |
| LOW | kornia/models/tiny_vit.py | 536 | CODE | |
| LOW | kornia/models/vit.py | 101 | CODE | |
| LOW | kornia/models/vit.py | 220 | CODE | |
| LOW | kornia/models/vit.py | 280 | CODE | |
| LOW | kornia/models/dexined.py | 148 | CODE | |
| LOW | kornia/models/efficient_vit/nn/ops.py | 65 | CODE | |
| LOW | kornia/models/efficient_vit/nn/ops.py | 288 | CODE | |
| LOW | kornia/models/efficient_vit/nn/ops.py | 427 | CODE | |
| LOW | kornia/models/efficient_vit/nn/ops.py | 500 | CODE | |
| LOW | kornia/models/efficient_vit/nn/ops.py | 522 | CODE | |
| LOW | kornia/models/sam/architecture/transformer.py | 291 | CODE | |
| LOW | kornia/models/sam/architecture/image_encoder.py | 59 | CODE | |
| LOW | kornia/models/sam/architecture/image_encoder.py | 165 | CODE | |
| LOW | kornia/models/rt_detr/architecture/rtdetr_head.py | 163 | CODE | |
| LOW | kornia/models/rt_detr/architecture/rtdetr_head.py | 234 | CODE | |
| LOW | kornia/models/sam3/architecture/image_encoder.py | 123 | CODE | |
| LOW | kornia/models/sam3/architecture/prompt_encoder.py | 177 | CODE | |
| LOW | kornia/enhance/histogram.py | 166 | CODE | |
| LOW | kornia/enhance/jpeg.py | 216 | CODE | |
| LOW | kornia/enhance/jpeg.py | 269 | CODE | |
| LOW | kornia/feature/defmo.py | 131 | CODE | |
| LOW | kornia/feature/scale_space_detector.py | 112 | CODE | |
| LOW | kornia/feature/laf.py | 68 | CODE | |
| LOW | kornia/feature/laf.py | 256 | CODE | |
| LOW | kornia/feature/sold2/backbones.py | 225 | CODE | |
| LOW | kornia/feature/adalam/core.py | 270 | CODE | |
| LOW | kornia/feature/adalam/adalam.py | 141 | CODE | |
| LOW | kornia/feature/aliked/aliked.py | 561 | CODE | |
| LOW | kornia/feature/aliked/aliked.py | 610 | CODE | |
| LOW | kornia/feature/dedode/decoder.py | 79 | CODE | |
| LOW | kornia/feature/dedode/transformer/dinov2.py | 80 | CODE | |
| LOW | kornia/feature/dedode/transformer/layers/block.py | 76 | CODE | |
| LOW | kornia/feature/dedode/transformer/layers/drop_path.py | 45 | CODE | |
| LOW | kornia/geometry/ransac.py | 56 | CODE | |
| LOW | kornia/geometry/subpix/spatial_soft_argmax.py | 417 | CODE | |
| LOW | kornia/geometry/subpix/spatial_soft_argmax.py | 242 | CODE | |
| LOW | kornia/geometry/transform/image_registrator.py | 142 | CODE | |
| 2 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | kornia/augmentation/container/video.py | 117 | # TODO: implement transform_matrix | STRING |
| LOW | kornia/image/draw.py | 26 | # TODO: implement width of the line | COMMENT |
| LOW | kornia/image/draw.py | 375 | # TODO: implement optional linetypes for smooth edges | STRING |
| LOW | kornia/feature/dedode/dedode.py | 69 | # TODO: implement steerers and mnn matchers | STRING |
| LOW | kornia/geometry/vector.py | 30 | # TODO: implement more functionality to validate | COMMENT |
| LOW | kornia/geometry/line.py | 155 | # TODO: add tests, and possibly return a mask | COMMENT |
| LOW | kornia/geometry/plane.py | 182 | # TODO: implement `.unitOrthonormal` | COMMENT |
| LOW | tests/losses/test_ssim.py | 109 | # TODO: implement for single channel image | COMMENT |
| LOW | tests/color/test_colormap.py | 101 | # TODO: implement differentiability | COMMENT |
| LOW | tests/enhance/test_adjust.py | 1121 | # TODO: implement me | COMMENT |
| LOW | tests/enhance/test_adjust.py | 1193 | # TODO: implement me | COMMENT |
| LOW | tests/geometry/test_depth.py | 56 | # TODO: implement me with batch | COMMENT |
| LOW | tests/geometry/test_depth.py | 74 | # TODO: implement me with batch | COMMENT |
| LOW | tests/geometry/test_plane.py | 27 | # TODO: implement the rest of methods | COMMENT |
| LOW | tests/geometry/test_plane.py | 60 | # TODO: implement the rest of methods | COMMENT |
| LOW | tests/geometry/test_plane.py | 82 | # TODO: implement `Vector2` | COMMENT |
| LOW⚡ | tests/geometry/liegroup/test_se3.py | 63 | # TODO: implement me | COMMENT |
| LOW⚡ | tests/geometry/liegroup/test_se3.py | 67 | # TODO: implement me | COMMENT |
| LOW⚡ | tests/geometry/liegroup/test_se3.py | 71 | # TODO: implement me | COMMENT |
| LOW⚡ | tests/geometry/liegroup/test_se3.py | 75 | # TODO: implement me | COMMENT |
| LOW⚡ | tests/geometry/liegroup/test_se2.py | 96 | # TODO: implement me | COMMENT |
| LOW⚡ | tests/geometry/liegroup/test_se2.py | 100 | # TODO: implement me | COMMENT |
| LOW⚡ | tests/geometry/liegroup/test_se2.py | 104 | # TODO: implement me | COMMENT |
| LOW⚡ | tests/geometry/liegroup/test_so3.py | 41 | # TODO: implement me | COMMENT |
| LOW⚡ | tests/geometry/liegroup/test_so3.py | 45 | # TODO: implement me | COMMENT |
| LOW⚡ | tests/geometry/liegroup/test_so3.py | 49 | # TODO: implement me | COMMENT |
| LOW⚡ | tests/geometry/liegroup/test_so3.py | 53 | # TODO: implement me | COMMENT |
| LOW⚡ | tests/geometry/liegroup/test_so3.py | 57 | # TODO: implement me | COMMENT |
| LOW⚡ | tests/geometry/liegroup/test_so2.py | 88 | # TODO: implement me | COMMENT |
| LOW⚡ | tests/geometry/liegroup/test_so2.py | 92 | # TODO: implement me | COMMENT |
| LOW⚡ | tests/geometry/liegroup/test_so2.py | 96 | # TODO: implement me | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | kornia/onnx/download.py | 114 | os.makedirs(os.path.dirname(file_path), exist_ok=True) # Create the cache directory if it doesn't exist | CODE |
| MEDIUM | kornia/models/segmentation/base.py | 125 | # Create a colormap for each pixel based on the class with the highest probability | COMMENT |
| MEDIUM | kornia/feature/sold2/backbones.py | 421 | # Define the pixel shuffle | COMMENT |
| MEDIUM | kornia/feature/sold2/sold2_detector.py | 358 | # Define the distance tolerance | COMMENT |
| MEDIUM⚡ | tests/filters/test_dissolving.py | 39 | # Create a dummy image tensor with shape [B, C, H, W], where B is the batch size. | COMMENT |
| MEDIUM⚡ | tests/core/test_module.py | 39 | # Create a sample PIL image for testing | COMMENT |
| MEDIUM⚡ | tests/core/test_module.py | 44 | # Create a sample tensor for testing | COMMENT |
| MEDIUM⚡ | tests/core/test_module.py | 49 | # Create a sample numpy array for testing | COMMENT |
| MEDIUM | tests/onnx/test_sequential.py | 30 | # Create a minimal ONNX model with an input and output | COMMENT |
| MEDIUM | tests/onnx/test_sequential.py | 61 | # Create a small ONNX model as the return value of merge_models | COMMENT |
| MEDIUM | tests/models/test_kimi_vl.py | 82 | # Create a mask (B, N, N) or (B, 1, N, N) | COMMENT |
| MEDIUM | tests/models/test_sam_onnx.py | 35 | # Create a tiny pseudo-SAM model to prevent CI timeouts during ONNX trace | COMMENT |
| MEDIUM | tests/feature/test_mkd.py | 46 | # Create a dummy model structure depending on the kernel type in the URL | COMMENT |
| MEDIUM | tests/geometry/test_quaternion.py | 159 | # Create a quaternion with parameters to test gradient flow | COMMENT |
| MEDIUM | tests/geometry/transform/test_affine.py | 782 | # Define the expected shear matrix with controlled numbers | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | kornia/augmentation/_2d/geometric/base.py | 117 | # Check if we're using 'slice' cropping_mode which uses interpolate | COMMENT |
| LOW | kornia/augmentation/_2d/geometric/base.py | 274 | # Check if we're using 'slice' cropping_mode which uses interpolate | COMMENT |
| LOW | kornia/core/mixin/onnx.py | 421 | # Check if all ops are supported in the current IR version | COMMENT |
| LOW | kornia/image/draw.py | 301 | # Check if polygons are in loop closed format, if not -> make it so | STRING |
| LOW | kornia/geometry/bbox.py | 68 | # Check if differences are within tolerance (1e-4) | COMMENT |
| LOW | tests/metrics/test_ssim3d.py | 68 | # Check if both are tensors | COMMENT |
| LOW | tests/metrics/test_ssim3d.py | 91 | # Check if same shape | COMMENT |
| LOW⚡ | tests/losses/test_charbonnier.py | 45 | # Check if both are tensors | COMMENT |
| LOW⚡ | tests/losses/test_charbonnier.py | 56 | # Check if same shape | COMMENT |
| LOW⚡ | tests/losses/test_geman_macclure.py | 45 | # Check if both are tensors | COMMENT |
| LOW⚡ | tests/losses/test_geman_macclure.py | 56 | # Check if same shape | COMMENT |
| LOW⚡ | tests/losses/test_welcsh.py | 102 | # Check if both are tensors | COMMENT |
| LOW⚡ | tests/losses/test_welcsh.py | 113 | # Check if same shape | COMMENT |
| LOW⚡ | tests/losses/test_cauchy.py | 45 | # Check if both are tensors | COMMENT |
| LOW⚡ | tests/losses/test_cauchy.py | 56 | # Check if same shape | COMMENT |
| LOW | tests/onnx/test_utils.py | 215 | # Check if version was added | COMMENT |
| LOW | tests/models/test_small_sr.py | 100 | # Check if pretrained weights are cached to avoid network download attempts in offline CI | COMMENT |
| LOW | tests/models/test_small_sr.py | 212 | # Check if pretrained weights are cached to avoid network download attempts in offline CI | COMMENT |
| LOW | tests/models/test_box_filtering.py | 67 | # Set classes_to_keep to [1, 2] | COMMENT |
| LOW | tests/tracking/test_planar_tracking.py | 36 | # Set extract_features to None so isinstance(..., nn.Module) guard skips feature pre-extraction | COMMENT |
| LOW | testing/parametrized_tester.py | 84 | # Check if class has a func or function_under_test attribute | COMMENT |
| LOW | .github/workflows/scheduled_test_cpu.yml | 52 | # Check if all changed files are in paths-ignore patterns | COMMENT |
| LOW | .github/workflows/scheduled_test_cpu.yml | 55 | # Check if file matches any ignore pattern | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | tests/filters/test_gaussian.py | 353 | except Exception as e: | CODE |
| LOW | tests/augmentation/test_backward.py | 203 | except Exception as e: | CODE |
| LOW | tests/augmentation/container/test_patch_sequential.py | 79 | except Exception: | CODE |
| LOW | tests/geometry/test_quaternion.py | 219 | except Exception: | CODE |
| LOW | testing/parametrized_tester.py | 134 | except Exception as e: | CODE |
| LOW | testing/parametrized_tester.py | 170 | except Exception as e: | CODE |
| LOW | testing/parametrized_tester.py | 228 | except Exception as e: | CODE |
| LOW⚡ | benchmarks/feature/scale_space_detector.py | 517 | except Exception: | CODE |
| LOW⚡ | benchmarks/geometry/project_distort.py | 68 | except Exception: | CODE |
| LOW⚡ | benchmarks/geometry/depth_to_normals.py | 65 | except Exception: | CODE |
| LOW⚡ | benchmarks/geometry/pointcloud.py | 80 | except Exception: | CODE |
| LOW⚡ | benchmarks/geometry/linalg_epipolar_distort.py | 82 | except Exception: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | kornia/losses/charbonnier.py | 145 | """Compute the Charbonnier robust regression loss. | STRING |
| MEDIUM | kornia/losses/geman_mcclure.py | 134 | """Compute the Geman-McClure robust regression loss. | STRING |
| MEDIUM | kornia/losses/cauchy.py | 132 | """Compute the Cauchy robust regression loss. | STRING |
| MEDIUM | kornia/losses/welsch.py | 133 | """Compute the Welsch robust regression loss. | STRING |
| LOW | kornia/contrib/extract_patches.py | 93 | # For now, just use the default padding | STRING |
| LOW | kornia/contrib/object_detection.py | 365 | # If no class filtering is needed, just use a mask of all `True` | COMMENT |
| MEDIUM | kornia/geometry/ransac.py | 43 | """Module for robust geometry estimation with RANSAC. https://en.wikipedia.org/wiki/Random_sample_consensus. | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | CONTRIBUTING.md | 403 | - Completing the AI Usage Disclosure in the PR template accurately (see [AI-Assisted Development](#ai-assisted-develop | CODE |