🐍 Geometric Computer Vision Library for Spatial AI
This report summarizes scanner evidence for kornia/kornia, a Python project with 11,416 GitHub stars. SynthScan examined 390,676 lines of code across 1864 source files, recording 7005 pattern matches distributed across 17 syntactic categories. The legacy adjusted pattern signal is 23.2 (Elevated pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Can maintainers explain intent, assumptions, and trade-offs? 5200 finding(s).
Are imports declared and package/API names verified? 1351 finding(s).
Are wrappers, guards, and repeated structures necessary? 4217 finding(s).
Which changes need focused human review? 7005 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 7005 distinct pattern matches across 17 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. 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 configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | conftest.py | 139 | def keep_distribution_validation(): | CODE |
| LOW | conftest.py | 228 | def _configure_known_failure_profile(config) -> ManifestProfile | None: | CODE |
| LOW | conftest.py | 259 | def _validate_complete_known_failure_run(config, option: str) -> None: | CODE |
| LOW | conftest.py | 396 | def pytest_collection_modifyitems(config, items): | CODE |
| LOW | conftest.py | 749 | def _is_subprocess_isolated_test(item) -> bool: | CODE |
| LOW | conftest.py | 910 | def seed_half_precision_manifest_run(request, test_rng_seed: int): | CODE |
| LOW | conftest.py | 920 | def skip_half_precision_on_cuda(request): | CODE |
| LOW | conftest.py | 1032 | def skip_doctests_needing_downloads(request, monkeypatch): | CODE |
| LOW⚡ | kornia/__init__.py | 126 | def get_cuda_device_if_available(*args: Any, **kwargs: Any) -> Any: | CODE |
| LOW⚡ | kornia/__init__.py | 132 | def get_mps_device_if_available(*args: Any, **kwargs: Any) -> Any: | CODE |
| LOW⚡ | kornia/__init__.py | 138 | def get_cuda_or_mps_device_if_available(*args: Any, **kwargs: Any) -> Any: | CODE |
| LOW | kornia/filters/laplacian.py | 38 | def _laplacian_slices_eligible(input: torch.Tensor) -> bool: | CODE |
| LOW | kornia/filters/guided.py | 54 | def _preprocess_fast_guided_blur( | CODE |
| LOW | kornia/filters/guided.py | 70 | def _guided_blur_grayscale_guidance( | CODE |
| LOW | kornia/filters/guided.py | 112 | def _guided_blur_multichannel_guidance( | CODE |
| LOW | kornia/filters/blur.py | 57 | def _needs_convolution_for_extreme_cpu_values(input: torch.Tensor, num_terms: int) -> bool: | CODE |
| LOW | kornia/filters/motion.py | 33 | def _scalar_params_as_tensors( | CODE |
| LOW | kornia/filters/kernels.py | 40 | def _check_laplacian_kernel_size(kernel_size: tuple[int, ...] | int) -> None: | CODE |
| LOW | kornia/filters/blur_pool.py | 334 | def _warn_ceil_mode_deprecated(ceil_mode: bool | None) -> None: | STRING |
| LOW | kornia/metrics/disparity.py | 89 | def mean_absolute_disparity_error( | CODE |
| LOW | kornia/metrics/disparity.py | 160 | def root_mean_squared_disparity_error( | STRING |
| LOW | kornia/losses/focal.py | 250 | def binary_focal_loss_with_logits( | STRING |
| LOW | kornia/losses/mutual_information.py | 67 | def truncated_gaussian_kernel(x: torch.Tensor, window_radius: float = 1.0) -> torch.Tensor: | CODE |
| LOW | kornia/losses/mutual_information.py | 153 | def _joint_histogram_to_entropies(joint_histogram: torch.Tensor, eps: float = 1e-8) -> torch.Tensor: | CODE |
| LOW | kornia/losses/mutual_information.py | 950 | 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 | 65 | def _apply_transform_unimplemented(self: nn.Module, *input: Any) -> torch.Tensor: | CODE |
| LOW | kornia/augmentation/base.py | 285 | def _process_kwargs_to_params_and_flags( | CODE |
| LOW | kornia/augmentation/base.py | 628 | def apply_non_transform_keypoint( | CODE |
| LOW | kornia/augmentation/base.py | 648 | def apply_non_transform_class( | CODE |
| LOW | kornia/augmentation/_2d/base.py | 193 | def generate_transformation_matrix( | CODE |
| LOW | …ia/augmentation/_2d/intensity/gaussian_illumination.py | 29 | def _apply_gaussian_illumination( | CODE |
| LOW | kornia/augmentation/_2d/geometric/crop.py | 217 | def _compute_crop_transformation( | STRING |
| LOW | kornia/augmentation/_2d/geometric/base.py | 97 | def compute_inverse_transformation(self, transform: torch.Tensor) -> torch.Tensor: | CODE |
| LOW | kornia/augmentation/_2d/geometric/base.py | 101 | def get_transformation_matrix( | CODE |
| LOW | kornia/augmentation/_2d/mix/mixup.py | 130 | def apply_non_transform_class( | STRING |
| LOW | kornia/augmentation/_2d/mix/cutmix.py | 165 | def apply_non_transform_class( | STRING |
| LOW⚡ | kornia/augmentation/_2d/mix/base.py | 237 | 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 | 243 | def apply_non_transform_keypoint( | CODE |
| LOW⚡ | kornia/augmentation/_2d/mix/base.py | 253 | def apply_non_transform_class( | CODE |
| LOW | kornia/augmentation/auto/base.py | 68 | def _update_transform_matrix_for_valid_op(self, module: PolicySequential) -> None: # type: ignore | CODE |
| LOW | kornia/augmentation/auto/base.py | 80 | def compose_subpolicy_sequential(self, subpolicy: SUBPOLICY_CONFIG) -> PolicySequential: | CODE |
| LOW | kornia/augmentation/auto/base.py | 95 | def get_transformation_matrix( | CODE |
| LOW | kornia/augmentation/auto/autoaugment/autoaugment.py | 172 | def compose_subpolicy_sequential(self, subpolicy: SUBPOLICY_CONFIG) -> PolicySequential: | CODE |
| LOW | kornia/augmentation/auto/rand_augment/rand_augment.py | 126 | def compose_subpolicy_sequential(self, subpolicy: SUBPOLICY_CONFIG) -> PolicySequential: | CODE |
| LOW | kornia/augmentation/auto/operations/policy.py | 59 | def _update_transform_matrix_for_valid_op(self, module: nn.Module) -> None: | CODE |
| LOW | kornia/augmentation/auto/operations/policy.py | 87 | def get_transformation_matrix( | CODE |
| LOW | …a/augmentation/auto/trivial_augment/trivial_augment.py | 92 | 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 | 205 | def _transform_input_by_shape( | STRING |
| LOW | kornia/augmentation/container/augment.py | 397 | 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 | 100 | def get_sequential_module_param(cls, param: ParamItem) -> List[ParamItem]: | CODE |
| LOW | kornia/augmentation/container/ops.py | 303 | def make_input_only_sequential(module: "K.container.ImageSequentialBase") -> Callable[P, torch.Tensor]: | CODE |
| LOW | kornia/augmentation/container/video.py | 162 | def __infer_channel_exclusive_batch_shape__(self, batch_shape: torch.Size, chennel_index: int) -> torch.Size: | STRING |
| LOW | kornia/augmentation/container/video.py | 166 | def __repeat_param_across_channels__(self, param: torch.Tensor, frame_num: int) -> torch.Tensor: | STRING |
| LOW | kornia/augmentation/container/video.py | 223 | def _input_shape_convert_back(self, input: torch.Tensor, frame_num: int) -> torch.Tensor: | STRING |
| LOW | kornia/augmentation/container/image.py | 210 | def get_random_forward_sequence(self, with_mix: bool = True) -> Tuple[Iterator[Tuple[str, nn.Module]], bool]: | CODE |
| LOW | kornia/augmentation/container/image.py | 258 | def get_mix_augmentation_indices(self, named_modules: Iterator[Tuple[str, nn.Module]]) -> List[int]: | CODE |
| LOW | kornia/augmentation/container/image.py | 324 | def get_transformation_matrix( | CODE |
| 3665 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | kornia/core/ops.py | 24 | from kornia.core.exceptions import TypeCheckError | CODE |
| CRITICAL | kornia/core/utils.py | 40 | from kornia.core.exceptions import DeviceError, TypeCheckError | CODE |
| CRITICAL | kornia/color/yuv.py | 28 | from kornia.core.exceptions import ShapeError | CODE |
| CRITICAL | kornia/morphology/morphology.py | 25 | from kornia.core.exceptions import ValueCheckError | CODE |
| CRITICAL | kornia/enhance/histogram.py | 23 | from kornia.core.exceptions import ShapeError | CODE |
| CRITICAL | kornia/geometry/line.py | 27 | from kornia.core.exceptions import ValueCheckError | CODE |
| CRITICAL | kornia/geometry/depth.py | 29 | from kornia.core.exceptions import ShapeError | CODE |
| CRITICAL | kornia/geometry/plane.py | 27 | from kornia.core.exceptions import BaseError, ValueCheckError | CODE |
| CRITICAL | tests/test_half_precision_ci.py | 368 | from kornia.core.exceptions import ShapeError | CODE |
| CRITICAL | tests/filters/test_sobel.py | 49 | from kornia.core.exceptions import ShapeError, TypeCheckError | CODE |
| CRITICAL | tests/filters/test_sobel.py | 367 | from kornia.core.exceptions import ShapeError, TypeCheckError | CODE |
| CRITICAL | tests/filters/test_sobel.py | 555 | from kornia.core.exceptions import ShapeError, TypeCheckError | CODE |
| CRITICAL | tests/filters/test_blur_pool.py | 26 | from kornia.core.exceptions import BaseError | CODE |
| CRITICAL | tests/filters/test_blur_pool.py | 293 | from kornia.core.exceptions import BaseError, ShapeError | CODE |
| CRITICAL | tests/filters/test_motion.py | 23 | from kornia.core.exceptions import BaseError | CODE |
| CRITICAL | tests/filters/test_median.py | 24 | from kornia.core.exceptions import BaseError | CODE |
| CRITICAL | tests/filters/test_median.py | 48 | from kornia.core.exceptions import BaseError, ShapeError, TypeCheckError | CODE |
| CRITICAL | tests/filters/test_bilateral.py | 23 | from kornia.core.exceptions import BaseError | CODE |
| CRITICAL | tests/filters/test_bilateral.py | 66 | from kornia.core.exceptions import TypeCheckError | CODE |
| CRITICAL | tests/filters/test_bilateral.py | 80 | from kornia.core.exceptions import BaseError | CODE |
| CRITICAL | tests/filters/test_bilateral.py | 102 | from kornia.core.exceptions import BaseError | CODE |
| CRITICAL | tests/filters/test_bilateral.py | 127 | from kornia.core.exceptions import BaseError | CODE |
| CRITICAL | tests/filters/test_bilateral.py | 198 | from kornia.core.exceptions import ShapeError | CODE |
| CRITICAL | tests/filters/test_bilateral.py | 378 | from kornia.core.exceptions import TypeCheckError | CODE |
| CRITICAL | tests/filters/test_gaussian.py | 28 | from kornia.core.exceptions import BaseError | CODE |
| CRITICAL | tests/filters/test_gaussian.py | 429 | from kornia.core.exceptions import TypeCheckError | CODE |
| CRITICAL | tests/filters/test_laplacian.py | 23 | from kornia.core.exceptions import BaseError | CODE |
| CRITICAL | tests/filters/test_filters.py | 27 | from kornia.core.exceptions import BaseError | CODE |
| CRITICAL | tests/filters/test_filters.py | 142 | from kornia.core.exceptions import ShapeError, TypeCheckError | CODE |
| CRITICAL | tests/filters/test_filters.py | 485 | from kornia.core.exceptions import ShapeError, TypeCheckError | CODE |
| CRITICAL | tests/filters/test_filters.py | 959 | from kornia.core.exceptions import ShapeError, TypeCheckError | CODE |
| CRITICAL | tests/filters/test_guided.py | 31 | from kornia.core.exceptions import BaseError, TypeCheckError | CODE |
| CRITICAL | tests/filters/test_guided.py | 241 | from kornia.core.exceptions import BaseError, TypeCheckError | CODE |
| CRITICAL | tests/filters/test_canny.py | 28 | from kornia.core.exceptions import ImageError | CODE |
| CRITICAL | tests/filters/test_canny.py | 93 | 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 | 22 | from kornia.core.exceptions import BaseError | CODE |
| CRITICAL | tests/metrics/test_aepe.py | 62 | from kornia.core.exceptions import TypeCheckError | CODE |
| CRITICAL | tests/metrics/test_aepe.py | 74 | from kornia.core.exceptions import ShapeError | CODE |
| CRITICAL | tests/metrics/test_mean_iou.py | 24 | from kornia.core.exceptions import BaseError | CODE |
| CRITICAL | tests/metrics/test_ssim3d.py | 23 | from kornia.core.exceptions import BaseError | CODE |
| CRITICAL | tests/metrics/test_ssim3d.py | 177 | from kornia.core.exceptions import TypeCheckError | CODE |
| CRITICAL | tests/metrics/test_ssim3d.py | 188 | from kornia.core.exceptions import ShapeError | CODE |
| CRITICAL | tests/metrics/test_confusion.py | 24 | from kornia.core.exceptions import BaseError | CODE |
| CRITICAL | tests/metrics/test_psnr_metric.py | 24 | from kornia.core.exceptions import BaseError | CODE |
| CRITICAL | tests/metrics/test_ssim_metric.py | 24 | from kornia.core.exceptions import BaseError | CODE |
| CRITICAL | tests/metrics/test_pose.py | 56 | from kornia.core.exceptions import ShapeError | CODE |
| CRITICAL | tests/metrics/test_map.py | 22 | from kornia.core.exceptions import BaseError | CODE |
| CRITICAL | tests/losses/test_ssim.py | 22 | from kornia.core.exceptions import BaseError | CODE |
| CRITICAL | tests/losses/test_divergence.py | 24 | from kornia.core.exceptions import BaseError, 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_one_hot.py | 22 | from kornia.core.exceptions import BaseError | CODE |
| CRITICAL | tests/losses/test_total_variation.py | 22 | from kornia.core.exceptions import BaseError | CODE |
| CRITICAL | tests/losses/test_lovaz_softmax.py | 69 | from kornia.core.exceptions import ShapeError | CODE |
| CRITICAL | tests/losses/test_mutual_information.py | 25 | from kornia.core.exceptions import BaseError, 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 |
| 59 more matches not shown… | ||||
| 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 | 52 | CODE | |
| LOW | kornia/__init__.py | 56 | 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 | 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 | |
| LOW | kornia/filters/__init__.py | 41 | CODE | |
| LOW | kornia/filters/__init__.py | 41 | CODE | |
| LOW | kornia/filters/__init__.py | 41 | CODE | |
| 1161 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | conftest.py | 1 | # LICENSE HEADER MANAGED BY add-license-header | COMMENT |
| LOW | conftest.py | 361 | COMMENT | |
| LOW | conftest.py | 601 | torch.compile(_dummy_fn) | COMMENT |
| LOW | pyproject.toml | 261 | "D400", # missing-trailing-period | 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/pose.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 |
| 981 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | kornia/filters/kernels_geometry.py | 34 | Return 2D motion blur filter. Convention: - ``direction`` is clamped to ``[-1, 1]`` and weighs the line lin | STRING |
| HIGH | kornia/filters/kernels_geometry.py | 166 | Return 3D motion blur filter. Convention: See the Convention block on :func:`~kornia.filters.get_motion_ker | STRING |
| HIGH | kornia/filters/laplacian.py | 62 | Create an operator that returns a tensor using a Laplacian filter. .. image:: _static/img/laplacian.png The op | STRING |
| HIGH | kornia/filters/laplacian.py | 158 | Create an operator that returns a tensor using a Laplacian filter. The operator filters each channel of the given t | STRING |
| HIGH | kornia/filters/guided.py | 181 | Blur a torch.Tensor using a Guided filter. .. image:: _static/img/guided_blur.png The operator is an edge-pres | STRING |
| HIGH | kornia/filters/guided.py | 268 | Blur a torch.Tensor using a Guided filter. The operator is an edge-preserving image smoothing filter. See :cite:`he | STRING |
| HIGH | kornia/filters/in_range.py | 86 | 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 | 218 | Create a module for applying lower and upper bounds to input tensors. Convention: See the Convention block | STRING |
| HIGH | kornia/filters/motion.py | 55 | Blur 2D images (4D torch.Tensor) using the motion filter. Convention: See the Convention block on :func:`~k | STRING |
| HIGH | kornia/filters/motion.py | 127 | Blur 3D volumes (5D torch.Tensor) using the motion filter. Convention: See the Convention block on :func:`~ | STRING |
| HIGH | kornia/filters/bilateral.py | 131 | Blur a torch.Tensor using a Bilateral filter. .. image:: _static/img/bilateral_blur.png The operator is an edg | STRING |
| HIGH | kornia/filters/bilateral.py | 195 | Blur a torch.Tensor using a Joint Bilateral filter. .. image:: _static/img/joint_bilateral_blur.png This opera | STRING |
| HIGH | kornia/filters/bilateral.py | 277 | Blur a torch.Tensor using a Bilateral filter. The operator is an edge-preserving image smoothing filter. The weight | STRING |
| HIGH | kornia/filters/bilateral.py | 351 | Blur a torch.Tensor using a Joint Bilateral filter. This operator is almost identical to a Bilateral filter. The on | STRING |
| HIGH | kornia/filters/kernels.py | 744 | Return Gaussian filter coefficients. Convention: - In a floating ``dtype`` the kernel samples :math:`\exp(- | STRING |
| HIGH | kornia/filters/kernels.py | 801 | Return Gaussian filter coefficients based on the modified Bessel functions. Adapted from: https://github.com/Projec | STRING |
| HIGH | kornia/filters/kernels.py | 848 | Return Gaussian filter coefficients by interpolating the error function. Adapted from: https://github.com/Project-M | STRING |
| HIGH | kornia/filters/kernels.py | 893 | Return Gaussian filter matrix coefficients. Convention: See the Convention block on :func:`~kornia.filters. | STRING |
| HIGH | kornia/filters/kernels.py | 956 | Return Gaussian filter matrix coefficients. Convention: See the Convention block on :func:`~kornia.filters. | STRING |
| HIGH | kornia/filters/kernels.py | 1017 | Return the coefficients of a 1D Laplacian filter. Convention: - In a floating ``dtype``, or a signed intege | STRING |
| HIGH | kornia/filters/kernels.py | 1060 | Return Laplacian filter matrix coefficients. Convention: See the Convention block on :func:`~kornia.filters | STRING |
| HIGH | kornia/filters/kernels.py | 1119 | Generate pascal filter kernel by kernel size. Args: kernel_size: height and width of the kernel. no | STRING |
| HIGH | kornia/filters/kernels.py | 1156 | 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 | 1249 | Return Hanning (also known as Hann) kernel. .. math:: w(n) = 0.5 - 0.5 \cos\left(\frac{2\pi n}{M - 1}\right) \qqua | STRING |
| HIGH | kornia/filters/otsu_thresholding.py | 381 | Apply automatic image thresholding using Otsu algorithm to the input tensor. Convention: - One threshold is | STRING |
| HIGH | kornia/filters/blur_pool.py | 102 | Compute pools and blurs and downsample a given feature map. Equivalent to ``nn.Sequential(nn.MaxPool2d(max_pool_siz | STRING |
| HIGH | kornia/filters/blur_pool.py | 238 | 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 | 66 | Create an operator that sharpens image with: out = 2 * image - gaussian_blur2d(image). Convention: See the | STRING |
| HIGH | kornia/filters/gaussian.py | 92 | Create an operator that blurs a torch.Tensor using a Gaussian filter. .. image:: _static/img/gaussian_blur2d.png | STRING |
| HIGH | kornia/metrics/ssim.py | 43 | 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 | 36 | 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 | 260 | Criterion that computes Binary Focal loss. According to :cite:`lin2018focal`, the Focal loss is computed as follows | STRING |
| HIGH | kornia/losses/mutual_information.py | 284 | 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 | 92 | 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. We compute the MS_SSIM + L1 loss of [1] as follows: .. math | 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. Convention: - int64 ``labels`` | STRING |
| HIGH | kornia/losses/ssim3d.py | 35 | Compute a loss based on the SSIM measurement. The loss is the structural dissimilarity (DSSIM) of each voxel, clamp | STRING |
| HIGH | kornia/losses/ssim3d.py | 89 | Create a criterion that computes a loss based on the SSIM measurement. The loss is the structural dissimilarity (DS | 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 | 30 | Apply CutMix augmentation to a batch of torch.Tensor images. .. image:: _static/img/RandomCutMixV2.png Impleme | STRING |
| HIGH | kornia/augmentation/auto/base.py | 171 | Undo the drawn sub-policy, or refuse when it cannot be undone. Only geometric operations are invertible. A poli | STRING |
| HIGH | kornia/augmentation/auto/autoaugment/ops.py | 44 | Return the magnitude range that bin ``magnitude`` selects from ``magnitudes``. A bin indexes two adjacent points, s | STRING |
| HIGH | kornia/augmentation/auto/rand_augment/rand_augment.py | 127 | Build a :class:`PolicySequential` for one RandAugment candidate op. Args: subpolicy: Single-entry p | STRING |
| HIGH | …a/augmentation/auto/trivial_augment/trivial_augment.py | 93 | Build a :class:`PolicySequential` from one TrivialAugment candidate. Args: subpolicy: Single-entry | STRING |
| HIGH | kornia/augmentation/container/dispatcher.py | 72 | Apply each augmentation to the matching input tuple. Args: *input: One input bundle per configured | STRING |
| HIGH | kornia/augmentation/container/patch.py | 208 | Compute spatial padding needed before patch extraction. Args: input: Input image tensor. | STRING |
| HIGH | kornia/augmentation/container/patch.py | 470 | Inverse the patch pipeline when supported. Args: input: Augmented image tensor. params: | STRING |
| HIGH | kornia/augmentation/container/patch.py | 491 | Transform masks for intensity-only patch pipelines. Args: input: Input mask tensor. par | STRING |
| HIGH | kornia/augmentation/container/patch.py | 512 | Inverse mask transforms for supported patch pipelines. Args: input: Augmented mask tensor. | STRING |
| HIGH | kornia/augmentation/container/patch.py | 533 | Transform boxes for intensity-only patch pipelines. Args: input: Input boxes. params: P | STRING |
| HIGH | kornia/augmentation/container/patch.py | 554 | Inverse box transforms for supported patch pipelines. Args: input: Augmented boxes. par | STRING |
| HIGH | kornia/augmentation/container/patch.py | 575 | Transform keypoints for intensity-only patch pipelines. Args: input: Input keypoints. p | STRING |
| HIGH | kornia/augmentation/container/patch.py | 596 | 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 | 101 | Extract nested sequential parameters from a :class:`ParamItem`. Args: param: Parameter wrapper prod | STRING |
| HIGH | kornia/augmentation/container/ops.py | 173 | Normalize user-provided data keys into :class:`DataKey` values. Args: data_keys: Optional keys pass | STRING |
| 113 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 | 33 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | pixi.toml | 35 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | pixi.toml | 69 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | pixi.toml | 71 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | pixi.toml | 75 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | pixi.toml | 78 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | pixi.toml | 94 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | pixi.toml | 96 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | pyproject.toml | 75 | # ============================================================================= | COMMENT |
| MEDIUM | pyproject.toml | 77 | # ============================================================================= | COMMENT |
| MEDIUM | pyproject.toml | 147 | # ---------------------------- | COMMENT |
| MEDIUM | kornia/feature/xfeat.py | 331 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM | kornia/feature/xfeat.py | 333 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM | kornia/feature/xfeat.py | 483 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM | kornia/feature/xfeat.py | 485 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM | kornia/feature/scale_space_detector.py | 594 | # ── Hoist loop invariants ──────────────────────────────────────────── | COMMENT |
| MEDIUM | kornia/feature/scale_space_detector.py | 617 | # ── Process octaves sequentially ──────────────────────────────────── | COMMENT |
| MEDIUM | kornia/feature/aliked/aliked.py | 72 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | kornia/feature/aliked/aliked.py | 74 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | kornia/feature/aliked/aliked.py | 108 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | kornia/feature/aliked/aliked.py | 110 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | kornia/feature/aliked/aliked.py | 146 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | kornia/feature/aliked/aliked.py | 148 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | kornia/feature/aliked/aliked.py | 202 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | kornia/feature/aliked/aliked.py | 204 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | kornia/feature/aliked/aliked.py | 387 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | kornia/feature/aliked/aliked.py | 389 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | kornia/feature/aliked/aliked.py | 413 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | kornia/feature/aliked/aliked.py | 415 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | kornia/feature/aliked/aliked.py | 617 | # --------------------------------------------------------------------------- | STRING |
| MEDIUM | kornia/feature/aliked/aliked.py | 619 | # --------------------------------------------------------------------------- | STRING |
| MEDIUM | kornia/feature/aliked/aliked.py | 734 | # --------------------------------------------------------------------------- | STRING |
| MEDIUM | kornia/feature/aliked/aliked.py | 736 | # --------------------------------------------------------------------------- | STRING |
| MEDIUM | kornia/geometry/boxes.py | 876 | # ----------------- | STRING |
| MEDIUM | kornia/geometry/boxes.py | 878 | # ----------------- | STRING |
| MEDIUM | kornia/geometry/boxes.py | 898 | # ----------------- | STRING |
| MEDIUM | kornia/geometry/boxes.py | 900 | # ----------------- | STRING |
| MEDIUM | kornia/geometry/calibration/pnp.py | 157 | # ============ | STRING |
| MEDIUM | kornia/geometry/calibration/pnp.py | 159 | # ============ | STRING |
| MEDIUM | kornia/geometry/subpix/spatial_soft_argmax.py | 904 | # ── Step 1: NMS maxima ──────────────────────────────────────────────────── | STRING |
| MEDIUM | kornia/geometry/subpix/spatial_soft_argmax.py | 910 | # ── Step 2: dilate NMS positions — L∞ ball of radius dilation_radius ──────── | STRING |
| MEDIUM | kornia/geometry/subpix/spatial_soft_argmax.py | 989 | # ── Step 5: build a compact int32 lookup table ─────────────────────────── | STRING |
| MEDIUM | kornia/geometry/subpix/spatial_soft_argmax.py | 1003 | # ── Step 6: iterative lookup — no .any().item() sync ───────────────────── | STRING |
| MEDIUM | kornia/geometry/subpix/spatial_soft_argmax.py | 1067 | # ── Write refined coordinates and corrected response ────────────────────── | STRING |
| MEDIUM | tests/filters/test_filters.py | 1358 | # ---------------------------------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/augmentation/test_onnx_export.py | 231 | # ---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/augmentation/test_onnx_export.py | 242 | # ---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/color/test_yuv.py | 27 | # --------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/color/test_yuv.py | 42 | # --------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/feature/test_xfeat.py | 86 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/feature/test_xfeat.py | 88 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/feature/test_xfeat.py | 362 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/feature/test_xfeat.py | 364 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/feature/test_xfeat.py | 26 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/feature/test_xfeat.py | 28 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/feature/test_xfeat.py | 137 | # --------------------------------------------------------------------------- | COMMENT |
| 110 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 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/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/models/segmentation/base.py | 0 | build objectdetector from config. this is a placeholder to satisfy the abstract method requirement. use kornia.contrib.o | STRING |
| HIGH | kornia/contrib/edge_detection.py | 0 | build objectdetector from config. this is a placeholder to satisfy the abstract method requirement. use kornia.contrib.o | STRING |
| HIGH | kornia/contrib/object_detection.py | 0 | build objectdetector from config. this is a placeholder to satisfy the abstract method requirement. use kornia.contrib.o | STRING |
| HIGH | tests/feature/test_affine_shape_estimator.py | 0 | `gk` must be a real buffer so `.to()` moves it, and `forward` must not rebind it (#4069). | STRING |
| HIGH | tests/feature/test_local_features_orientation.py | 0 | `gk` must be a real buffer so `.to()` moves it, and `forward` must not rebind it (#4069). | STRING |
| HIGH | tests/feature/test_siftdesc.py | 0 | `gk` must be a real buffer so `.to()` moves it, and `forward` must not rebind it (#4069). | STRING |
| HIGH | tests/feature/test_affine_shape_estimator.py | 0 | `.to()` must carry the kernel along with the parameters. float16 rather than the default float32, or the dtype assertion | STRING |
| HIGH | tests/feature/test_siftdesc.py | 0 | `.to()` must carry the kernel along with the parameters. float16 rather than the default float32, or the dtype assertion | STRING |
| HIGH | tests/feature/test_local_features_orientation.py | 0 | `.to()` must carry the kernel along with the parameters. float16 rather than the default float32, or the dtype assertion | STRING |
| HIGH | tests/feature/test_affine_shape_estimator.py | 0 | registered non-persistent, so existing checkpoints keep loading with strict=true. | STRING |
| HIGH | tests/feature/test_siftdesc.py | 0 | registered non-persistent, so existing checkpoints keep loading with strict=true. | STRING |
| HIGH | tests/feature/test_local_features_orientation.py | 0 | registered non-persistent, so existing checkpoints keep loading with strict=true. | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | conftest.py | 590 | def _setup_torch_compile() -> None: | CODE |
| LOW | kornia/config.py | 23 | __all__ = ["InstallationMode", "kornia_config"] | CODE |
| LOW | kornia/constants.py | 23 | __all__ = ["BorderType", "DType", "Resample", "SamplePadding", "TKEnum", "pi"] | CODE |
| LOW | kornia/filters/__init__.py | 69 | __all__ = [ | CODE |
| LOW | kornia/filters/blur_pool.py | 31 | __all__ = [ | CODE |
| LOW | kornia/metrics/__init__.py | 41 | __all__ = [ | CODE |
| LOW | kornia/losses/__init__.py | 60 | __all__ = [ | CODE |
| LOW | kornia/augmentation/__init__.py | 118 | __all__ = [ | CODE |
| LOW | kornia/augmentation/base.py | 204 | 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 | 32 | __all__ = ["RandomMosaic"] | CODE |
| LOW | kornia/augmentation/auto/__init__.py | 29 | __all__ = ["AutoAugment", "PolicyAugmentBase", "PolicySequential", "RandAugment", "TrivialAugment"] | CODE |
| LOW | kornia/augmentation/auto/base.py | 68 | def _update_transform_matrix_for_valid_op(self, module: PolicySequential) -> None: # type: ignore | CODE |
| LOW | kornia/augmentation/auto/operations/policy.py | 59 | 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/utils/__init__.py | 57 | __all__ = [ | CODE |
| LOW | kornia/augmentation/container/patch.py | 38 | __all__ = ["PatchSequential"] | CODE |
| LOW | kornia/augmentation/container/params.py | 22 | __all__ = ["ParamItem", "PatchParamItem"] | CODE |
| LOW | kornia/augmentation/container/augment.py | 45 | __all__ = ["AugmentationSequential"] | CODE |
| LOW | kornia/augmentation/container/augment.py | 397 | 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 | 35 | __all__ = ["ImageSequential"] | CODE |
| LOW | kornia/augmentation/container/base.py | 34 | __all__ = ["BasicSequentialBase", "ImageSequentialBase", "SequentialBase"] | CODE |
| LOW⚡ | kornia/augmentation/container/base.py | 486 | def _update_transform_matrix_for_valid_op(self, module: nn.Module) -> None: | CODE |
| LOW⚡ | kornia/augmentation/container/base.py | 489 | def _update_transform_matrix_by_module(self, module: nn.Module) -> None: | CODE |
| LOW | kornia/augmentation/container/base.py | 500 | 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 | 28 | __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 | 34 | __all__ = ["AffineGenerator"] | CODE |
| LOW | kornia/augmentation/random_generator/_2d/shear.py | 33 | __all__ = ["ShearGenerator"] | CODE |
| LOW | …rnia/augmentation/random_generator/_2d/color_jitter.py | 32 | __all__ = ["ColorJitterGenerator"] | CODE |
| LOW | kornia/augmentation/random_generator/_2d/crop.py | 35 | __all__ = ["CropGenerator", "ResizedCropGenerator", "center_crop_generator"] | CODE |
| LOW | …/augmentation/random_generator/_2d/rectangle_earase.py | 32 | __all__ = ["RectangleEraseGenerator"] | CODE |
| LOW | kornia/augmentation/random_generator/_2d/resize.py | 28 | __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 | 35 | __all__ = ["CutmixGenerator"] | CODE |
| LOW | …ia/augmentation/random_generator/_2d/gaussian_noise.py | 25 | __all__ = ["GaussianNoiseGenerator"] | CODE |
| LOW | kornia/augmentation/random_generator/_2d/motion_blur.py | 26 | __all__ = ["MotionBlurGenerator"] | CODE |
| LOW | kornia/augmentation/random_generator/_2d/mosaic.py | 29 | __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/download.py | 880 | def _settle_quarantine(path: str, quarantine: str, *, loaded: bool, downloaded: bool) -> None: | CODE |
| LOW | kornia/core/__init__.py | 36 | __all__ = [ | CODE |
| LOW | kornia/core/exceptions.py | 26 | __all__ = [ | CODE |
| LOW | kornia/core/safetensors.py | 37 | __all__ = ["check_safetensors", "load_safetensors"] | CODE |
| LOW | kornia/core/external.py | 28 | logger = logging.getLogger(__name__) | CODE |
| LOW | kornia/core/_small_linalg.py | 50 | __all__ = [ | CODE |
| LOW | kornia/core/mixin/onnx.py | 301 | def set_session(self, session: ort.InferenceSession) -> None: # type: ignore | CODE |
| 105 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | kornia/filters/kernels.py | 641 | CODE | |
| LOW | kornia/metrics/mean_average_precision.py | 27 | CODE | |
| LOW | kornia/losses/ms_ssim.py | 193 | CODE | |
| LOW | …ia/augmentation/_2d/intensity/gaussian_illumination.py | 117 | CODE | |
| LOW | …rnia/augmentation/_2d/intensity/linear_illumination.py | 89 | CODE | |
| LOW | …rnia/augmentation/_2d/intensity/linear_illumination.py | 210 | CODE | |
| LOW | kornia/augmentation/_2d/intensity/salt_pepper_noise.py | 90 | CODE | |
| LOW | kornia/augmentation/_2d/geometric/crop.py | 160 | CODE | |
| LOW | kornia/augmentation/_2d/geometric/crop.py | 217 | CODE | |
| LOW | kornia/augmentation/_2d/geometric/crop.py | 293 | CODE | |
| LOW | kornia/augmentation/_2d/geometric/base.py | 225 | CODE | |
| LOW | kornia/augmentation/_2d/mix/base.py | 83 | CODE | |
| LOW | kornia/augmentation/_2d/mix/base.py | 263 | CODE | |
| LOW | kornia/augmentation/_2d/mix/mosaic.py | 145 | CODE | |
| LOW | kornia/augmentation/_2d/mix/mosaic.py | 231 | CODE | |
| LOW | kornia/augmentation/auto/autoaugment/autoaugment.py | 154 | CODE | |
| LOW | kornia/augmentation/auto/rand_augment/rand_augment.py | 159 | CODE | |
| LOW | kornia/augmentation/auto/operations/policy.py | 87 | CODE | |
| LOW | kornia/augmentation/utils/param_validation.py | 198 | CODE | |
| LOW | kornia/augmentation/utils/helpers.py | 508 | CODE | |
| LOW | kornia/augmentation/container/patch.py | 396 | CODE | |
| LOW | kornia/augmentation/container/augment.py | 566 | CODE | |
| LOW | kornia/augmentation/container/augment.py | 622 | CODE | |
| LOW | kornia/augmentation/container/augment.py | 661 | CODE | |
| LOW | kornia/augmentation/container/augment.py | 756 | CODE | |
| LOW | kornia/augmentation/container/ops.py | 331 | CODE | |
| LOW | kornia/augmentation/container/ops.py | 363 | CODE | |
| LOW | kornia/augmentation/container/ops.py | 461 | CODE | |
| LOW | kornia/augmentation/container/ops.py | 518 | CODE | |
| LOW | kornia/augmentation/container/ops.py | 582 | CODE | |
| LOW | kornia/augmentation/container/ops.py | 621 | CODE | |
| LOW | kornia/augmentation/container/ops.py | 674 | CODE | |
| LOW | kornia/augmentation/container/ops.py | 726 | CODE | |
| LOW | kornia/augmentation/container/ops.py | 772 | CODE | |
| LOW | kornia/augmentation/container/ops.py | 828 | CODE | |
| LOW | kornia/augmentation/container/video.py | 241 | CODE | |
| LOW | kornia/augmentation/container/image.py | 180 | CODE | |
| LOW | kornia/augmentation/container/image.py | 324 | CODE | |
| LOW | kornia/augmentation/_3d/geometric/crop.py | 140 | CODE | |
| LOW | kornia/core/check.py | 131 | CODE | |
| LOW | kornia/core/check.py | 272 | CODE | |
| LOW | kornia/core/check.py | 327 | CODE | |
| LOW | kornia/core/check.py | 467 | CODE | |
| LOW | kornia/core/download.py | 633 | CODE | |
| LOW | kornia/core/download.py | 998 | CODE | |
| LOW | kornia/core/download.py | 1250 | CODE | |
| LOW | kornia/core/ops.py | 37 | CODE | |
| LOW | kornia/core/safetensors.py | 355 | CODE | |
| LOW | kornia/core/mixin/image_module.py | 137 | CODE | |
| LOW | kornia/core/mixin/image_module.py | 198 | CODE | |
| LOW | kornia/core/mixin/image_module.py | 246 | CODE | |
| LOW | kornia/color/raw.py | 53 | CODE | |
| LOW | kornia/color/raw.py | 197 | CODE | |
| LOW | kornia/color/raw.py | 247 | CODE | |
| LOW | kornia/color/rgb.py | 164 | CODE | |
| LOW | kornia/io/io.py | 77 | CODE | |
| LOW | kornia/io/sample.py | 60 | CODE | |
| LOW | kornia/models/rrdbnet.py | 48 | CODE | |
| LOW | kornia/models/sam/model.py | 146 | CODE | |
| LOW | kornia/models/rt_detr/model.py | 112 | CODE | |
| 86 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | kornia/core/download.py | 984 | except Exception as e: | CODE |
| LOW | kornia/core/download.py | 1184 | except Exception as e: # noqa: BLE001 | CODE |
| LOW | kornia/core/download.py | 1383 | except Exception as e: # noqa: BLE001 | CODE |
| LOW | kornia/io/io.py | 115 | except Exception as e: | CODE |
| LOW | kornia/geometry/_ransac_program.py | 468 | except Exception as error: # noqa: BLE001 - the AOT API is experimental; the traced program is equivalent | CODE |
| LOW | tests/augmentation/test_backward.py | 203 | except Exception as e: | CODE |
| MEDIUM | tests/core/test_download.py | 2007 | def direct_torch_call() -> None: | CODE |
| LOW | tests/core/test_download.py | 2010 | except Exception as e: # the server hanging up below is what ends it | CODE |
| LOW | tests/core/test_small_linalg.py | 441 | except Exception as err: | CODE |
| LOW | tests/geometry/test_conversions.py | 4047 | except Exception as err: | CODE |
| LOW | tests/geometry/test_conversions.py | 4520 | except Exception as err: | CODE |
| LOW | tests/geometry/test_quaternion.py | 363 | except Exception: | CODE |
| LOW | tests/geometry/transform/test_imgwarp.py | 185 | except Exception: | CODE |
| LOW | docs/source/conf.py | 147 | except Exception as exc: # noqa: BLE001 - an optional dependency is missing; nothing to count there | CODE |
| LOW | docs/export_support/harness.py | 299 | except Exception as e: | CODE |
| LOW | docs/export_support/harness.py | 306 | except Exception as e: | CODE |
| LOW | docs/export_support/harness.py | 321 | except Exception as e: | CODE |
| LOW | docs/export_support/harness.py | 326 | except Exception as e: | CODE |
| LOW | docs/export_support/harness.py | 352 | except Exception as e: | CODE |
| LOW | docs/export_support/harness.py | 411 | except Exception: | CODE |
| LOW | docs/export_support/merge.py | 69 | except Exception: | CODE |
| LOW | docs/export_support/cases_models.py | 45 | except Exception as e: | CODE |
| LOW | docs/export_support/probe_compile.py | 131 | except Exception as e: | CODE |
| LOW | docs/export_support/cases_aug.py | 153 | except Exception as e: | CODE |
| LOW | docs/export_support/cases_aug.py | 181 | except Exception as e: | CODE |
| LOW | docs/export_support/cases_aug.py | 224 | except Exception as e: | CODE |
| LOW | docs/export_support/cases_aug.py | 251 | except Exception as e: | CODE |
| LOW | docs/export_support/cases_feature.py | 126 | except Exception as e: | CODE |
| LOW | testing/half_precision_ci.py | 402 | except Exception as error: # noqa: BLE001 - every writer failure must preserve the previous candidate. | 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/common.py | 87 | except Exception as exc: | CODE |
| LOW⚡ | benchmarks/common.py | 114 | except Exception: | CODE |
| LOW⚡ | benchmarks/common.py | 118 | except Exception: | CODE |
| LOW⚡ | benchmarks/common.py | 126 | except Exception: | CODE |
| LOW | benchmarks/common.py | 220 | except Exception: # noqa: S110 | CODE |
| LOW | benchmarks/common.py | 237 | except Exception: | CODE |
| LOW | benchmarks/common.py | 245 | except Exception: | CODE |
| LOW | benchmarks/common.py | 412 | except Exception as exc: | CODE |
| LOW | benchmarks/common.py | 621 | except Exception as e: | CODE |
| LOW | benchmarks/common.py | 626 | except Exception as sync_err: | CODE |
| LOW | benchmarks/filters/flagship.py | 255 | except Exception: | CODE |
| LOW | benchmarks/augmentation/per_op.py | 57 | except Exception: | CODE |
| LOW | benchmarks/augmentation/per_op.py | 136 | except Exception as e: | CODE |
| LOW | benchmarks/augmentation/per_op.py | 148 | except Exception: # noqa: S112 - benchmark: an op that won't compile is just skipped | CODE |
| LOW | benchmarks/augmentation/vs_torchvision.py | 58 | except Exception: | CODE |
| LOW | benchmarks/augmentation/vs_torchvision.py | 76 | except Exception as e: # pragma: no cover - op/backend unsupported on this wheel | CODE |
| LOW⚡ | benchmarks/augmentation/vs_torchvision.py | 160 | except Exception as e: | CODE |
| LOW⚡ | benchmarks/augmentation/vs_torchvision.py | 168 | except Exception as e: | CODE |
| LOW⚡ | benchmarks/augmentation/vs_torchvision.py | 173 | except Exception as e: | CODE |
| MEDIUM | benchmarks/augmentation/vs_torchvision.py | 55 | def _git_commit() -> str: | CODE |
| LOW | benchmarks/augmentation/pipeline.py | 65 | except Exception: | CODE |
| LOW | benchmarks/augmentation/pipeline.py | 157 | except Exception as e: # pragma: no cover - optional dependency / version drift | CODE |
| LOW | benchmarks/augmentation/pipeline.py | 163 | except Exception as e: # pragma: no cover - optional dependency | CODE |
| MEDIUM | benchmarks/augmentation/pipeline.py | 62 | def _git_commit() -> str: | CODE |
| LOW | benchmarks/morphology/engines.py | 130 | except Exception as sync_error: | CODE |
| LOW | benchmarks/morphology/engines.py | 286 | except Exception as exc: | CODE |
| LOW | benchmarks/morphology/engines.py | 314 | except Exception as exc: | CODE |
| LOW | benchmarks/morphology/engines.py | 330 | except Exception as exc: | CODE |
| 9 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | kornia/augmentation/container/image.py | 355 | except ValueError: | CODE |
| HIGH | kornia/core/download.py | 488 | except ValueError: | CODE |
| HIGH | kornia/core/download.py | 955 | except FileNotFoundError: # pragma: no cover - torch removed it itself | CODE |
| HIGH | kornia/core/download.py | 732 | except FileNotFoundError: | CODE |
| HIGH | tests/geometry/test_boxes.py | 510 | except ValueError: | CODE |
| HIGH | tests/geometry/test_boxes.py | 516 | except ValueError: | CODE |
| HIGH | tests/geometry/test_boxes.py | 1548 | except ValueError: | CODE |
| HIGH | tests/geometry/test_boxes.py | 1554 | except ValueError: | CODE |
| HIGH | benchmarks/common.py | 213 | except (OSError, AttributeError): | CODE |
| HIGH | benchmarks/common.py | 220 | except Exception: # noqa: S110 | CODE |
| HIGH | benchmarks/common.py | 484 | except ImportError: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | kornia/contrib/augmentation_audit.py | 186 | """Serialize the report as strict JSON (nonfinite diagnostic values become null).""" | STRING |
| HIGH | kornia/geometry/quaternion.py | 345 | # The negative real axis is the branch cut of the power: theta = pi and n = v / |v| is undefined, so the arm | STRING |
| HIGH | kornia/geometry/homography.py | 536 | is undefined, so it is NaN rather than built from the identity ``safe_inverse_with_mask`` substitutes. | CODE |
| HIGH | kornia/geometry/homography.py | 588 | return torch.where(rank8[:, None], null, torch.full_like(null, float("nan"))) | CODE |
| HIGH | kornia/geometry/solvers/polynomial_solver.py | 254 | undefined; this is a surrogate convention, not a mathematical Jacobian. A double root that the | CODE |
| HIGH | kornia/geometry/solvers/polynomial_solver.py | 942 | when all four roots are real. A repeated-root Jacobian is undefined; repeated roots | CODE |
| HIGH | tests/geometry/test_homography.py | 612 | assert torch.equal(result[0], null) | CODE |
| HIGH | tests/geometry/test_quaternion.py | 191 | # #4955 (fixed): on the negative real axis theta = pi and the axis n = v / |v| is undefined, so q**t returned | COMMENT |
| HIGH | tests/geometry/solvers/test_polynomial_solver.py | 573 | # A repeated root's Jacobian is undefined; the surrogate stays finite and keeps the sum of the roots, -b / a. | COMMENT |
| HIGH | tests/geometry/transform/test_affine.py | 137 | # Empty in and empty out is not undefined, so it comes back empty rather than | COMMENT |
| HIGH | benchmarks/common.py | 179 | """Write one run as strict-valid JSON ``{"metadata": ..., "results": [...]}`` (non-finite → null). | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | kornia/models/segmentation/base.py | 187 | # Create a colormap for each pixel based on the class with the highest probability. The colormap is | COMMENT |
| MEDIUM | kornia/feature/sold2/backbones.py | 387 | # Define the pixel shuffle | COMMENT |
| MEDIUM | kornia/feature/sold2/sold2_detector.py | 356 | # Define the distance tolerance | COMMENT |
| MEDIUM⚡ | tests/filters/test_dissolving.py | 40 | # Create a dummy image tensor with shape [B, C, H, W], where B is the batch size. | COMMENT |
| MEDIUM⚡ | tests/core/test_module.py | 46 | # Create a sample PIL image for testing | COMMENT |
| MEDIUM⚡ | tests/core/test_module.py | 51 | # Create a sample tensor for testing | COMMENT |
| MEDIUM⚡ | tests/core/test_module.py | 56 | # Create a sample numpy array for testing | COMMENT |
| MEDIUM | tests/onnx/test_sequential.py | 38 | # Create a minimal ONNX model with an input and output | COMMENT |
| MEDIUM | tests/onnx/test_sequential.py | 68 | # Create a small ONNX model as the return value of merge_models | COMMENT |
| MEDIUM | tests/models/test_kimi_vl.py | 159 | # Create a mask (B, N, N) or (B, 1, N, N) | COMMENT |
| MEDIUM | tests/models/test_sam_onnx.py | 59 | # 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 | 303 | # Create a quaternion with parameters to test gradient flow | COMMENT |
| MEDIUM | tests/geometry/transform/test_affine.py | 955 | # Define the expected shear matrix with controlled numbers | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | pyproject.toml | 351 | ] # survey harness: subprocess workers, inline lambdas that build case inputs | CODE |
| MEDIUM | kornia/losses/charbonnier.py | 174 | """Compute the Charbonnier robust regression loss. | STRING |
| MEDIUM | kornia/losses/geman_mcclure.py | 142 | """Compute the Geman-McClure robust regression loss. | STRING |
| MEDIUM | kornia/losses/cauchy.py | 141 | """Compute the Cauchy robust regression loss. | STRING |
| MEDIUM | kornia/losses/welsch.py | 144 | """Compute the Welsch robust regression loss. | STRING |
| LOW | kornia/contrib/extract_patches.py | 92 | # For now, just use the default padding | STRING |
| LOW | kornia/contrib/object_detection.py | 366 | # If no class filtering is needed, just use a mask of all `True` | COMMENT |
| MEDIUM | kornia/feature/laf.py | 525 | r"""Run ``grid_sample`` with border padding, robust across devices. | STRING |
| MEDIUM | kornia/geometry/ransac.py | 160 | """Module for robust geometry estimation with RANSAC. https://en.wikipedia.org/wiki/Random_sample_consensus. | STRING |
| MEDIUM | tests/test_import.py | 84 | # (kornia#4260), but pre-importing it here keeps the guard robust regardless. | STRING |
| MEDIUM | tests/filters/test_guided.py | 41 | # non-divisible sizes, float32 and float64 eps=0.1 and the harness's. bfloat16's 0.05 still catches only gross errors | COMMENT |
| MEDIUM | tests/filters/test_guided.py | 197 | # harness's 1e-03, while every bfloat16 case fits inside _DTYPE_PRECISIONS already. | COMMENT |
| MEDIUM | tests/filters/test_guided.py | 440 | # an outlier, the harness's 1-eps budget is simply too tight here. bfloat16 also cannot | COMMENT |
| MEDIUM | tests/filters/test_guided.py | 442 | # arithmetic runs. float16 and float32 still use the harness tolerances. | COMMENT |
| MEDIUM | tests/color/test_yuv.py | 142 | # the error it budgets for. That is a harness-wide gap rather than a YUV one, and no TPU runs | COMMENT |
| MEDIUM | tests/morphology/test_dilation.py | 689 | # Compare at the harness's per-dtype tolerance rather than a strict nonzero() index list. | COMMENT |
| MEDIUM | tests/geometry/transform/test_elastic_transform.py | 220 | # sigma=(0.3, 3.0) (large sigma_x) -- a robust ordering property, not an exact pixel list. | COMMENT |
| MEDIUM | docs/export_support/cases_aug.py | 83 | def eval(self): # keep the augmentation in train mode (harness calls .eval()) | CODE |
| MEDIUM | .github/workflows/tests.yml | 271 | # candidate and its completion receipt; recorder aborts and harness failures | COMMENT |
| MEDIUM | .github/workflows/upstream_probe.yml | 17 | # --record-known-failures mode, which only fails the job on a genuine harness problem | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | kornia/augmentation/_2d/intensity/color_jitter.py | 137 | CODE | |
| LOW | kornia/augmentation/_2d/intensity/color_jiggle.py | 196 | CODE | |
| LOW | kornia/augmentation/_2d/geometric/resized_crop.py | 114 | CODE | |
| LOW | kornia/augmentation/_2d/geometric/translate.py | 82 | CODE | |
| LOW | kornia/augmentation/_2d/geometric/affine.py | 108 | CODE | |
| LOW | kornia/augmentation/_2d/geometric/crop.py | 132 | CODE | |
| LOW | kornia/augmentation/_2d/geometric/elastic_transform.py | 75 | CODE | |
| LOW | kornia/augmentation/_2d/mix/cutmix.py | 113 | CODE | |
| LOW | kornia/augmentation/_2d/mix/mosaic.py | 116 | CODE | |
| LOW | kornia/augmentation/presets/ada.py | 102 | CODE | |
| LOW | kornia/augmentation/_3d/geometric/affine.py | 118 | CODE | |
| LOW | kornia/augmentation/_3d/geometric/crop.py | 114 | CODE | |
| LOW | kornia/models/tiny_vit.py | 534 | CODE | |
| LOW | kornia/models/vit.py | 220 | CODE | |
| LOW | kornia/models/efficient_vit/nn/ops.py | 65 | CODE | |
| LOW | kornia/models/efficient_vit/nn/ops.py | 286 | CODE | |
| LOW | kornia/models/efficient_vit/nn/ops.py | 423 | CODE | |
| LOW | kornia/models/sam/architecture/image_encoder.py | 59 | CODE | |
| LOW | kornia/models/sam/architecture/image_encoder.py | 163 | CODE | |
| LOW | kornia/models/sam3/architecture/image_encoder.py | 121 | CODE | |
| LOW | kornia/enhance/histogram.py | 225 | CODE | |
| LOW | kornia/feature/integrated.py | 329 | CODE | |
| LOW | kornia/feature/scale_space_detector.py | 255 | CODE | |
| LOW | kornia/feature/adalam/core.py | 269 | CODE | |
| LOW | kornia/feature/adalam/adalam.py | 148 | CODE | |
| LOW | kornia/feature/adalam/adalam.py | 221 | CODE | |
| LOW | kornia/feature/aliked/aliked.py | 567 | CODE | |
| LOW | kornia/feature/dedode/decoder.py | 76 | CODE | |
| LOW | kornia/feature/dedode/transformer/dinov2.py | 75 | CODE | |
| LOW | kornia/feature/dedode/transformer/layers/block.py | 62 | CODE | |
| LOW | kornia/geometry/ransac.py | 256 | CODE | |
| LOW | kornia/geometry/subpix/spatial_soft_argmax.py | 458 | CODE | |
| LOW | kornia/geometry/subpix/spatial_soft_argmax.py | 252 | CODE | |
| LOW | kornia/geometry/transform/image_registrator.py | 230 | CODE | |
| LOW | kornia/geometry/transform/affwarp.py | 931 | CODE | |
| LOW | docs/export_support/harness.py | 70 | CODE | |
| LOW | docs/export_support/cases_aug.py | 90 | CODE | |
| LOW | benchmarks/common.py | 300 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | kornia/augmentation/container/video.py | 133 | # TODO: implement transform_matrix | STRING |
| LOW | kornia/image/draw.py | 26 | # TODO: implement width of the line | COMMENT |
| LOW | kornia/image/draw.py | 367 | # TODO: implement optional linetypes for smooth edges | STRING |
| LOW | kornia/feature/dedode/dedode.py | 102 | # 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 | 186 | # TODO: add tests, and possibly return a mask | COMMENT |
| LOW | tests/color/test_colormap.py | 150 | # TODO: implement differentiability | COMMENT |
| LOW | tests/enhance/test_adjust.py | 1399 | # TODO: implement me | COMMENT |
| LOW | tests/enhance/test_adjust.py | 1495 | # TODO: implement me | COMMENT |
| LOW⚡ | tests/geometry/test_depth.py | 141 | # TODO: implement me with batch | COMMENT |
| LOW | tests/geometry/test_depth.py | 109 | # TODO: implement me with batch | COMMENT |
| LOW | tests/geometry/test_plane.py | 29 | # TODO: implement the rest of methods | COMMENT |
| LOW | tests/geometry/test_plane.py | 95 | # TODO: implement the rest of methods | COMMENT |
| LOW | tests/geometry/liegroup/test_se3.py | 62 | # TODO: implement me | COMMENT |
| LOW | tests/geometry/liegroup/test_se3.py | 111 | # TODO: implement me | COMMENT |
| LOW | tests/geometry/liegroup/test_se3.py | 115 | # TODO: implement me | COMMENT |
| LOW | tests/geometry/liegroup/test_se2.py | 118 | # TODO: implement me | COMMENT |
| LOW | tests/geometry/liegroup/test_se2.py | 122 | # 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 | 273 | # TODO: implement me | COMMENT |
| LOW | tests/geometry/liegroup/test_so3.py | 277 | # TODO: implement me | COMMENT |
| LOW⚡ | tests/geometry/liegroup/test_so2.py | 89 | # TODO: implement me | COMMENT |
| LOW⚡ | tests/geometry/liegroup/test_so2.py | 93 | # TODO: implement me | COMMENT |
| LOW⚡ | tests/geometry/liegroup/test_so2.py | 97 | # TODO: implement me | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | kornia/core/mixin/onnx.py | 523 | # Check if all ops are supported in the current IR version | COMMENT |
| LOW | kornia/image/draw.py | 286 | # Check if polygons are in loop closed format, if not -> make it so | STRING |
| LOW | kornia/geometry/bbox.py | 84 | # Check if differences are within tolerance (1e-4) | COMMENT |
| LOW | tests/metrics/test_ssim3d.py | 176 | # Check if both are tensors | COMMENT |
| LOW | tests/metrics/test_ssim3d.py | 199 | # 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 | 170 | # Check if both are tensors | COMMENT |
| LOW⚡ | tests/losses/test_welcsh.py | 181 | # 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/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 |