AI Slop Code Risk Monitor

obss/sahi

SlopCodeMonitor badge for obss/sahi Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

Framework agnostic sliced/tiled inference + interactive ui + error analysis plots

14.2 Moderate pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for obss/sahi, a Python project with 5,574 GitHub stars. SynthScan examined 47,916 lines of code across 305 source files, recording 403 pattern matches distributed across 16 syntactic categories. The legacy adjusted pattern signal is 14.2 (Moderate 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.

14.2
Adjusted Signal
14.2
Raw Pattern Score
100%
Time Factor
2026-11-01
Last Push
5.6K
Stars
Python
Language
47.9K
Lines of Code
305
Files
403
Pattern Hits
2026-10-31
Scan Date
0.13
HC Hit Rate

Risk Review · Payload v1

Use each vector to guide manual verification of the underlying findings.

Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.

Cognitive Ownership Risk 28.4/100 · MEDIUM

Can maintainers explain intent, assumptions, and trade-offs? 287 finding(s).

Hallucinated Dependency & Supply Chain Risk 3.4/100 · LOW

Are imports declared and package/API names verified? 12 finding(s).

Agent Over-Engineering Ratio 43.6/100 · MEDIUM

Are wrappers, guards, and repeated structures necessary? 311 finding(s).

PR Review Velocity Impact 51.5/100 · HIGH

Which changes need focused human review? 403 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

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.

Severity Breakdown

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.

CRITICAL 1HIGH 40MEDIUM 41LOW 321

Directory Score Breakdown

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.

Pattern Findings

The scanner identified 403 distinct pattern matches across 16 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.

Hyper-Verbose Identifiers194 hits · 206 pts
SeverityFileLineSnippetContext
LOWtests/test_coco_utils.py61 def test_coco_remapping_dict_with_chained_ids(self) -> None:CODE
LOWtests/test_coco_utils.py348 def test_split_coco_as_train_val(self) -> None:CODE
LOWtests/test_coco_utils.py397 def test_yolo_labels_replace_only_the_image_suffix(CODE
LOWtests/test_coco_utils.py448 def test_coco_update_categories(self) -> None:CODE
LOWtests/test_coco_utils.py649 def test_get_subsampled_coco_preserves_other_categories(CODE
LOWtests/test_coco_utils.py717 def test_get_area_filtered_coco(self) -> None:CODE
LOWtests/test_coco_utils.py841 def test_derived_coco_keeps_remapped_categories(self) -> None:CODE
LOWtests/test_coco_utils.py897 def test_remove_invalid_coco_results_short_bbox(self) -> None:CODE
LOW⚡tests/test_import_utils.py36def test_helpers_are_not_generators(func: Callable) -> None:CODE
LOW⚡tests/test_import_utils.py46 def test_get_package_info_installed(self) -> None:CODE
LOW⚡tests/test_import_utils.py51 def test_get_package_info_missing(self) -> None:CODE
LOW⚡tests/test_import_utils.py56 def test_passes_when_all_present(self) -> None:CODE
LOW⚡tests/test_import_utils.py59 def test_passes_for_empty_iterable(self) -> None:CODE
LOW⚡tests/test_import_utils.py62 def test_raises_only_for_missing(self) -> None:CODE
LOW⚡tests/test_import_utils.py72def test_ensure_package_minimum_version(CODE
LOW⚡tests/test_import_utils.py92 def test_no_message_for_single_distribution(self, monkeypatch: pytest.MonkeyPatch) -> None:CODE
LOW⚡tests/test_import_utils.py96 def test_no_message_when_versions_agree(self, monkeypatch: pytest.MonkeyPatch) -> None:CODE
LOW⚡tests/test_import_utils.py100 def test_message_suggests_the_newest_version(self, monkeypatch: pytest.MonkeyPatch) -> None:CODE
LOW⚡tests/test_import_utils.py107 def test_newest_version_is_compared_numerically(self, monkeypatch: pytest.MonkeyPatch) -> None:CODE
LOW⚡tests/test_combine.py61 def test_batched_merging_empty(self, postprocess: Callable[..., dict[int, list[int]]]) -> None:CODE
LOW⚡tests/test_combine.py71 def test_class_aware_merging_empty(self, postprocess_class: type[NMMPostprocess]) -> None:CODE
LOW⚡tests/test_combine.py150 def test_nms_ios_small_inside_large(self) -> None:CODE
LOW⚡tests/test_combine.py352 def test_merge_postprocess_at_exact_threshold(CODE
LOW⚡tests/test_combine.py362 def test_nms_postprocess_single(self) -> None:CODE
LOW⚡tests/test_combine.py520 def test_metric_matrix_no_overlap(self) -> None:CODE
LOWtests/test_combine.py128 def test_nms_equal_scores_deterministic(self) -> None:CODE
LOWtests/test_combine.py162 def test_nms_iou_vs_ios_differ(self) -> None:CODE
LOWtests/test_combine.py242 def test_high_threshold_keeps_all(self) -> None:CODE
LOWtests/test_combine.py323 def test_nms_postprocess_class_agnostic_false(self) -> None:CODE
LOWtests/test_combine.py337 def test_greedy_nmm_postprocess(self) -> None:CODE
LOWtests/test_combine.py390 def test_invalid_backend_raises(self) -> None:CODE
LOWtests/test_combine.py397 def test_resolve_cache_invalidation(self) -> None:CODE
LOWtests/test_combine.py416 def test_auto_resolves_gpu_to_torchvision(CODE
LOWtests/test_combine.py439 def test_forced_numpy_backend_dispatch(self) -> None:CODE
LOWtests/test_combine.py559 def test_greedy_nmm_merge_order_parity(self) -> None:CODE
LOWtests/test_detectron2_model.py35 def test_perform_inference_without_mask_output(self) -> None:CODE
LOWtests/test_detectron2_model.py68 def test_convert_original_predictions_without_mask_output(self) -> None:CODE
LOWtests/test_detectron2_model.py115 def test_convert_original_predictions_with_mask_output(self) -> None:CODE
LOWtests/test_huggingface_model.py99def test_convert_original_predictions() -> None:CODE
LOWtests/test_huggingface_model.py145def test_get_prediction_huggingface() -> None:CODE
LOWtests/test_huggingface_model.py186def test_get_prediction_automodel_huggingface() -> None:CODE
LOWtests/test_huggingface_model.py232def test_get_sliced_prediction_huggingface() -> None:CODE
LOWtests/test_table.py12 def test_create_ascii_table_basic(self) -> None:CODE
LOWtests/test_huggingface_segmentation.py71def test_convert_original_predictions(model_path: str, segmentation_type: SegmentationType) -> None:CODE
LOWtests/test_huggingface_segmentation.py81def test_get_sliced_prediction(model_path: str, segmentation_type: SegmentationType) -> None:CODE
LOWtests/test_huggingface_segmentation.py109def test_get_prediction_detects_cars() -> None:CODE
LOWtests/test_huggingface_segmentation.py126def test_panoptic_conversion_keeps_images_without_segments() -> None:CODE
LOWtests/test_slicing.py177 def test_process_coco_annotations_skips_zero_area(self, degenerate_annotation: CocoAnnotation) -> None:CODE
LOWtests/test_slicing.py220 def test_slice_file_suffix_inherits_a_lossless_source_extension(self, tmp_path: Path) -> None:CODE
LOWtests/test_slicing.py228 def test_slice_image_from_path_matches_array_input(self) -> None:CODE
LOWtests/test_slicing.py254 def test_shift_masks_moves_the_mask_pixels(self) -> None:CODE
LOWtests/test_file_utils.py18 def test_list_files_recursively(self, tmp_path: Path) -> None:CODE
LOWtests/test_file_utils.py62 def test_download_from_url_interrupted(self, tmp_path: Path) -> None:CODE
LOWtests/test_torchvision.py35 def test_load_model_without_config_path(self) -> None:CODE
LOWtests/test_torchvision.py61 def test_perform_inference_without_mask_output(self) -> None:CODE
LOWtests/test_torchvision.py112 def test_convert_original_predictions_without_mask_output(self) -> None:CODE
LOWtests/test_torchvision.py147 def test_convert_original_predictions_with_mask_output(self) -> None:CODE
LOWtests/test_torchvision.py180 def test_get_prediction_torchvision(self) -> None:CODE
LOWtests/test_torchvision.py215 def test_get_sliced_prediction_torchvision(self) -> None:CODE
LOWtests/test_torchvision.py270def test_convert_original_predictions_keeps_every_image() -> None:CODE
134 more matches not shown…
Cross-File Repetition29 hits · 145 pts
SeverityFileLineSnippetContext
HIGHtests/data/models/mmdet_retinanet/default_runtime.py0mmdetection configuration file for default_runtime.py.STRING
HIGH…data/models/mmdet_cascade_mask_rcnn/default_runtime.py0mmdetection configuration file for default_runtime.py.STRING
HIGHtests/data/models/mmdet/_base_/default_runtime.py0mmdetection configuration file for default_runtime.py.STRING
HIGHsahi/models/rtdetr.py0detection model is initialized and set to self.model.STRING
HIGHsahi/models/libreyolo.py0detection model is initialized and set to self.model.STRING
HIGHsahi/models/yolo-world.py0detection model is initialized and set to self.model.STRING
HIGHsahi/models/mmdet.py0detection model is initialized and set to self.model.STRING
HIGHsahi/models/ultralytics.py0detection model is initialized and set to self.model.STRING
HIGHsahi/models/yolov5.py0detection model is initialized and set to self.model.STRING
HIGHsahi/models/torchvision.py0sets the underlying yolov5 model. args: model: any a yolov5 model **kwargs: any additional keyword arguments for model sSTRING
HIGHsahi/models/mmdet.py0sets the underlying yolov5 model. args: model: any a yolov5 model **kwargs: any additional keyword arguments for model sSTRING
HIGHsahi/models/ultralytics.py0sets the underlying yolov5 model. args: model: any a yolov5 model **kwargs: any additional keyword arguments for model sSTRING
HIGHsahi/models/yolov5.py0sets the underlying yolov5 model. args: model: any a yolov5 model **kwargs: any additional keyword arguments for model sSTRING
HIGHsahi/models/torchvision.py0returns if model output contains segmentation mask.STRING
HIGHsahi/models/roboflow.py0returns if model output contains segmentation mask.STRING
HIGHsahi/models/ultralytics.py0returns if model output contains segmentation mask.STRING
HIGHsahi/models/yolov5.py0returns if model output contains segmentation mask.STRING
HIGHsahi/models/torchvision.py0convert predictions to objectprediction list. self._original_predictions is converted to a list of prediction.objectpredSTRING
HIGHsahi/models/mmdet.py0convert predictions to objectprediction list. self._original_predictions is converted to a list of prediction.objectpredSTRING
HIGHsahi/models/detectron2.py0convert predictions to objectprediction list. self._original_predictions is converted to a list of prediction.objectpredSTRING
HIGHsahi/models/huggingface.py0convert predictions to objectprediction list. self._original_predictions is converted to a list of prediction.objectpredSTRING
HIGHsahi/models/ultralytics.py0convert predictions to objectprediction list. self._original_predictions is converted to a list of prediction.objectpredSTRING
HIGHsahi/models/yolov5.py0convert predictions to objectprediction list. self._original_predictions is converted to a list of prediction.objectpredSTRING
HIGHsahi/models/roboflow.py0convert predictions to objectprediction list. self._original_predictions is converted to a list of prediction.objectpredSTRING
HIGHsahi/models/mmdet.py0prediction is performed using self.model and the prediction result is set to self._original_predictions. args: image: npSTRING
HIGHsahi/models/detectron2.py0prediction is performed using self.model and the prediction result is set to self._original_predictions. args: image: npSTRING
HIGHsahi/models/huggingface.py0prediction is performed using self.model and the prediction result is set to self._original_predictions. args: image: npSTRING
HIGHsahi/models/ultralytics.py0prediction is performed using self.model and the prediction result is set to self._original_predictions. args: image: npSTRING
HIGHsahi/models/yolov5.py0prediction is performed using self.model and the prediction result is set to self._original_predictions. args: image: npSTRING
Decorative Section Separators39 hits · 129 pts
SeverityFileLineSnippetContext
MEDIUM⚡tests/test_combine.py52# ===========================================================================COMMENT
MEDIUM⚡tests/test_combine.py54# ===========================================================================COMMENT
MEDIUM⚡tests/test_combine.py142# ===========================================================================COMMENT
MEDIUM⚡tests/test_combine.py144# ===========================================================================COMMENT
MEDIUM⚡tests/test_combine.py370# ===========================================================================COMMENT
MEDIUM⚡tests/test_combine.py372# ===========================================================================COMMENT
MEDIUM⚡tests/test_combine.py530# ===========================================================================COMMENT
MEDIUM⚡tests/test_combine.py532# ===========================================================================COMMENT
MEDIUMtests/test_combine.py220# ===========================================================================COMMENT
MEDIUMtests/test_combine.py222# ===========================================================================COMMENT
MEDIUMtests/test_combine.py284# ===========================================================================COMMENT
MEDIUMtests/test_combine.py286# ===========================================================================COMMENT
MEDIUMtests/test_combine.py464# ===========================================================================COMMENT
MEDIUMtests/test_combine.py466# ===========================================================================COMMENT
MEDIUMtests/test_combine.py620# ===========================================================================COMMENT
MEDIUMtests/test_combine.py622# ===========================================================================COMMENT
MEDIUMscripts/detect_batch.py83 # ── load model ────────────────────────────────────────────COMMENT
MEDIUMscripts/detect_batch.py105 # ── single-image detection + save ─────────────────────────COMMENT
MEDIUMscripts/detect_batch.py125 # ── batch detection + save ────────────────────────────────COMMENT
MEDIUMscripts/detect_batch.py143 # ── speed benchmark ───────────────────────────────────────COMMENT
MEDIUMscripts/detect_batch.py176 # ── consistency ────────────────────────────────────────────COMMENT
MEDIUMsahi/postprocess/combine.py15# ---------------------------------------------------------------------------COMMENT
MEDIUMsahi/postprocess/combine.py17# ---------------------------------------------------------------------------COMMENT
MEDIUMsahi/postprocess/combine.py63# ---------------------------------------------------------------------------COMMENT
MEDIUMsahi/postprocess/combine.py65# ---------------------------------------------------------------------------COMMENT
MEDIUMsahi/postprocess/combine.py127# ---------------------------------------------------------------------------COMMENT
MEDIUMsahi/postprocess/combine.py129# ---------------------------------------------------------------------------COMMENT
MEDIUMsahi/postprocess/combine.py261# ---------------------------------------------------------------------------COMMENT
MEDIUMsahi/postprocess/combine.py263# ---------------------------------------------------------------------------COMMENT
MEDIUMsahi/postprocess/_numpy_backend.py29# ---------------------------------------------------------------------------COMMENT
MEDIUMsahi/postprocess/_numpy_backend.py31# ---------------------------------------------------------------------------COMMENT
MEDIUMsahi/postprocess/_numpy_backend.py220# ---------------------------------------------------------------------------COMMENT
MEDIUMsahi/postprocess/_numpy_backend.py222# ---------------------------------------------------------------------------COMMENT
MEDIUMsahi/postprocess/_numpy_backend.py368# ---------------------------------------------------------------------------COMMENT
MEDIUMsahi/postprocess/_numpy_backend.py370# ---------------------------------------------------------------------------COMMENT
MEDIUMsahi/postprocess/_torchvision_backend.py67# ---------------------------------------------------------------------------COMMENT
MEDIUMsahi/postprocess/_torchvision_backend.py69# ---------------------------------------------------------------------------COMMENT
MEDIUMsahi/postprocess/_numba_backend.py216# ---------------------------------------------------------------------------COMMENT
MEDIUMsahi/postprocess/_numba_backend.py218# ---------------------------------------------------------------------------COMMENT
Deep Nesting31 hits · 28 pts
SeverityFileLineSnippetContext
LOWtests/test_huggingface_model.py145CODE
LOWtests/test_huggingface_model.py186CODE
LOWtests/test_huggingface_model.py232CODE
LOWsahi/predict.py174CODE
LOWsahi/predict.py499CODE
LOWsahi/utils/coco.py1836CODE
LOWsahi/utils/coco.py1921CODE
LOWsahi/utils/coco.py1996CODE
LOWsahi/utils/coco.py958CODE
LOWsahi/utils/coco.py1007CODE
LOWsahi/utils/coco.py1419CODE
LOWsahi/utils/coco.py1480CODE
LOWsahi/utils/coco.py1518CODE
LOWsahi/utils/coco.py2225CODE
LOWsahi/utils/file.py269CODE
LOWsahi/utils/mmdet.py61CODE
LOWsahi/utils/cv.py253CODE
LOWsahi/utils/cv.py305CODE
LOWsahi/utils/cv.py615CODE
LOWsahi/utils/torch_utils.py71CODE
LOWsahi/models/mmdet.py216CODE
LOWsahi/models/roboflow.py117CODE
LOWsahi/models/roboflow.py199CODE
LOWsahi/models/ultralytics.py219CODE
LOWsahi/scripts/coco_error_analysis.py47CODE
LOWsahi/scripts/coco_error_analysis.py166CODE
LOWsahi/scripts/coco_error_analysis.py310CODE
LOWsahi/scripts/coco_evaluation.py70CODE
LOWsahi/postprocess/utils.py135CODE
LOWsahi/postprocess/utils.py162CODE
LOWsahi/postprocess/utils.py59CODE
Empty Error Handlers5 hits · 25 pts
SeverityFileLineSnippetContext
HIGHtests/test_file_utils.py79except ConnectionError:CODE
HIGHtests/test_match_all_threshold.py30except ImportError: # pragma: no cover - numba is optionalCODE
HIGHtests/test_match_all_threshold.py41except ImportError: # pragma: no cover - torchvision is optionalCODE
HIGHsahi/postprocess/backends.py37except ImportError:CODE
HIGHsahi/postprocess/backends.py82except ImportError:CODE
Over-Commented Block25 hits · 25 pts
SeverityFileLineSnippetContext
LOWtests/check_dependencies.sh1#!/bin/bashCOMMENT
LOWtests/data/models/mmdet/_base_/datasets/wider_face.py1"""MMDetection configuration file for wider_face.py."""COMMENT
LOW…models/mmdet/_base_/datasets/objects365v2_detection.py1"""MMDetection configuration file for objects365v2_detection.py."""COMMENT
LOW…ta/models/mmdet/_base_/datasets/cityscapes_instance.py1"""MMDetection configuration file for cityscapes_instance.py."""COMMENT
LOW…ta/models/mmdet/_base_/datasets/cityscapes_instance.py101# persistent_workers=True,COMMENT
LOW…ts/data/models/mmdet/_base_/datasets/coco_detection.py1"""MMDetection configuration file for coco_detection.py."""COMMENT
LOW…ts/data/models/mmdet/_base_/datasets/coco_detection.py81# test_dataloader = dict(COMMENT
LOW…ata/models/mmdet/_base_/datasets/lvis_v0.5_instance.py1"""MMDetection configuration file for lvis_v0.5_instance.py."""COMMENT
LOW…a/models/mmdet/_base_/datasets/openimages_detection.py1"""MMDetection configuration file for openimages_detection.py."""COMMENT
LOW…a/models/mmdet/_base_/datasets/cityscapes_detection.py1"""MMDetection configuration file for cityscapes_detection.py."""COMMENT
LOW…ta/models/mmdet/_base_/datasets/semi_coco_detection.py1"""MMDetection configuration file for semi_coco_detection.py."""COMMENT
LOW…ta/models/mmdet/_base_/datasets/semi_coco_detection.py121 dict(type="PackDetInputs", meta_keys=("img_id", "img_path", "ori_shape", "img_shape", "scale_factor")),COMMENT
LOW…sts/data/models/mmdet/_base_/datasets/coco_instance.py1"""MMDetection configuration file for coco_instance.py."""COMMENT
LOW…sts/data/models/mmdet/_base_/datasets/coco_instance.py81# test_dataloader = dict(COMMENT
LOW…sts/data/models/mmdet/_base_/datasets/coco_panoptic.py1"""MMDetection configuration file for coco_panoptic.py."""COMMENT
LOW…sts/data/models/mmdet/_base_/datasets/coco_panoptic.py81# batch_size=1,COMMENT
LOW…models/mmdet/_base_/datasets/coco_instance_semantic.py1"""MMDetection configuration file for coco_instance_semantic.py."""COMMENT
LOW…models/mmdet/_base_/datasets/objects365v1_detection.py1"""MMDetection configuration file for objects365v1_detection.py."""COMMENT
LOWtests/data/models/mmdet/_base_/datasets/voc0712.py1"""MMDetection configuration file for voc0712.py."""COMMENT
LOWtests/data/models/mmdet/_base_/datasets/deepfashion.py1"""MMDetection configuration file for deepfashion.py."""COMMENT
LOWtests/data/models/mmdet/yolox/yolox_s_8xb8-300e_coco.py61# Method 1: simply set the data root and let the file I/O moduleCOMMENT
LOWdocs/coco.md301# 'num_negative_images': 0,COMMENT
LOWdocs/zh/coco.md301# 'num_images_per_category': {'human': 5684, 'vehicle': 6323},COMMENT
LOWdocs/tr/coco.md301# 'num_images_per_category': {'human': 5684, 'vehicle': 6323},COMMENT
LOWsahi/postprocess/_sparse_backend.py21COMMENT
AI Slop Vocabulary15 hits · 22 pts
SeverityFileLineSnippetContext
LOWtests/data/models/mmdet/_base_/datasets/wider_face.py7# Method 1: simply set the data root and let the file I/O moduleCOMMENT
LOW…models/mmdet/_base_/datasets/objects365v2_detection.py8# Method 1: simply set the data root and let the file I/O moduleCOMMENT
LOW…ta/models/mmdet/_base_/datasets/cityscapes_instance.py8# Method 1: simply set the data root and let the file I/O moduleCOMMENT
LOW…ts/data/models/mmdet/_base_/datasets/coco_detection.py8# Method 1: simply set the data root and let the file I/O moduleCOMMENT
LOW…ata/models/mmdet/_base_/datasets/lvis_v0.5_instance.py8# Method 1: simply set the data root and let the file I/O moduleCOMMENT
LOW…a/models/mmdet/_base_/datasets/openimages_detection.py8# Method 1: simply set the data root and let the file I/O moduleCOMMENT
LOW…a/models/mmdet/_base_/datasets/cityscapes_detection.py8# Method 1: simply set the data root and let the file I/O moduleCOMMENT
LOW…ta/models/mmdet/_base_/datasets/semi_coco_detection.py8# Method 1: simply set the data root and let the file I/O moduleCOMMENT
LOW…sts/data/models/mmdet/_base_/datasets/coco_instance.py8# Method 1: simply set the data root and let the file I/O moduleCOMMENT
LOW…sts/data/models/mmdet/_base_/datasets/coco_panoptic.py8# Method 1: simply set the data root and let the file I/O moduleCOMMENT
LOW…models/mmdet/_base_/datasets/coco_instance_semantic.py8# Method 1: simply set the data root and let the file I/O moduleCOMMENT
LOW…models/mmdet/_base_/datasets/objects365v1_detection.py8# Method 1: simply set the data root and let the file I/O moduleCOMMENT
LOWtests/data/models/mmdet/_base_/datasets/voc0712.py8# Method 1: simply set the data root and let the file I/O moduleCOMMENT
LOWtests/data/models/mmdet/_base_/datasets/deepfashion.py8# Method 1: simply set the data root and let the file I/O moduleCOMMENT
LOWtests/data/models/mmdet/yolox/yolox_s_8xb8-300e_coco.py61# Method 1: simply set the data root and let the file I/O moduleCOMMENT
Modern Structural Boilerplate16 hits · 16 pts
SeverityFileLineSnippetContext
LOWtests/test_ultralytics_class_names.py33 def set_classes(self, names: list[str]) -> None:CODE
LOWsahi/__init__.py57__all__ = [CODE
LOWsahi/logger.py96__all__ = ["PKG_INFO_LEVEL", "BaseSahiLogger", "SahiLogger", "SupportsPkgInfo", "logger"]CODE
LOWsahi/utils/coco.py896 def update_categories(self, desired_name2id: dict[str, int], update_image_filenames: bool = False) -> None:CODE
LOWsahi/utils/coco.py1770def update_categories_from_file(desired_name2id: dict, coco_path: str, save_path: str) -> None:CODE
LOWsahi/models/torchvision.py75 def set_model(self, model: Any, **kwargs: Any) -> None:CODE
LOWsahi/models/mmdet.py136 def set_model(self, model: Any, **kwargs: Any) -> None:CODE
LOWsahi/models/huggingface.py115 def set_model(self, model: Any, processor: Any | None = None, **kwargs: Any) -> None:CODE
LOWsahi/models/roboflow.py107 def set_model(self, model: Any, **kwargs: Any) -> None:CODE
LOWsahi/models/huggingface_segmentation.py88 def set_model(self, model: Any, processor: Any = None, **kwargs: Any) -> None:CODE
LOWsahi/models/ultralytics.py68 def set_model(self, model: Any, **kwargs: Any) -> None:CODE
LOWsahi/models/yolov5.py39 def set_model(self, model: Any, **kwargs: Any) -> None:CODE
LOWsahi/models/base.py108 def set_model(self, model: Any, **kwargs: Any) -> None:CODE
LOWsahi/models/base.py122 def set_device(self, device: str | None = None) -> None:CODE
LOWsahi/postprocess/__init__.py5__all__ = ["get_postprocess_backend", "set_postprocess_backend"]CODE
LOWsahi/postprocess/backends.py18def set_postprocess_backend(name: str) -> None:CODE
Magic Placeholder Names3 hits · 15 pts
SeverityFileLineSnippetContext
HIGHdocs/zh/guides/models.md407 api_key="YOUR_API_KEY", # 也可以设置 ROBOFLOW_API_KEYCODE
HIGHdocs/guides/models.md428 api_key="YOUR_API_KEY", # or set ROBOFLOW_API_KEYCODE
HIGHdocs/tr/guides/models.md407 api_key="YOUR_API_KEY", # or set ROBOFLOW_API_KEYCODE
Excessive Try-Catch Wrapping15 hits · 15 pts
SeverityFileLineSnippetContext
LOWscripts/detect_batch.py93 except Exception as e:CODE
LOWsahi/utils/cv.py19except Exception:CODE
LOWsahi/utils/cv.py149 except Exception as e:CODE
LOWsahi/utils/cv.py234 except Exception:CODE
LOWsahi/utils/cv.py298 except Exception as error:CODE
LOWsahi/utils/cv.py348 except Exception as e: # handle large/tiff image readingCODE
LOWsahi/models/rtdetr.py24 except Exception as e:CODE
LOWsahi/models/libreyolo.py23 except Exception as e:CODE
LOWsahi/models/torchvision.py69 except Exception as e:CODE
LOWsahi/models/yolo-world.py24 except Exception as e:CODE
LOWsahi/models/yoloe.py119 except Exception as e:CODE
LOWsahi/models/detectron2.py46 except Exception as e: # try to load from localCODE
LOWsahi/models/detectron2.py73 except Exception as e:CODE
LOWsahi/models/ultralytics.py65 except Exception as e:CODE
LOWsahi/models/yolov5.py36 except Exception as e:CODE
Docstring Block Structure3 hits · 15 pts
SeverityFileLineSnippetContext
HIGHsahi/auto_model.py42Load a DetectionModel from given path. Args: model_type: str Name of the detection STRING
HIGHsahi/postprocess/combine.py441Apply Locality-Sensitive NMS to suppress overlapping predictions. Args: object_predictions: List ofSTRING
HIGHsahi/postprocess/utils.py337Check whether two predictions overlap at or above the given threshold. Args: pred1: First object predictionSTRING
AI Structural Patterns13 hits · 13 pts
SeverityFileLineSnippetContext
LOWsahi/auto_model.py28CODE
LOWsahi/predict.py174CODE
LOWsahi/predict.py499CODE
LOWsahi/predict.py920CODE
LOWsahi/slicing.py340CODE
LOWsahi/slicing.py489CODE
LOWsahi/utils/cv.py502CODE
LOWsahi/utils/cv.py615CODE
LOWsahi/models/mmdet.py95CODE
LOWsahi/models/huggingface.py24CODE
LOWsahi/models/roboflow.py38CODE
LOWsahi/models/base.py29CODE
LOWsahi/scripts/coco_evaluation.py357CODE
Hallucination Indicators1 hit · 10 pts
SeverityFileLineSnippetContext
CRITICALsahi/models/roboflow.py126 from inference.core.exceptions import RoboflowAPINotAuthorizedErrorCODE
Unused Imports8 hits · 8 pts
SeverityFileLineSnippetContext
LOWsahi/__init__.py10CODE
LOWsahi/__init__.py11CODE
LOWsahi/__init__.py12CODE
LOWsahi/__init__.py13CODE
LOWsahi/__init__.py14CODE
LOWsahi/__init__.py15CODE
LOWsahi/postprocess/__init__.py3CODE
LOWsahi/postprocess/__init__.py3CODE
Redundant / Tautological Comments4 hits · 6 pts
SeverityFileLineSnippetContext
LOWtests/check_dependencies.sh52 # Check if the command runs without errorsCOMMENT
LOWtests/check_dependencies.sh62# Display the resultsCOMMENT
LOWsahi/models/ultralytics.py192 # Check if model has 'task' attribute (for both .pt and .onnx models)COMMENT
LOWsahi/models/ultralytics.py207 # Check if model has 'task' attribute (for both .pt and .onnx models)COMMENT
Modern AI Meta-Vocabulary2 hits · 4 pts
SeverityFileLineSnippetContext
MEDIUMdocs/guides/models.md195In addition to the [common parameters](#common-parameters), zero-shotCODE
MEDIUMdocs/tr/guides/models.md184[Ortak parametrelere](#ortak-parametreler) ek olarak zero-shot (GroundingDINO) modelleri şunları kabul eder:CODE