We write your reusable computer vision tools. 💜
This report summarizes scanner evidence for roboflow/supervision, a Python project with 51,170 GitHub stars. SynthScan examined 134,079 lines of code across 396 source files, recording 2819 pattern matches distributed across 18 syntactic categories. The legacy adjusted pattern signal is 30.1 (High 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? 2340 finding(s).
Are imports declared and package/API names verified? 269 finding(s).
Are wrappers, guards, and repeated structures necessary? 2236 finding(s).
Which changes need focused human review? 2819 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 2819 distinct pattern matches across 18 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 | tests/test_public_api.py | 12 | def test_all_symbols_are_importable(symbol_name: str) -> None: | CODE |
| LOW | tests/test_public_api.py | 29 | def test_shipped_imports_are_listed_in_all(symbol_name: str) -> None: | CODE |
| LOW | tests/test_validate_deprecations.py | 88 | def test_validate_public_shims_warn(call: Callable[[], object], version: str) -> None: | CODE |
| LOW | tests/test_validate_deprecations.py | 93 | def test_private_validation_paths_do_not_warn() -> None: | CODE |
| LOW | tests/helpers.py | 646 | def create_predictions_with_class_iou_tests( | CODE |
| LOW⚡ | tests/classification/test_core.py | 95 | def test_top_k_rejects_negative_count() -> None: | CODE |
| LOW⚡ | tests/classification/test_core.py | 105 | def test_from_clip_empty_output_dtypes() -> None: | CODE |
| LOW⚡ | tests/classification/test_core.py | 114 | def test_from_timm_empty_output_dtypes() -> None: | CODE |
| LOW⚡ | tests/classification/test_core.py | 123 | def test_from_timm_softmaxes_logits() -> None: | CODE |
| LOW | tests/classification/test_core.py | 136 | def test_classifications_compare_numpy_fields_by_value() -> None: | CODE |
| LOW | tests/metrics/test_size_bucket_regressions.py | 48 | def test_size_bucket_match_is_not_stolen( | CODE |
| LOW | tests/metrics/test_size_bucket_regressions.py | 77 | def test_small_bucket_mar_returns_zero_without_bucket_targets() -> None: | CODE |
| LOW | tests/metrics/test_size_bucket_regressions.py | 102 | def test_medium_bucket_mar_counts_global_rank_budget() -> None: | CODE |
| LOW | tests/metrics/test_size_bucket_regressions.py | 158 | def test_perfect_detector_scores_full_marks_in_every_bucket( | CODE |
| LOW | tests/metrics/test_size_bucket_regressions.py | 196 | def test_unmatched_out_of_bucket_prediction_does_not_penalize_bucket( | CODE |
| LOW | tests/metrics/test_size_bucket_regressions.py | 232 | def test_explicit_area_metadata_controls_bucket_assignment( | CODE |
| LOW | tests/metrics/test_size_bucket_regressions.py | 268 | def test_mask_bucket_ignores_out_of_bucket_predictions( | CODE |
| LOW | tests/metrics/test_size_bucket_regressions.py | 306 | def test_obb_bucket_ignores_out_of_bucket_predictions( | CODE |
| LOW | tests/metrics/test_size_bucket_regressions.py | 359 | def test_mask_target_requires_masks(metric_cls, missing_side) -> None: | CODE |
| LOW | tests/metrics/test_mean_average_recall.py | 147 | def complex_scenario_predictions(): | CODE |
| LOW | tests/metrics/test_mean_average_recall.py | 285 | def two_class_two_image_detections(): | CODE |
| LOW | tests/metrics/test_mean_average_recall.py | 324 | def three_class_single_image_detections(): | CODE |
| LOW | tests/metrics/test_mean_average_recall.py | 364 | def test_compute_value_error_for_missing_required_fields_after_update( | CODE |
| LOW | tests/metrics/test_mean_average_recall.py | 400 | def test_mask_content_preserves_compact_mask() -> None: | CODE |
| LOW | tests/metrics/test_mean_average_recall.py | 416 | def test_compute_with_compact_mask_matches_dense() -> None: | CODE |
| LOW | tests/metrics/test_mean_average_recall.py | 437 | def test_single_perfect_detection() -> None: | CODE |
| LOW | tests/metrics/test_mean_average_recall.py | 453 | def test_recall_per_class_keeps_each_max_detection_cutoff() -> None: | CODE |
| LOW | tests/metrics/test_mean_average_recall.py | 480 | def test_empty_inputs_keep_max_detection_axis() -> None: | CODE |
| LOW | tests/metrics/test_mean_average_recall.py | 502 | def test_medium_bucket_scores_target_matched_small_prediction() -> None: | CODE |
| LOW | tests/metrics/test_mean_average_recall.py | 533 | def test_compute_value_error_for_missing_required_fields(missing_attribute) -> None: | CODE |
| LOW | tests/metrics/test_mean_average_recall.py | 567 | def test_complex_integration_scenario( | CODE |
| LOW | tests/metrics/test_mean_average_recall.py | 595 | def test_mar_at_k_limits_per_image_not_per_class( | CODE |
| LOW | tests/metrics/test_mean_average_recall.py | 651 | def test_three_class_single_image_scenario(three_class_single_image_detections) -> None: | CODE |
| LOW | tests/metrics/test_mean_average_recall.py | 698 | def test_dataset_split_integration(yolo_dataset_two_classes) -> None: | CODE |
| LOW | tests/metrics/test_mean_average_recall.py | 779 | def test_mar_at_k_ignores_predictions_ranked_below_each_limit() -> None: | CODE |
| LOW | tests/metrics/test_mean_average_recall.py | 812 | def test_greedy_matching_two_valid_pairs(): | CODE |
| LOW | tests/metrics/test_f1_score.py | 15 | def predictions_multiple_classes(self): | CODE |
| LOW⚡ | tests/metrics/test_f1_score.py | 42 | def test_initialization_default(self): | CODE |
| LOW⚡ | tests/metrics/test_f1_score.py | 50 | def test_initialization_custom(self): | CODE |
| LOW⚡ | tests/metrics/test_f1_score.py | 59 | def test_mask_content_preserves_compact_mask(self) -> None: | CODE |
| LOW | tests/metrics/test_f1_score.py | 74 | def test_compute_with_compact_mask_matches_dense(self) -> None: | CODE |
| LOW | tests/metrics/test_f1_score.py | 165 | def test_medium_bucket_scores_target_matched_small_prediction(self) -> None: | CODE |
| LOW | tests/metrics/test_f1_score.py | 182 | def test_false_positives_on_background_image_counted(self): | CODE |
| LOW | tests/metrics/test_f1_score.py | 225 | def test_false_positives_of_absent_class_counted(self, method, expected): | CODE |
| LOW | tests/metrics/test_f1_score.py | 248 | def test_false_positives_on_background_image_weighted_returns_zero(self): | CODE |
| LOW | tests/metrics/test_f1_score.py | 262 | def test_single_class_mixed_results( | CODE |
| LOW | tests/metrics/test_f1_score.py | 277 | def test_precision_recall_imbalance( | CODE |
| LOW | tests/metrics/test_f1_score.py | 310 | def test_different_iou_thresholds(self, predictions_iou_064, targets_iou_064): | CODE |
| LOW | tests/metrics/test_f1_score.py | 346 | def test_mismatched_list_lengths(self, detections_50_50, targets_50_50): | CODE |
| LOW | tests/metrics/test_f1_score.py | 358 | def test_compute_value_error_for_missing_required_fields( | CODE |
| LOW | tests/metrics/test_f1_score.py | 445 | def test_greedy_matching_two_valid_pairs(self): | CODE |
| LOW | tests/metrics/test_f1_score.py | 465 | def test_compute_no_runtime_warning_for_zero_denominator_bucket(self) -> None: | CODE |
| LOW | tests/metrics/test_lazy_imports.py | 50 | def test_metrics_package_import_keeps_pyplot_lazy() -> None: | CODE |
| LOW | tests/metrics/test_lazy_imports.py | 60 | def test_precision_plot_imports_pyplot_on_demand(monkeypatch) -> None: | CODE |
| LOW | tests/metrics/conftest.py | 65 | def predictions_multiple_classes(): | CODE |
| LOW | tests/metrics/conftest.py | 112 | def predictions_confidence_ranking(): | CODE |
| LOW | tests/metrics/test_mean_average_precision.py | 119 | def test_class_agnostic_missing_class_ids( | CODE |
| LOW | tests/metrics/test_mean_average_precision.py | 147 | def test_class_agnostic_unlabeled_inputs_ignore_unused_class_mapping(self) -> None: | CODE |
| LOW | tests/metrics/test_mean_average_precision.py | 161 | def test_class_agnostic_normalizes_across_updates(self) -> None: | CODE |
| LOW | tests/metrics/test_mean_average_precision.py | 180 | def test_class_agnostic_state_sequence(self) -> None: | CODE |
| 1954 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tests/helpers.py | 45 | Create a Detections object from list-based inputs. This is a helper function primarily used for testing purposes to | STRING |
| HIGH | tests/helpers.py | 104 | Create a KeyPoints object from list-based inputs. This is a helper function primarily used for testing purposes to | STRING |
| HIGH | tests/helpers.py | 167 | Generate random bounding boxes within given image dimensions and size constraints. Creates `count` bounding box | STRING |
| HIGH | tests/helpers.py | 437 | Create a synthetic YOLO-format dataset on disk. Generates dummy images with YOLO-format annotations, `data.yaml` fi | STRING |
| HIGH | tests/geometry/test_utils.py | 9 | Generate a semicircle with a given number of points. Parameters: n (int): amount of points in polygon | STRING |
| HIGH | src/supervision/classification/core.py | 178 | Retrieve the top k class IDs and confidences, ordered in descending order by confidence. Args: | STRING |
| HIGH | src/supervision/metrics/detection.py | 279 | Convert Supervision Detections to a numpy tensor for metric computation. Args: detections: Detections/Targe | STRING |
| HIGH | src/supervision/metrics/detection.py | 662 | Render detections onto a copy of ``scene`` with a title overlay. Args: scene: Source image panel (not mutat | STRING |
| HIGH | src/supervision/metrics/detection.py | 930 | Calculate confusion matrix based on predicted and ground-truth detections. Args: targets: Detection | STRING |
| HIGH | src/supervision/metrics/detection.py | 1089 | Calculate confusion matrix based on predicted and ground-truth detections. Args: predictions: Each | STRING |
| HIGH | src/supervision/metrics/mean_average_precision.py | 578 | Calculate the IoU between detection masks (dt) and ground-truth masks (gt), following the COCO convention: a de | STRING |
| HIGH | …supervision/metrics/keypoint_mean_average_precision.py | 431 | Add predictions and targets of one or more images to the metric. Args: predictions: The predicted k | STRING |
| HIGH | …supervision/metrics/keypoint_mean_average_precision.py | 495 | Check that a skeleton matches earlier ones and the given sigmas. Args: key_points: The skeletons of | STRING |
| HIGH | src/supervision/metrics/utils/aggregate.py | 21 | Combine several :class:`MetricResult` objects into a single DataFrame. Each row corresponds to one result (one mode | STRING |
| HIGH | src/supervision/metrics/utils/object_size.py | 131 | Get object size categories from per-detection pixel areas. Args: areas: One-dimensional pixel areas shaped | STRING |
| HIGH | src/supervision/metrics/utils/object_size.py | 257 | Get the size category of each detection. Explicit area metadata takes precedence for every metric target, matching | STRING |
| HIGH | src/supervision/key_points/core.py | 443 | Create a `sv.KeyPoints` object from the [Roboflow](https://roboflow.com/) API inference result or the [ | STRING |
| HIGH | src/supervision/key_points/core.py | 555 | Creates a `sv.KeyPoints` instance from a [MediaPipe](https://github.com/google-ai-edge/mediapipe) | STRING |
| HIGH | src/supervision/key_points/core.py | 769 | Creates a `sv.KeyPoints` instance from a [YOLOv8](https://github.com/ultralytics/ultralytics) pose infe | STRING |
| HIGH | src/supervision/key_points/core.py | 817 | Create a `sv.KeyPoints` instance from a [YOLO-NAS](https://github.com/Deci-AI/super-gradients/blob/master/YOLON | STRING |
| HIGH | src/supervision/key_points/core.py | 875 | Create a `sv.KeyPoints` object from the [Detectron2](https://github.com/facebookresearch/detectron2) in | STRING |
| HIGH | src/supervision/key_points/core.py | 929 | Create a `sv.KeyPoints` object from the [Transformers](https://github.com/huggingface/transformers) inf | STRING |
| HIGH | src/supervision/key_points/core.py | 1018 | Filter keypoints using a 2D boolean mask of shape `(n, m)`. This method selects the **same set of keypoints fro | STRING |
| HIGH | src/supervision/key_points/core.py | 1257 | Get a subset of the KeyPoints object or access an item from its data field. Supports detection-level (skeleton) | STRING |
| HIGH | src/supervision/key_points/core.py | 1413 | Merge a list of KeyPoints objects into a single KeyPoints object. This method takes a list of KeyPoints objects | STRING |
| HIGH | src/supervision/key_points/core.py | 1536 | Performs non-max suppression on the keypoint detections. Bounding boxes are derived from valid keypoints of each | STRING |
| HIGH | src/supervision/key_points/core.py | 1654 | Convert a KeyPoints object to a Detections object. This approximates the bounding box of the detected object by | STRING |
| HIGH | src/supervision/key_points/annotators.py | 75 | Annotates the given scene with skeleton vertices based on the provided key points. It draws circles at each key | STRING |
| HIGH | src/supervision/key_points/annotators.py | 168 | Annotates the given scene by drawing lines between specified key points to form edges. Edges where either endpoi | STRING |
| HIGH | src/supervision/key_points/annotators.py | 436 | Draws filled semi-transparent covariance ellipses around each keypoint. Keypoints marked as not visible via ``ke | STRING |
| HIGH | src/supervision/key_points/annotators.py | 536 | Draws stroke-only covariance ellipse outlines around each keypoint. Keypoints marked as not visible via ``key_po | STRING |
| HIGH | src/supervision/key_points/annotators.py | 640 | Draws radially-fading covariance ellipses around each keypoint. Keypoints marked as not visible via ``key_points | STRING |
| HIGH | src/supervision/key_points/annotators.py | 788 | Draws labels at skeleton vertex positions on the image. Vertices marked not visible via ``key_points.visible``, | STRING |
| HIGH | src/supervision/depth/core.py | 60 | Resolve a kind from an enum member or its case-insensitive value. Args: value: A `DepthKind` member | STRING |
| HIGH | src/supervision/depth/core.py | 118 | Resolve a resize method from an enum member or its case-insensitive value. Args: value: A `DepthRes | STRING |
| HIGH | src/supervision/depth/core.py | 164 | Resolve a scale from an enum member or its case-insensitive value. Args: value: A `DepthScale` memb | STRING |
| HIGH | src/supervision/depth/core.py | 592 | Return the values in the kind's unit as a new float32 array. Args: no_depth_value: The value writte | STRING |
| HIGH | src/supervision/depth/core.py | 616 | Create a `sv.DepthMap` from a depth model served by Roboflow Inference. Reads the `normalized_depth` that Infer | STRING |
| HIGH | src/supervision/depth/core.py | 682 | Create a `sv.DepthMap` from an Ultralytics YOLO26 depth result. `result.depth.data` holds metric depth in metre | STRING |
| HIGH | src/supervision/depth/core.py | 726 | Create a `sv.DepthMap` from a Hugging Face depth estimation result. Reads `predicted_depth` from a `depth-estim | STRING |
| HIGH | src/supervision/depth/core.py | 781 | Load a depth map from a 16-bit grayscale PNG. Values load as float32 `code / scale`. Code 0 is no depth (`NaN`) | STRING |
| HIGH | src/supervision/depth/core.py | 828 | Load a single-channel PFM file, the Middlebury and SceneFlow format. Rows are flipped to top first. Infinite va | STRING |
| HIGH | src/supervision/depth/core.py | 901 | Return the map resized to `resolution_wh` without blending any pixels. Blending would mix no-depth pixels into | STRING |
| HIGH | src/supervision/depth/core.py | 976 | Return the part of the map inside a box. Coordinates are rounded and clipped to the map, as in `sv.crop_image`. | STRING |
| HIGH | src/supervision/depth/core.py | 1027 | Return the value in the kind's unit under a point, or `None`. The unit is the map's own: metres for `depth_m`, | STRING |
| HIGH | src/supervision/depth/core.py | 1092 | Return the detections with the median depth under each object in `data`. For each detection, the median of the | STRING |
| HIGH | src/supervision/depth/colormaps.py | 54 | Resolve a colormap from an enum member or its case-insensitive name. Args: value: A `DepthColormap` | STRING |
| HIGH | src/supervision/depth/annotators.py | 106 | Colour the depth map over the scene. A map whose size differs from the scene's is stretched over the whole scen | STRING |
| HIGH | src/supervision/depth/annotators.py | 260 | Compute a clip's percentile range in one pass. Each map contributes up to about 65,536 valid values, thinned at | STRING |
| HIGH | src/supervision/depth/annotators.py | 442 | Return the nearest-rank percentile range of a map's valid values. It is the range `display_range="auto"` uses, conv | STRING |
| HIGH | src/supervision/dataset/core.py | 212 | Splits the dataset into two parts (training and testing) using the provided split_ratio. The input dataset is no | STRING |
| HIGH | src/supervision/dataset/core.py | 285 | Merge a list of `DetectionDataset` objects into a single `DetectionDataset` object. This method takes a | STRING |
| HIGH | src/supervision/dataset/core.py | 464 | Creates a Dataset instance from PASCAL VOC formatted data. Args: images_directory_path: Path to the | STRING |
| HIGH | src/supervision/dataset/core.py | 523 | Creates a Dataset instance from YOLO formatted data. When `data.yaml` declares `kpt_shape: [K, D]`, as Ultralyt | STRING |
| HIGH | src/supervision/dataset/core.py | 705 | Creates a Dataset instance from LabelMe formatted data. LabelMe stores one JSON file per image, each containing | STRING |
| HIGH | src/supervision/dataset/core.py | 809 | Creates a Dataset instance from CreateML formatted data. CreateML stores object-detection annotations in a sing | STRING |
| HIGH | src/supervision/dataset/core.py | 862 | Exports the dataset to CreateML format. This method saves the images and their corresponding annotations in Crea | STRING |
| HIGH | src/supervision/dataset/core.py | 908 | Creates a Dataset instance from COCO formatted data. Args: images_directory_path: The path to the | STRING |
| HIGH | src/supervision/dataset/core.py | 1161 | Splits the dataset into two parts (training and testing) using the provided split_ratio. Args: | STRING |
| HIGH | src/supervision/dataset/core.py | 1294 | Load data from a multiclass folder structure into a ClassificationDataset. Args: root_directory_pat | STRING |
| 172 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | tests/dataset/test_core.py | 781 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/dataset/test_core.py | 783 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/dataset/test_core.py | 840 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/dataset/test_core.py | 842 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/dataset/test_core.py | 681 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/dataset/test_core.py | 683 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/dataset/test_progress.py | 169 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/dataset/test_progress.py | 171 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/dataset/test_progress.py | 110 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/dataset/test_progress.py | 112 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/dataset/test_progress.py | 133 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/dataset/test_progress.py | 135 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/draw/test_utils.py | 172 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/draw/test_utils.py | 174 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/draw/test_utils.py | 205 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/draw/test_utils.py | 207 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/draw/test_utils.py | 237 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/draw/test_utils.py | 239 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/draw/test_utils.py | 269 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/draw/test_utils.py | 271 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/draw/test_utils.py | 299 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/draw/test_utils.py | 301 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/detection/test_from_adapters.py | 174 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/detection/test_from_adapters.py | 176 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/detection/test_from_adapters.py | 309 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/detection/test_from_adapters.py | 311 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/detection/test_from_adapters.py | 369 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/detection/test_from_adapters.py | 371 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/detection/test_from_adapters.py | 430 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/detection/test_from_adapters.py | 432 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/detection/test_from_adapters.py | 476 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/detection/test_from_adapters.py | 478 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/detection/test_from_adapters.py | 533 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/detection/test_from_adapters.py | 535 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/detection/test_from_adapters.py | 598 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/detection/test_from_adapters.py | 600 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/detection/test_from_adapters.py | 705 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/detection/test_from_adapters.py | 707 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/detection/test_compact_mask_iou.py | 23 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/detection/test_compact_mask_iou.py | 25 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/detection/test_compact_mask_iou.py | 383 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/detection/test_compact_mask_iou.py | 385 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/detection/test_compact_mask.py | 1160 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/detection/test_compact_mask.py | 1162 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/detection/tools/test_transformers.py | 21 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/detection/tools/test_transformers.py | 23 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/detection/tools/test_transformers.py | 26 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/detection/tools/test_transformers.py | 28 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/detection/tools/test_transformers.py | 148 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/detection/tools/test_transformers.py | 150 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/detection/tools/test_transformers.py | 202 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/detection/tools/test_transformers.py | 204 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/detection/tools/test_transformers.py | 339 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/detection/tools/test_transformers.py | 341 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/detection/tools/test_transformers.py | 431 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/detection/tools/test_transformers.py | 433 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/detection/tools/test_transformers.py | 65 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/detection/tools/test_transformers.py | 67 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/detection/tools/test_transformers.py | 109 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/detection/tools/test_transformers.py | 111 | # --------------------------------------------------------------------------- | COMMENT |
| 58 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tests/metrics/test_mean_average_recall.py | 0 | test compute raises valueerror when required fields are missing. | STRING |
| HIGH | tests/metrics/test_f1_score.py | 0 | test compute raises valueerror when required fields are missing. | STRING |
| HIGH | tests/metrics/test_precision.py | 0 | test compute raises valueerror when required fields are missing. | STRING |
| HIGH | tests/metrics/test_recall.py | 0 | test compute raises valueerror when required fields are missing. | STRING |
| HIGH | tests/metrics/test_f1_score.py | 0 | test that mismatched prediction/target list lengths raise error. | STRING |
| HIGH | tests/metrics/test_precision.py | 0 | test that mismatched prediction/target list lengths raise error. | STRING |
| HIGH | tests/metrics/test_recall.py | 0 | test that mismatched prediction/target list lengths raise error. | STRING |
| HIGH | tests/metrics/test_f1_score.py | 0 | greedy matching finds both tps; np.unique style missed the second pair. iou matrix: [[1.0, 0.667], [0.333, 0.538]]. at i | STRING |
| HIGH | tests/metrics/test_precision.py | 0 | greedy matching finds both tps; np.unique style missed the second pair. iou matrix: [[1.0, 0.667], [0.333, 0.538]]. at i | STRING |
| HIGH | tests/metrics/test_recall.py | 0 | greedy matching finds both tps; np.unique style missed the second pair. iou matrix: [[1.0, 0.667], [0.333, 0.538]]. at i | STRING |
| HIGH | examples/time_in_zone/rfdetr_file_example.py | 0 | calculating detections dwell time in zones, using rtsp stream. args: rtsp_url: complete rtsp url for the video stream zo | STRING |
| HIGH | examples/time_in_zone/rfdetr_stream_example.py | 0 | calculating detections dwell time in zones, using rtsp stream. args: rtsp_url: complete rtsp url for the video stream zo | STRING |
| HIGH | examples/time_in_zone/rfdetr_naive_stream_example.py | 0 | calculating detections dwell time in zones, using rtsp stream. args: rtsp_url: complete rtsp url for the video stream zo | STRING |
| HIGH | examples/time_in_zone/utils/general.py | 0 | load polygon zone configurations from a json file. this function reads a json file which contains polygon coordinates, a | STRING |
| HIGH | examples/count_people_in_zone/ultralytics_example.py | 0 | load polygon zone configurations from a json file. this function reads a json file which contains polygon coordinates, a | STRING |
| HIGH | examples/count_people_in_zone/inference_example.py | 0 | load polygon zone configurations from a json file. this function reads a json file which contains polygon coordinates, a | STRING |
| HIGH | examples/count_people_in_zone/rfdetr_example.py | 0 | load polygon zone configurations from a json file. this function reads a json file which contains polygon coordinates, a | STRING |
| HIGH | examples/count_people_in_zone/rfdetr_example.py | 0 | detect objects in a frame using inference model, filtering detections by class id and confidence threshold. args: frame | STRING |
| HIGH | examples/count_people_in_zone/ultralytics_example.py | 0 | detect objects in a frame using inference model, filtering detections by class id and confidence threshold. args: frame | STRING |
| HIGH | examples/count_people_in_zone/inference_example.py | 0 | detect objects in a frame using inference model, filtering detections by class id and confidence threshold. args: frame | STRING |
| HIGH | examples/count_people_in_zone/rfdetr_example.py | 0 | annotate a frame with zone and box annotations based on given detections. args: frame (np.ndarray): the original frame t | STRING |
| HIGH | examples/count_people_in_zone/ultralytics_example.py | 0 | annotate a frame with zone and box annotations based on given detections. args: frame (np.ndarray): the original frame t | STRING |
| HIGH | examples/count_people_in_zone/inference_example.py | 0 | annotate a frame with zone and box annotations based on given detections. args: frame (np.ndarray): the original frame t | STRING |
| HIGH | examples/speed_estimation/rfdetr_example.py | 0 | convert displacement over source-frame intervals to kilometres per hour. | STRING |
| HIGH | examples/speed_estimation/ultralytics_example.py | 0 | convert displacement over source-frame intervals to kilometres per hour. | STRING |
| HIGH | examples/speed_estimation/yolo_nas_example.py | 0 | convert displacement over source-frame intervals to kilometres per hour. | STRING |
| HIGH | examples/speed_estimation/inference_example.py | 0 | convert displacement over source-frame intervals to kilometres per hour. | STRING |
| HIGH | src/supervision/metrics/recall.py | 0 | reset the metric to its initial state, clearing all stored data. | STRING |
| HIGH | src/supervision/metrics/mean_average_recall.py | 0 | reset the metric to its initial state, clearing all stored data. | STRING |
| HIGH | src/supervision/metrics/f1_score.py | 0 | reset the metric to its initial state, clearing all stored data. | STRING |
| HIGH | src/supervision/metrics/precision.py | 0 | reset the metric to its initial state, clearing all stored data. | STRING |
| HIGH | src/supervision/metrics/mean_average_precision.py | 0 | reset the metric to its initial state, clearing all stored data. | STRING |
| HIGH | …supervision/metrics/keypoint_mean_average_precision.py | 0 | reset the metric to its initial state, clearing all stored data. | STRING |
| HIGH | src/supervision/metrics/recall.py | 0 | add new predictions and targets to the metric, but do not compute the result. args: predictions: the predicted detection | STRING |
| HIGH | src/supervision/metrics/mean_average_recall.py | 0 | add new predictions and targets to the metric, but do not compute the result. args: predictions: the predicted detection | STRING |
| HIGH | src/supervision/metrics/f1_score.py | 0 | add new predictions and targets to the metric, but do not compute the result. args: predictions: the predicted detection | STRING |
| HIGH | src/supervision/metrics/precision.py | 0 | add new predictions and targets to the metric, but do not compute the result. args: predictions: the predicted detection | STRING |
| HIGH | src/supervision/metrics/mean_average_precision.py | 0 | add new predictions and targets to the metric, but do not compute the result. args: predictions: the predicted detection | STRING |
| HIGH | src/supervision/metrics/recall.py | 0 | broadcastable function, computing the precision from the confusion matrix. args: confusion_matrix: shape (n, ..., 3), wh | STRING |
| HIGH | src/supervision/metrics/mean_average_recall.py | 0 | broadcastable function, computing the precision from the confusion matrix. args: confusion_matrix: shape (n, ..., 3), wh | STRING |
| HIGH | src/supervision/metrics/f1_score.py | 0 | broadcastable function, computing the precision from the confusion matrix. args: confusion_matrix: shape (n, ..., 3), wh | STRING |
| HIGH | src/supervision/metrics/precision.py | 0 | broadcastable function, computing the precision from the confusion matrix. args: confusion_matrix: shape (n, ..., 3), wh | STRING |
| HIGH | src/supervision/metrics/recall.py | 0 | the results of the precision metric calculation. defaults to `0` if no detections or targets were provided. attributes: | STRING |
| HIGH | src/supervision/metrics/f1_score.py | 0 | the results of the precision metric calculation. defaults to `0` if no detections or targets were provided. attributes: | STRING |
| HIGH | src/supervision/metrics/precision.py | 0 | the results of the precision metric calculation. defaults to `0` if no detections or targets were provided. attributes: | STRING |
| HIGH | src/supervision/metrics/recall.py | 0 | describe this result in the form the shared renderers consume. | STRING |
| HIGH | src/supervision/metrics/f1_score.py | 0 | describe this result in the form the shared renderers consume. | STRING |
| HIGH | src/supervision/metrics/precision.py | 0 | describe this result in the form the shared renderers consume. | STRING |
| HIGH | src/supervision/metrics/recall.py | 0 | convert the result to a pandas dataframe. returns: the result as a dataframe. | STRING |
| HIGH | src/supervision/metrics/mean_average_recall.py | 0 | convert the result to a pandas dataframe. returns: the result as a dataframe. | STRING |
| HIGH | src/supervision/metrics/f1_score.py | 0 | convert the result to a pandas dataframe. returns: the result as a dataframe. | STRING |
| HIGH | src/supervision/metrics/precision.py | 0 | convert the result to a pandas dataframe. returns: the result as a dataframe. | STRING |
| HIGH | src/supervision/metrics/mean_average_precision.py | 0 | convert the result to a pandas dataframe. returns: the result as a dataframe. | STRING |
| HIGH | …supervision/metrics/keypoint_mean_average_precision.py | 0 | convert the result to a pandas dataframe. returns: the result as a dataframe. | STRING |
| HIGH | src/supervision/metrics/recall.py | 0 | return bar-chart data for map scores. args: include_object_sizes: when ``true``, include bars for small / medium / large | STRING |
| HIGH | src/supervision/metrics/mean_average_recall.py | 0 | return bar-chart data for map scores. args: include_object_sizes: when ``true``, include bars for small / medium / large | STRING |
| HIGH | src/supervision/metrics/f1_score.py | 0 | return bar-chart data for map scores. args: include_object_sizes: when ``true``, include bars for small / medium / large | STRING |
| HIGH | src/supervision/metrics/precision.py | 0 | return bar-chart data for map scores. args: include_object_sizes: when ``true``, include bars for small / medium / large | STRING |
| HIGH | src/supervision/metrics/mean_average_precision.py | 0 | return bar-chart data for map scores. args: include_object_sizes: when ``true``, include bars for small / medium / large | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/helpers.py | 8 | CODE | |
| LOW | tests/classification/test_core.py | 1 | CODE | |
| LOW | tests/metrics/test_lazy_imports.py | 3 | CODE | |
| LOW | tests/metrics/test_core.py | 3 | CODE | |
| LOW | tests/metrics/test_keypoint_mean_average_precision.py | 1 | CODE | |
| LOW | tests/metrics/utils/test_utils.py | 3 | CODE | |
| LOW | tests/metrics/utils/test_object_size.py | 3 | CODE | |
| LOW | tests/metrics/utils/test_aggregate.py | 3 | CODE | |
| LOW | tests/depth/test_colormaps.py | 1 | CODE | |
| LOW | tests/depth/test_core.py | 1 | CODE | |
| LOW | tests/depth/test_annotators.py | 1 | CODE | |
| LOW | tests/cv2/test_release.py | 3 | CODE | |
| LOW | tests/cv2/test_components.py | 3 | CODE | |
| LOW | tests/cv2/test_transform.py | 3 | CODE | |
| LOW | tests/cv2/test_contours.py | 3 | CODE | |
| LOW | tests/cv2/test_image.py | 3 | CODE | |
| LOW | tests/cv2/test_video.py | 3 | CODE | |
| LOW | tests/cv2/test_drawing.py | 3 | CODE | |
| LOW | tests/cv2/test_text.py | 3 | CODE | |
| LOW | tests/cv2/test_color.py | 3 | CODE | |
| LOW | tests/cv2/test_cv2.py | 3 | CODE | |
| LOW | tests/cv2/test_integration.py | 3 | CODE | |
| LOW | tests/cv2/test_geometry.py | 3 | CODE | |
| LOW | tests/cv2/test_constants.py | 3 | CODE | |
| LOW | tests/utils/test_image.py | 1 | CODE | |
| LOW | tests/detection/test_geometry_dispatch.py | 1 | CODE | |
| LOW | tests/detection/test_geometry_contract.py | 25 | CODE | |
| LOW | tests/detection/tools/test_transformers.py | 3 | CODE | |
| LOW | tests/detection/utils/test_matching.py | 3 | CODE | |
| LOW | tests/detection/utils/test_iou_and_nms.py | 1 | CODE | |
| LOW | examples/time_in_zone/rfdetr_file_example.py | 1 | CODE | |
| LOW | examples/time_in_zone/rfdetr_stream_example.py | 1 | CODE | |
| LOW | examples/time_in_zone/rfdetr_naive_stream_example.py | 1 | CODE | |
| LOW | examples/compact_mask/bench_inference_api.py | 10 | CODE | |
| LOW | .github/_tests/conftest.py | 8 | CODE | |
| LOW | .github/_tests/test_update_docs_stats.py | 3 | CODE | |
| LOW | .github/_tests/test_compute_is_latest_release.py | 3 | CODE | |
| LOW | .github/_tests/test_ci_helpers.py | 3 | CODE | |
| LOW | .github/scripts/compute_is_latest_release.py | 23 | CODE | |
| LOW | .github/scripts/inject_outdated_banner.py | 45 | CODE | |
| LOW | .github/scripts/inject_tracking_carrier.py | 43 | CODE | |
| LOW | .github/scripts/verify_clean_wheel.py | 4 | CODE | |
| LOW | .github/scripts/check_doctest_fences.py | 4 | CODE | |
| LOW | .github/scripts/update_docs_stats.py | 26 | CODE | |
| LOW | src/supervision/__init__.py | 9 | CODE | |
| LOW | src/supervision/__init__.py | 9 | CODE | |
| LOW | src/supervision/__init__.py | 9 | CODE | |
| LOW | src/supervision/__init__.py | 9 | CODE | |
| LOW | src/supervision/__init__.py | 9 | CODE | |
| LOW | src/supervision/__init__.py | 9 | CODE | |
| LOW | src/supervision/__init__.py | 9 | CODE | |
| LOW | src/supervision/__init__.py | 9 | CODE | |
| LOW | src/supervision/__init__.py | 9 | CODE | |
| LOW | src/supervision/__init__.py | 9 | CODE | |
| LOW | src/supervision/__init__.py | 9 | CODE | |
| LOW | src/supervision/__init__.py | 9 | CODE | |
| LOW | src/supervision/__init__.py | 9 | CODE | |
| LOW | src/supervision/__init__.py | 9 | CODE | |
| LOW | src/supervision/__init__.py | 9 | CODE | |
| LOW | src/supervision/__init__.py | 9 | CODE | |
| 197 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/annotators/test_docs.py | 38 | CODE | |
| LOW | examples/time_in_zone/scripts/draw_zones.py | 130 | CODE | |
| LOW | examples/speed_estimation/ultralytics_example.py | 48 | CODE | |
| LOW | examples/speed_estimation/yolo_nas_example.py | 49 | CODE | |
| LOW | examples/speed_estimation/inference_example.py | 49 | CODE | |
| LOW | .github/scripts/check_doctest_fences.py | 15 | CODE | |
| LOW | src/supervision/metrics/detection.py | 1306 | CODE | |
| LOW | src/supervision/metrics/detection.py | 1414 | CODE | |
| LOW | src/supervision/metrics/mean_average_recall.py | 379 | CODE | |
| LOW | src/supervision/metrics/mean_average_precision.py | 462 | CODE | |
| LOW | src/supervision/metrics/mean_average_precision.py | 875 | CODE | |
| LOW | src/supervision/metrics/mean_average_precision.py | 1000 | CODE | |
| LOW | src/supervision/metrics/mean_average_precision.py | 1530 | CODE | |
| LOW | src/supervision/metrics/mean_average_precision.py | 1616 | CODE | |
| LOW | …supervision/metrics/keypoint_mean_average_precision.py | 562 | CODE | |
| LOW | src/supervision/metrics/_confusion_matrix_metric.py | 95 | CODE | |
| LOW | src/supervision/metrics/_confusion_matrix_metric.py | 292 | CODE | |
| LOW | src/supervision/key_points/core.py | 552 | CODE | |
| LOW | src/supervision/key_points/core.py | 1136 | CODE | |
| LOW | src/supervision/key_points/annotators.py | 167 | CODE | |
| LOW | src/supervision/key_points/annotators.py | 361 | CODE | |
| LOW | src/supervision/key_points/annotators.py | 782 | CODE | |
| LOW | src/supervision/dataset/formats/coco.py | 185 | CODE | |
| LOW | src/supervision/dataset/formats/coco.py | 271 | CODE | |
| LOW | src/supervision/annotators/core.py | 2155 | CODE | |
| LOW | src/supervision/annotators/core.py | 2954 | CODE | |
| LOW | src/supervision/annotators/core.py | 3146 | CODE | |
| LOW | src/supervision/annotators/utils.py | 38 | CODE | |
| LOW | src/supervision/annotators/utils.py | 78 | CODE | |
| LOW | src/supervision/utils/file.py | 53 | CODE | |
| LOW | src/supervision/utils/file.py | 112 | CODE | |
| LOW | src/supervision/utils/video.py | 208 | CODE | |
| LOW | src/supervision/utils/video.py | 329 | CODE | |
| LOW | src/supervision/utils/video.py | 396 | CODE | |
| LOW | src/supervision/utils/video.py | 346 | CODE | |
| LOW | src/supervision/validators/__init__.py | 197 | CODE | |
| LOW | src/supervision/detection/line_zone.py | 857 | CODE | |
| LOW | src/supervision/detection/compact_mask.py | 418 | CODE | |
| LOW | src/supervision/detection/compact_mask.py | 615 | CODE | |
| LOW | src/supervision/detection/core.py | 908 | CODE | |
| LOW | src/supervision/detection/core.py | 2185 | CODE | |
| LOW | src/supervision/detection/vlm.py | 647 | CODE | |
| LOW | src/supervision/detection/tools/inference_slicer.py | 312 | CODE | |
| LOW | src/supervision/detection/tools/inference_slicer.py | 597 | CODE | |
| LOW | src/supervision/detection/tools/inference_slicer.py | 677 | CODE | |
| LOW | src/supervision/detection/utils/internal.py | 167 | CODE | |
| LOW | src/supervision/detection/utils/internal.py | 289 | CODE | |
| LOW | src/supervision/detection/utils/internal.py | 550 | CODE | |
| LOW | src/supervision/detection/utils/internal.py | 642 | CODE | |
| LOW | src/supervision/detection/utils/internal.py | 687 | CODE | |
| LOW | src/supervision/detection/utils/internal.py | 742 | CODE | |
| LOW | src/supervision/detection/utils/iou_and_nms.py | 473 | CODE | |
| LOW | src/supervision/detection/utils/iou_and_nms.py | 1817 | CODE | |
| LOW | src/supervision/detection/utils/iou_and_nms.py | 1944 | CODE | |
| LOW | src/supervision/detection/utils/masks.py | 365 | CODE | |
| LOW | src/supervision/detection/utils/converters.py | 323 | CODE | |
| LOW | src/supervision/_cv2/_drawing.py | 295 | CODE | |
| LOW | src/supervision/_cv2/_drawing.py | 307 | CODE | |
| LOW | src/supervision/_cv2/_image.py | 269 | CODE | |
| LOW | src/supervision/_cv2/_video.py | 391 | CODE | |
| 2 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tests/metrics/test_recall.py | 151 | Recall for such a class is 0.0 rather than undefined, which is what sklearn | STRING |
| HIGH | tests/detection/test_compact_mask_iou.py | 193 | # Ensure no all-false mask (diagonal would be undefined). | COMMENT |
| HIGH | tests/detection/test_vlm.py | 451 | _QWEN_DOG_AND_CAT + ", null,]\nNote {x}", | CODE |
| HIGH⚡ | .github/_tests/test_docs_theme.py | 128 | addEventListener(_event, listener) {{ this.listeners.push(listener); }}, | CODE |
| HIGH⚡ | .github/_tests/test_docs_theme.py | 134 | addEventListener(_event, listener) {{ this.listeners.push(listener); }}, | CODE |
| HIGH⚡ | .github/_tests/test_docs_theme.py | 143 | return selector === ".md-sidebar__scrollwrap" ? scrollwrap : null; | CODE |
| HIGH | .github/_tests/test_docs_theme.py | 170 | mutationObservers.push(this); | CODE |
| HIGH | src/supervision/metrics/_confusion_matrix_metric.py | 345 | # undefined, so report 0 as the empty case did before. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | src/supervision/depth/core.py | 310 | except (TypeError, ValueError): | CODE |
| HIGH | src/supervision/depth/core.py | 84 | except ValueError: | CODE |
| HIGH | src/supervision/depth/core.py | 134 | except ValueError: | CODE |
| HIGH | src/supervision/depth/core.py | 180 | except ValueError: | CODE |
| HIGH | src/supervision/depth/colormaps.py | 78 | except ValueError: | CODE |
| HIGH | src/supervision/dataset/formats/yolo.py | 304 | except ValueError: | CODE |
| HIGH | src/supervision/utils/video.py | 373 | except Full: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | docs/how_to/benchmark_a_model.md | 53 | rf = Roboflow(api_key="<YOUR_API_KEY>") | CODE |
| HIGH | docs/how_to/benchmark_a_model.md | 53 | rf = Roboflow(api_key="<YOUR_API_KEY>") | CODE |
| HIGH | docs/how_to/benchmark_a_model.md | 67 | rf = Roboflow(api_key="<YOUR_API_KEY>") | CODE |
| HIGH | docs/how_to/benchmark_a_model.md | 67 | rf = Roboflow(api_key="<YOUR_API_KEY>") | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/supervision/__init__.py | 174 | __all__ = [ | CODE |
| LOW | src/supervision/metrics/__init__.py | 32 | __all__ = [ | CODE |
| LOW | src/supervision/key_points/core.py | 29 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/supervision/dataset/utils.py | 3 | __all__ = ["check_no_basename_collisions", "train_test_split"] | CODE |
| LOW | src/supervision/dataset/formats/labelme.py | 31 | __all__ = [ | CODE |
| LOW | src/supervision/utils/image_window.py | 146 | def set_mouse_callback(self, callback: MouseCallback | None) -> None: | CODE |
| LOW | src/supervision/utils/image_window.py | 203 | def _update_display(self) -> None: | CODE |
| LOW | src/supervision/utils/image_window.py | 215 | def _update_display_transform(self, fitted: Image.Image) -> None: | CODE |
| LOW | src/supervision/assets/__init__.py | 4 | __all__ = ["ImageAssets", "VideoAssets", "download_assets"] | CODE |
| LOW | src/supervision/detection/line_zone.py | 384 | def _update_class_id_to_name(self, detections: Detections) -> None: | CODE |
| LOW | src/supervision/detection/utils/internal.py | 16 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/supervision/_cv2/__init__.py | 247 | __all__ = [ | CODE |
| LOW | src/supervision/_cv2/_video.py | 26 | logger = logging.getLogger(__name__) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | src/supervision/metrics/mean_average_precision.py | 471 | # Create an empty EvaluationDataset object for the predictions | COMMENT |
| MEDIUM | src/supervision/metrics/mean_average_precision.py | 1708 | # Create a coco object with the targets | COMMENT |
| MEDIUM | src/supervision/metrics/mean_average_precision.py | 1712 | # Create a coco evaluator with the predictions | COMMENT |
| MEDIUM | src/supervision/metrics/mean_average_precision.py | 1758 | # Create the final MeanAveragePrecisionResult object | COMMENT |
| MEDIUM | src/supervision/detection/line_zone.py | 26 | """This class is responsible for counting the number of objects that cross a | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/supervision/utils/image_window.py | 276 | except Exception: | CODE |
| LOW | src/supervision/utils/image_window.py | 284 | except Exception: | CODE |
| LOW | src/supervision/utils/video.py | 366 | except Exception as exc: | CODE |
| LOW | src/supervision/utils/video.py | 511 | except Exception as exc: | CODE |
| LOW | src/supervision/utils/video.py | 536 | except Exception as exc: | CODE |
| LOW | src/supervision/utils/video.py | 578 | except Exception as exc: | CODE |
| LOW | src/supervision/detection/vlm.py | 302 | except Exception: | CODE |
| LOW | src/supervision/detection/vlm.py | 997 | except Exception: | CODE |
| LOW | src/supervision/_cv2/_video.py | 143 | except Exception as exc: | CODE |
| LOW | src/supervision/_cv2/_video.py | 242 | except Exception as exc: | CODE |
| LOW | src/supervision/_cv2/_video.py | 328 | except Exception as exc: | CODE |
| LOW | src/supervision/_cv2/_video.py | 387 | except Exception as exc: | CODE |
| LOW | src/supervision/_cv2/_video.py | 470 | except Exception as exc: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | examples/heatmap_and_track/rfdetr_example.py | 19 | CODE | |
| LOW | examples/heatmap_and_track/script.py | 14 | CODE | |
| LOW | src/supervision/dataset/core.py | 600 | CODE | |
| LOW | src/supervision/dataset/core.py | 955 | CODE | |
| LOW | src/supervision/annotators/core.py | 130 | CODE | |
| LOW | src/supervision/annotators/core.py | 1286 | CODE | |
| LOW | src/supervision/annotators/core.py | 1644 | CODE | |
| LOW | src/supervision/annotators/core.py | 3292 | CODE | |
| LOW | src/supervision/detection/line_zone.py | 413 | CODE | |
| LOW | src/supervision/detection/line_zone.py | 803 | CODE | |
| LOW | src/supervision/detection/tools/inference_slicer.py | 263 | CODE | |
| LOW | src/supervision/detection/tools/polygon_zone.py | 197 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | docs/llms.txt | 111 | - Zero-shot object detection with YOLO-World: https://supervision.roboflow.com/latest/cookbooks/#zero-shot-object-detect | CODE |
| MEDIUM | docs/llms.full.txt | 120 | - Zero-shot object detection with YOLO-World: https://supervision.roboflow.com/latest/cookbooks/#zero-shot-object-detect | CODE |
| MEDIUM⚡ | examples/compact_mask/benchmark.py | 621 | # Scenario runner — orchestrates stages | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | examples/traffic_analysis/setup.sh | 6 | # Check if 'data' directory does not exist and then create it | COMMENT |
| LOW | examples/count_people_in_zone/setup.sh | 6 | # Check if 'data' directory does not exist and then create it | COMMENT |
| LOW | src/supervision/metrics/mean_average_precision.py | 491 | # Check if the predictions contain any unsupported keys | COMMENT |
| LOW | src/supervision/metrics/mean_average_precision.py | 1137 | # Set recall to either the final recall value or 0 (when there | COMMENT |
| LOW | src/supervision/detection/compact_mask.py | 524 | # Check if last run has same parity (True/False) as current chunk. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | mkdocs.yml | 21 | analytics: | COMMENT |
| LOW | .github/workflows/docs-backfill.yml | 1 | # One-shot backfill: canonicals, the outdated-version banner, and the tracking carrier. | COMMENT |
| LOW | src/supervision/config.py | 1 | CLASS_NAME_DATA_FIELD: str = "class_name" | COMMENT |
| LOW | src/supervision/config.py | 21 | #: this score at ``0.5`` — it rates confidence in the ``Left``/``Right`` label, not | COMMENT |
| LOW | src/supervision/config.py | 41 | #: (``is_obb=True``) and | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | pyproject.toml | 148 | # Enable linting rules for code style, imports, and best practices. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/supervision/utils/internal.py | 147 | def my_method(cls): | STRING |