AI Slop Code RIsk Monitor

ultralytics/ultralytics

Ultralytics YOLO27, YOLO26, YOLO11, YOLOv8 — object detection, instance segmentation, semantic segmentation, image classification, pose estimation, object tracking

17.3 Elevated pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for ultralytics/ultralytics, a Python project with 62,361 GitHub stars. SynthScan examined 203,095 lines of code across 1010 source files, recording 1660 pattern matches distributed across 19 syntactic categories. The legacy adjusted pattern signal is 17.3 (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.

17.3
Adjusted Signal
17.3
Raw Pattern Score
100%
Time Factor
2026-10-09
Last Push
62.4K
Stars
Python
Language
203.1K
Lines of Code
1.0K
Files
1.7K
Pattern Hits
2026-10-12
Scan Date
0.45
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 43.8/100 · MEDIUM

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

Hallucinated Dependency & Supply Chain Risk 18.1/100 · LOW

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

Agent Over-Engineering Ratio 13.0/100 · LOW

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

PR Review Velocity Impact 63.1/100 · HIGH

Which changes need focused human review? 1660 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 2HIGH 457MEDIUM 41LOW 1160

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 1660 distinct pattern matches across 19 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.

Docstring Block Structure349 hits · 1715 pts
SeverityFileLineSnippetContext
HIGHCONTRIBUTING.md64Example function demonstrating Google-style docstrings. Args: arg1 (int): The first argument. arg2 STRING
HIGHCONTRIBUTING.md85Example function demonstrating Google-style docstrings. Args: arg1: The first argument. arg2: The sSTRING
HIGHdocs/en/help/contributing.md89Example function demonstrating Google-style docstrings. Args: arg1 (int): The first argumenSTRING
HIGHdocs/en/help/contributing.md111Example function demonstrating Google-style docstrings. Args: arg1 (int): The first argumenSTRING
HIGHdocs/en/help/contributing.md133Example function demonstrating Google-style docstrings. Args: arg1 (int): The first argumenSTRING
HIGHdocs/en/help/contributing.md174Example function demonstrating Google-style docstrings. Args: arg1: The first argument. STRING
HIGHultralytics/nn/tasks.py1633Context manager for temporarily adding or modifying modules in Python's module cache (`sys.modules`). This functionSTRING
HIGHultralytics/nn/tasks.py1787Resolve a model-yaml `activation` spec to a `torch.nn` module instance without `eval()`. Accepts only the documSTRING
HIGHultralytics/nn/tasks.py1868Load a PyTorch checkpoint with torch.load(), handling legacy module paths and common load failures. If a ModuleNotFSTRING
HIGHultralytics/nn/text_model.py87Convert input texts to CLIP tokens. Args: texts (str | list[str]): Input text or list of texts to tSTRING
HIGHultralytics/nn/text_model.py108Encode tokenized texts into normalized feature vectors. This method processes tokenized text inputs through theSTRING
HIGHultralytics/nn/text_model.py133Encode images into normalized feature vectors. This method processes image inputs through the CLIP model to genSTRING
HIGHultralytics/nn/text_model.py218Convert input texts to MobileCLIP tokens. Args: texts (list[str]): List of text strings to tokenizeSTRING
HIGHultralytics/nn/text_model.py234Encode tokenized texts into normalized feature vectors. Args: texts (torch.Tensor): Tokenized text STRING
HIGHultralytics/nn/text_model.py295Convert input texts to MobileCLIP tokens. Args: texts (list[str]): List of text strings to tokenizeSTRING
HIGHultralytics/nn/text_model.py316Encode tokenized texts into normalized feature vectors. Args: texts (torch.Tensor): Tokenized text STRING
HIGHultralytics/nn/text_model.py337Build a text encoding model based on the specified variant. Args: variant (str): Model variant in format "bSTRING
HIGHultralytics/nn/distill_model.py176Auto-detect distillation feature layers from the model's Detect head. Returns the Detect head's input layer indSTRING
HIGHultralytics/nn/autobackend.py45Check class names and convert to dict format if needed. Args: names (list | dict): Class names as list or dSTRING
HIGHultralytics/nn/autobackend.py284Delegate attribute access to the backend. This allows AutoBackend to transparently expose backend attributes STRING
HIGHultralytics/nn/autobackend.py394Take a path to a model file and return the model format string. Args: p (str | Path): Path to the mSTRING
HIGHultralytics/nn/modules/utils.py15Create a list of cloned modules from the given module. Args: module (nn.Module): The module to be cloned. STRING
HIGHultralytics/nn/modules/utils.py35Initialize conv/fc bias value according to a given probability value. This function calculates the bias initializatSTRING
HIGHultralytics/nn/modules/utils.py56Calculate the inverse sigmoid function for a tensor. This function applies the inverse of the sigmoid function to aSTRING
HIGHultralytics/nn/modules/block.py1443C2PSA module with attention mechanism for enhanced feature extraction and processing. This module implements a convSTRING
HIGHultralytics/solutions/config.py106Update configuration parameters with new values provided as keyword arguments. Args: **kwargs (Any)STRING
HIGHultralytics/solutions/object_blurrer.py49Apply a blurring effect to detected objects in the input image. This method extracts tracking information, applSTRING
HIGHultralytics/solutions/security_alarm.py116Monitor the frame, process object detections, and trigger alerts if thresholds are met. This method processes tSTRING
HIGHultralytics/solutions/distance_calculation.py76Process a video frame and calculate the distance between two selected bounding boxes. This method extracts tracSTRING
HIGHultralytics/solutions/trackzone.py50Process the input frame to track objects within a defined region. This method initializes the annotator, createSTRING
HIGHultralytics/solutions/object_counter.py153Process an input frame and update object counts. This method initializes the counting region, extracts tracks, STRING
HIGHultralytics/solutions/instance_segmentation.py52Perform instance segmentation on the input image and annotate the results. Args: im0 (np.ndarray): STRING
HIGHultralytics/solutions/similarity_search.py146Return top-k semantically similar images to the given query. Args: query (str): Natural language teSTRING
HIGHultralytics/solutions/queue_management.py48Process queue management for a single frame of video. Args: im0 (np.ndarray): Input image for proceSTRING
HIGHultralytics/solutions/parking_management.py228Process the input image for parking lot management and visualization. This function analyzes the input image, eSTRING
HIGHultralytics/solutions/ai_gym.py56Monitor workouts using Ultralytics YOLO Pose Model. This function processes an input image to track and analyzeSTRING
HIGHultralytics/solutions/vision_eye.py39Perform object detection, vision mapping, and annotation on the input image. Args: im0 (np.ndarray)STRING
HIGHultralytics/solutions/object_cropper.py47Crop detected objects from the input image and save them as separate images. Args: im0 (np.ndarray)STRING
HIGHultralytics/solutions/solutions.py219Return the axis-aligned box [x1, y1, x2, y2] enclosing a box extracted by `extract_tracks`. Boxes from OBB modeSTRING
HIGHultralytics/solutions/solutions.py247Display the processed frame in an OpenCV window when `show=True` and the environment supports it. This method iSTRING
HIGHultralytics/solutions/solutions.py504Draw specific keypoints for gym steps counting. Args: keypoints (list[list[float]]): Keypoints dataSTRING
HIGHultralytics/solutions/analytics.py99Process image data and run object tracking to update analytics charts. The chart is re-rendered every `update_eSTRING
HIGHultralytics/solutions/analytics.py146Update the graph with new data for single or multiple classes. Args: frame_number (int): The currenSTRING
HIGHultralytics/solutions/region_counter.py62Add a new region to the counting list based on the provided template with specific attributes. Args: STRING
HIGHultralytics/solutions/speed_estimation.py71Process an input frame to estimate object speeds based on tracking data. Args: im0 (np.ndarray): InSTRING
HIGHultralytics/optim/muon.py11Compute the zeroth power / orthogonalization of matrix G using Newton-Schulz iteration. This function implements a STRING
HIGHultralytics/optim/muon.py59Compute Muon optimizer updates with momentum and orthogonalization. This function applies momentum to the gradientsSTRING
HIGHultralytics/optim/muon.py131Hybrid optimizer combining Muon and SGD updates for neural network training. This optimizer implements a combinatioSTRING
HIGHultralytics/optim/muon.py212Perform a single optimization step. Applies either hybrid Muon+SGD updates or pure SGD updates depending on theSTRING
HIGHultralytics/utils/instance.py37A class for handling bounding boxes in multiple formats. The class supports various bounding box formats like 'xyxySTRING
HIGHultralytics/utils/instance.py142Concatenate a list of Bboxes objects into a single Bboxes object. Args: boxes_list (list[Bboxes]): STRING
HIGHultralytics/utils/instance.py165Retrieve a specific bounding box or a set of bounding boxes using indexing. Args: index (int | slicSTRING
HIGHultralytics/utils/instance.py478Concatenate a list of Instances objects into a single Instances object. Args: instances_list (list[STRING
HIGHultralytics/utils/metrics.py242Calculate probabilistic IoU between oriented bounding boxes. Args: obb1 (torch.Tensor): Ground truth OBBs, STRING
HIGHultralytics/utils/metrics.py624Generate a summarized representation of the confusion matrix as a list of dictionaries. Values are optionally nSTRING
HIGHultralytics/utils/metrics.py1243Generate a summarized representation of per-class detection metrics as a list of dictionaries. Each row includeSTRING
HIGHultralytics/utils/metrics.py1405Generate a summarized representation of per-class segmentation metrics as a list of dictionaries. Extends the bSTRING
HIGHultralytics/utils/metrics.py1558Generate a summarized representation of per-class pose metrics as a list of dictionaries. Extends the box summaSTRING
HIGHultralytics/utils/metrics.py1650Generate a single-row summary of classification metrics (Top-1 and Top-5 accuracy). Args: normalizeSTRING
HIGHultralytics/utils/files.py58Context manager to handle paths with spaces in their names. If a path contains spaces, it replaces them with undersSTRING
289 more matches not shown…
Unused Imports446 hits · 410 pts
SeverityFileLineSnippetContext
LOWtests/conftest.py8CODE
LOWdocs/build_docs.py4CODE
LOWdocs/build_reference.py11CODE
LOWexamples/YOLO-Axelera-Python/yolo11-seg.py19CODE
LOWexamples/YOLO-Axelera-Python/yolo26-pose-tracker.py30CODE
LOWexamples/YOLOv8-Region-Counter/yolov8_region_counter.py3CODE
LOWexamples/YOLOv8-OpenCV-ONNX-Python/main.py3CODE
LOWexamples/YOLOv8-ONNXRuntime/main.py3CODE
LOW…es/YOLO-Interactive-Tracking-UI/interactive_tracker.py3CODE
LOW…amples/YOLOv8-Action-Recognition/action_recognition.py3CODE
LOWexamples/RTDETR-ONNXRuntime-Python/main.py3CODE
LOWexamples/YOLOv8-Segmentation-ONNXRuntime-Python/main.py3CODE
LOW.github/scripts/create-export-env.py4CODE
LOWultralytics/__init__.py14CODE
LOWultralytics/__init__.py15CODE
LOWultralytics/__init__.py16CODE
LOWultralytics/__init__.py35CODE
LOWultralytics/__init__.py35CODE
LOWultralytics/__init__.py35CODE
LOWultralytics/__init__.py35CODE
LOWultralytics/__init__.py35CODE
LOWultralytics/__init__.py35CODE
LOWultralytics/__init__.py35CODE
LOWultralytics/__init__.py35CODE
LOWultralytics/__init__.py36CODE
LOWultralytics/__init__.py36CODE
LOWultralytics/__init__.py36CODE
LOWultralytics/__init__.py36CODE
LOWultralytics/nn/tasks.py3CODE
LOWultralytics/nn/text_model.py3CODE
LOWultralytics/nn/__init__.py3CODE
LOWultralytics/nn/__init__.py3CODE
LOWultralytics/nn/__init__.py3CODE
LOWultralytics/nn/__init__.py3CODE
LOWultralytics/nn/__init__.py3CODE
LOWultralytics/nn/__init__.py3CODE
LOWultralytics/nn/__init__.py3CODE
LOWultralytics/nn/__init__.py3CODE
LOWultralytics/nn/__init__.py3CODE
LOWultralytics/nn/__init__.py3CODE
LOWultralytics/nn/distill_model.py3CODE
LOWultralytics/nn/autobackend.py3CODE
LOWultralytics/nn/autobackend.py377CODE
LOWultralytics/nn/backends/deepx.py3CODE
LOWultralytics/nn/backends/qnn.py3CODE
LOWultralytics/nn/backends/triton.py3CODE
LOWultralytics/nn/backends/coreai.py3CODE
LOWultralytics/nn/backends/paddle.py3CODE
LOWultralytics/nn/backends/onnx.py3CODE
LOWultralytics/nn/backends/onnx.py345CODE
LOWultralytics/nn/backends/openvino.py3CODE
LOWultralytics/nn/backends/__init__.py9CODE
LOWultralytics/nn/backends/__init__.py10CODE
LOWultralytics/nn/backends/__init__.py11CODE
LOWultralytics/nn/backends/__init__.py12CODE
LOWultralytics/nn/backends/__init__.py13CODE
LOWultralytics/nn/backends/__init__.py14CODE
LOWultralytics/nn/backends/__init__.py15CODE
LOWultralytics/nn/backends/__init__.py16CODE
LOWultralytics/nn/backends/__init__.py17CODE
386 more matches not shown…
Magic Placeholder Names71 hits · 382 pts
SeverityFileLineSnippetContext
HIGHdocs/en/platform/quickstart.md316 api_key = "YOUR_API_KEY"CODE
HIGHdocs/en/platform/quickstart.md334 -H "Authorization: Bearer YOUR_API_KEY" \CODE
HIGHdocs/en/platform/quickstart.md396export ULTRALYTICS_API_KEY="YOUR_API_KEY"CODE
HIGHdocs/en/platform/index.md124 export ULTRALYTICS_API_KEY="YOUR_API_KEY"CODE
HIGHdocs/en/platform/index.md137 os.environ["ULTRALYTICS_API_KEY"] = "YOUR_API_KEY"CODE
HIGHdocs/en/platform/index.md176 api_key = "YOUR_API_KEY"CODE
HIGHdocs/en/platform/index.md194 -H "Authorization: Bearer YOUR_API_KEY" \CODE
HIGHdocs/en/platform/index.md212 headers: { Authorization: "Bearer YOUR_API_KEY" },CODE
HIGHdocs/en/platform/index.md380 export ULTRALYTICS_API_KEY="YOUR_API_KEY"CODE
HIGHdocs/en/platform/index.md393 os.environ["ULTRALYTICS_API_KEY"] = "YOUR_API_KEY"CODE
HIGHdocs/en/platform/index.md408 export ULTRALYTICS_API_KEY="YOUR_API_KEY"CODE
HIGHdocs/en/platform/deploy/inference.md195 -H "Authorization: Bearer YOUR_API_KEY" \CODE
HIGHdocs/en/platform/deploy/inference.md222Authorization: Bearer YOUR_API_KEYCODE
HIGHdocs/en/platform/deploy/inference.md265 headers = {"Authorization": "Bearer YOUR_API_KEY"}CODE
HIGHdocs/en/platform/deploy/inference.md278 -H "Authorization: Bearer YOUR_API_KEY" \CODE
HIGHdocs/en/platform/deploy/inference.md298 headers: { Authorization: "Bearer YOUR_API_KEY" },CODE
HIGHdocs/en/platform/deploy/inference.md584 headers = {"Authorization": "Bearer YOUR_API_KEY"}CODE
HIGHdocs/en/platform/deploy/endpoints.md342Authorization: Bearer YOUR_API_KEYCODE
HIGHdocs/en/platform/deploy/endpoints.md379 headers = {"Authorization": "Bearer YOUR_API_KEY"}CODE
HIGHdocs/en/platform/deploy/endpoints.md406 headers: { Authorization: "Bearer YOUR_API_KEY" },CODE
HIGHdocs/en/platform/deploy/endpoints.md420 -H "Authorization: Bearer YOUR_API_KEY" \CODE
HIGHdocs/en/platform/deploy/monitoring.md240workspace owners, the deployment's bound API key filled in, ready to copy and run. Non-owners see a `YOUR_API_KEY`CODE
HIGHdocs/en/platform/deploy/monitoring.md252 headers = {"Authorization": "Bearer YOUR_API_KEY"}CODE
HIGHdocs/en/platform/deploy/monitoring.md279 headers: { Authorization: "Bearer YOUR_API_KEY" },CODE
HIGHdocs/en/platform/deploy/monitoring.md293 -H "Authorization: Bearer YOUR_API_KEY" \CODE
HIGHdocs/en/platform/integrations/azure-blob-storage.md96 -H "Authorization: Bearer YOUR_API_KEY" \CODE
HIGHdocs/en/platform/integrations/amazon-s3.md116 -H "Authorization: Bearer YOUR_API_KEY" \CODE
HIGHdocs/en/platform/integrations/google-cloud-storage.md98 -H "Authorization: Bearer YOUR_API_KEY" \CODE
HIGHdocs/en/platform/train/autotrain.md55export ULTRALYTICS_API_KEY="YOUR_API_KEY"CODE
HIGHdocs/en/platform/train/cloud-training.md258export ULTRALYTICS_API_KEY="YOUR_API_KEY"CODE
HIGHdocs/en/platform/train/index.md135 export ULTRALYTICS_API_KEY="YOUR_API_KEY"CODE
HIGHdocs/en/platform/api/index.md21 curl -H "Authorization: Bearer YOUR_API_KEY" \CODE
HIGHdocs/en/platform/api/index.md34 client = Platform(api_key="YOUR_API_KEY")CODE
HIGHdocs/en/platform/api/index.md100Authorization: Bearer YOUR_API_KEYCODE
HIGH⚡docs/en/platform/api/index.md114 curl -H "Authorization: Bearer YOUR_API_KEY" \CODE
HIGH⚡docs/en/platform/api/index.md123 client = Platform(api_key="YOUR_API_KEY") # or set ULTRALYTICS_API_KEYCODE
HIGH⚡docs/en/platform/api/index.md132 headers: { Authorization: "Bearer YOUR_API_KEY" },CODE
HIGHdocs/en/platform/api/index.md305 curl -H "Authorization: Bearer YOUR_API_KEY" \CODE
HIGHdocs/en/platform/api/index.md1006 headers = {"Authorization": "Bearer YOUR_API_KEY"}CODE
HIGHdocs/en/platform/api/index.md1297 -H "Authorization: Bearer YOUR_API_KEY" \CODE
HIGHdocs/en/platform/api/index.md1555 -H "Authorization: Bearer YOUR_API_KEY" \CODE
HIGHdocs/en/platform/api/index.md1671 -H "Authorization: Bearer YOUR_API_KEY" \CODE
HIGHdocs/en/platform/api/index.md1769 -H "Authorization: Bearer YOUR_API_KEY" \CODE
HIGH⚡docs/en/platform/api/index.md2718 yolo login YOUR_API_KEYCODE
HIGH⚡docs/en/platform/api/index.md2724 export ULTRALYTICS_API_KEY=YOUR_API_KEYCODE
HIGH⚡docs/en/platform/api/index.md2732 settings.update({"api_key": "YOUR_API_KEY"})CODE
HIGHdocs/en/platform/api/index.md2850curl -H "Authorization: Bearer YOUR_API_KEY" \CODE
HIGHdocs/en/platform/api/index.md2863curl -H "Authorization: Bearer YOUR_API_KEY" \CODE
HIGH⚡docs/en/platform/account/api-keys.md88 export ULTRALYTICS_API_KEY="YOUR_API_KEY"CODE
HIGH⚡docs/en/platform/account/api-keys.md94 $env:ULTRALYTICS_API_KEY = "YOUR_API_KEY"CODE
HIGH⚡docs/en/platform/account/api-keys.md102yolo login YOUR_API_KEYCODE
HIGH⚡docs/en/platform/account/api-keys.md112curl -H "Authorization: Bearer YOUR_API_KEY" \CODE
HIGH⚡docs/en/platform/account/api-keys.md121client = Platform(api_key="YOUR_API_KEY")CODE
HIGHdocs/en/platform/account/api-keys.md137export ULTRALYTICS_API_KEY="YOUR_API_KEY"CODE
HIGHdocs/en/platform/account/trash.md173 curl -H "Authorization: Bearer YOUR_API_KEY" \CODE
HIGHdocs/en/platform/account/trash.md187 curl -X POST -H "Authorization: Bearer YOUR_API_KEY" \CODE
HIGHdocs/en/platform/account/trash.md200 curl -X DELETE -H "Authorization: Bearer YOUR_API_KEY" \CODE
HIGHdocs/en/platform/account/trash.md213 curl -X DELETE -H "Authorization: Bearer YOUR_API_KEY" \CODE
HIGHdocs/en/platform/data/index.md179 export ULTRALYTICS_API_KEY="YOUR_API_KEY"CODE
HIGHdocs/en/platform/data/index.md188 os.environ["ULTRALYTICS_API_KEY"] = "YOUR_API_KEY"CODE
11 more matches not shown…
Empty Error Handlers37 hits · 182 pts
SeverityFileLineSnippetContext
HIGHultralytics/nn/autobackend.py93except Exception:CODE
HIGHultralytics/nn/backends/mnn.py45except json.JSONDecodeError:CODE
HIGHultralytics/solutions/streamlit_inference.py202except FileNotFoundError:CODE
HIGHultralytics/utils/events.py32except Exception:CODE
HIGHultralytics/utils/events.py152except Exception:CODE
HIGHultralytics/utils/events.py181except Exception:CODE
HIGHultralytics/utils/checks.py429except Exception:CODE
HIGHultralytics/utils/checks.py932except ImportError:CODE
HIGHultralytics/utils/plotting.py1029except Exception:CODE
HIGHultralytics/utils/cpu.py77except Exception:CODE
HIGHultralytics/utils/logger.py104except Exception:CODE
HIGHultralytics/utils/logger.py629except Exception:CODE
HIGHultralytics/utils/logger.py126except Exception:CODE
HIGHultralytics/utils/logger.py209except Exception:CODE
HIGHultralytics/utils/logger.py461except self.pynvml.NVMLError:CODE
HIGHultralytics/utils/logger.py311except (json.JSONDecodeError, OSError, plistlib.InvalidFileException, subprocess.SubprocessError):CODE
HIGHultralytics/utils/tqdm.py313except Exception:CODE
HIGHultralytics/utils/tqdm.py389except Exception:CODE
HIGHultralytics/utils/tqdm.py413except Exception:CODE
HIGHultralytics/utils/tqdm.py362except Exception:CODE
HIGHultralytics/utils/tqdm.py403except Exception:CODE
HIGHultralytics/utils/autodevice.py69except Exception:CODE
HIGHultralytics/utils/torch_utils.py1214except ImportError:CODE
HIGHultralytics/utils/callbacks/mlflow.py151except Exception:CODE
HIGHultralytics/utils/callbacks/mlflow.py98except Exception:CODE
HIGHultralytics/utils/callbacks/platform.py235except Exception:CODE
HIGHultralytics/utils/callbacks/platform.py243except Exception:CODE
HIGHultralytics/utils/callbacks/platform.py392except Exception:CODE
HIGHultralytics/models/yolo/depth/train.py161except ValueError:CODE
HIGHultralytics/data/build.py96except Exception:CODE
HIGHultralytics/data/converter.py1026except Exception:CODE
HIGHultralytics/data/converter.py1131except OSError:CODE
HIGHultralytics/data/converter.py1150except OSError:CODE
HIGHultralytics/data/augment.py2198except ImportError: # package not installed, skipCODE
HIGHultralytics/data/utils.py249except Exception:CODE
HIGHultralytics/data/utils.py194except Exception:CODE
HIGHultralytics/engine/exporter.py757except ImportError:CODE
Hyper-Verbose Identifiers191 hits · 161 pts
SeverityFileLineSnippetContext
LOWtests/test_solutions.py210def test_left_click_selection():CODE
LOWtests/test_solutions.py219def test_left_click_selection_obb():CODE
LOWtests/test_solutions.py258def test_object_blurrer_obb_outside_frame():CODE
LOWtests/test_solutions.py288def test_analytics_graph_not_supported():CODE
LOWtests/test_solutions.py317def test_config_update_method_with_invalid_argument():CODE
LOWtests/test_solutions.py346def test_similarity_search_complete(tmp_path):CODE
LOWtests/test_solutions.py360def test_distance_calculation_process_method():CODE
LOWtests/test_solutions.py385def test_display_output_method():CODE
LOWtests/test_ndjson_converter.py75def test_convert_depth_ndjson_downloads_image_target_pairs(tmp_path, depth_server):CODE
LOWtests/test_ndjson_converter.py96def test_convert_depth_ndjson_preserves_scale(tmp_path, depth_server):CODE
LOWtests/test_ndjson_converter.py107def test_convert_depth_ndjson_reuses_existing_conversion(tmp_path, depth_server, monkeypatch):CODE
LOWtests/test_ndjson_converter.py127def test_convert_depth_ndjson_removes_incomplete_pair(tmp_path, depth_server):CODE
LOWtests/test_ndjson_converter.py142def test_convert_depth_ndjson_rejects_missing_url(tmp_path):CODE
LOWtests/test_ndjson_converter.py161def test_convert_ndjson_selects_split_fractions(tmp_path, depth_server):CODE
LOWtests/test_engine.py128def test_semantic_polygon_val_background():CODE
LOWtests/test_engine.py180def test_resume_invalid_checkpoint_args(tmp_path):CODE
LOWtests/test_engine.py252def test_load_checkpoint_state_dict_rejected(ckpt, tmp_path):CODE
LOWtests/test_engine.py301def test_checkpoint_nonfinite_ema_resync():CODE
LOWtests/test_engine.py320def test_checkpoint_nonfinite_ema_and_model_sanitized():CODE
LOWtests/test_engine.py340def test_train_multi_custom_trainer_metrics_and_failure_keys(monkeypatch, tmp_path):CODE
LOWtests/test_engine.py373def test_setup_model_respects_pretrained_arg_for_pt_models(monkeypatch, pretrained, uses_weights):CODE
LOWtests/conftest.py57def pytest_collection_modifyitems(config, items):CODE
LOWtests/test_exports.py59def test_export_torchscript_missing_names(model_name, nc, tmp_path):CODE
LOWtests/test_exports.py79def test_export_onnx_nms_conf(isolated_model):CODE
LOWtests/test_exports.py128def test_quantize_canonicalization():CODE
LOWtests/test_exports.py157def test_quantize_deprecation():CODE
LOWtests/test_exports.py209def test_export_rknn_batch_expansion(monkeypatch, tmp_path):CODE
LOWtests/test_exports.py283def test_export_openvino_matrix(task, dynamic, quantize, batch, nms):CODE
LOWtests/test_exports.py328def test_export_onnx_semantic_dnn():CODE
LOWtests/test_exports.py346def test_export_torchscript_matrix(task, dynamic, batch, nms, tmp_path):CODE
LOWtests/test_exports.py372def test_export_coreml_matrix(task, dynamic, quantize, nms, batch):CODE
LOWtests/test_exports.py440def test_export_coreml_rtdetr():CODE
LOWtests/test_exports.py491def test_export_mnn_rejects_unsupported_nms(model, kwargs, error):CODE
LOWtests/test_exports.py606def test_export_litert_matrix(task, quantize):CODE
LOWtests/test_exports.py629def test_export_executorch_matrix(task):CODE
LOWtests/test_exports.py670def test_export_env_has_smoke(env):CODE
LOWtests/test_exports.py675def test_every_format_env_is_registered():CODE
LOWtests/test_rocm.py18def test_rocm_migraphx_matrix(task, tmp_path):CODE
LOWtests/test_python.py63def test_dataloader_caps_workers_to_batches():CODE
LOWtests/test_python.py78def test_dataloader_cap_preserves_distributed_drop_last(monkeypatch):CODE
LOWtests/test_python.py97def test_dataloader_seed_varies_sampling_order():CODE
LOWtests/test_python.py113def test_dataloader_empty_dataset_uses_dataloader_validation():CODE
LOWtests/test_python.py119def test_image_cache_shared_with_spawned_workers():CODE
LOWtests/test_python.py132def test_build_yolo_dataset_hyp_isolated():CODE
LOWtests/test_python.py140def test_cfg_rejects_fuzzed_values():CODE
LOWtests/test_python.py242def test_autobackend_memory_format(tmp_path):CODE
LOWtests/test_python.py272def test_restricted_load_threaded():CODE
LOWtests/test_python.py286def test_restricted_load_criterion(tmp_path, fused):CODE
LOWtests/test_python.py340def test_model_load_remaps_cls_head_by_names():CODE
LOWtests/test_python.py383def test_predict_csv_multi_row(tmp_path):CODE
LOWtests/test_python.py394def test_predict_csv_single_row(tmp_path):CODE
LOWtests/test_python.py442def test_predict_classes_with_max_det(model_name, nms):CODE
LOWtests/test_python.py497def test_predict_ndarray_channels():CODE
LOWtests/test_python.py513def test_single_check_channel_order_and_contiguity():CODE
LOWtests/test_python.py528def test_predict_all_image_formats():CODE
LOWtests/test_python.py565def test_track_second_association_indices():CODE
LOWtests/test_python.py581def test_track_split_detections_degenerate_boxes():CODE
LOWtests/test_python.py605def test_track_second_association_low_conf_keeps_id(tracker_type):CODE
LOWtests/test_python.py624def test_tracktrack_new_lifecycle():CODE
LOWtests/test_python.py657def test_track_reid_auto_user_detections(tracker_type):CODE
131 more matches not shown…
Excessive Try-Catch Wrapping141 hits · 146 pts
SeverityFileLineSnippetContext
LOWtests/test_exports.py252 except Exception as error: # pragma: no cover - assertion handled belowCODE
LOWdocs/build_reference.py196 except Exception:CODE
LOWdocs/build_reference.py701 except Exception:CODE
LOWdocs/en/datasets/detect/roboflow-100.md82 except Exception as e:CODE
MEDIUMdocs/en/usage/simple-utilities.md492 print("Error: Could not open video.")CODE
LOWdocs/en/guides/vertex-ai-deployment-with-docker.md126 except Exception as e:CODE
MEDIUMdocs/en/guides/vertex-ai-deployment-with-docker.md127 print(f"Error initializing YOLO model: {e}")CODE
LOWdocs/en/guides/vertex-ai-deployment-with-docker.md206 except Exception as e:CODE
MEDIUMdocs/en/guides/vertex-ai-deployment-with-docker.md208 print(f"Error in YOLO detection: {e}")CODE
LOWdocs/en/guides/vertex-ai-deployment-with-docker.md357 except Exception as e:CODE
LOW.github/workflows/mirror.yml150 except Exception as error:CODE
LOW.github/workflows/merge-main-into-prs.yml73 except Exception as update_error:CODE
LOW.github/workflows/merge-main-into-prs.yml79 except Exception as e:CODE
LOWultralytics/nn/tasks.py1819 except Exception as e:CODE
LOWultralytics/nn/autobackend.py93 except Exception:CODE
LOWultralytics/nn/backends/onnx.py218 except Exception as e: # plugin missing, GPU not enumerated, or unsupported-op compile failureCODE
LOWultralytics/nn/backends/tensorrt.py64 except Exception:CODE
LOWultralytics/nn/backends/coreml.py42 except Exception:CODE
LOWultralytics/nn/backends/base.py189 except Exception: # a third-party, truncated or metadata-less artifactCODE
LOWultralytics/solutions/security_alarm.py112 except Exception as e:CODE
LOWultralytics/solutions/similarity_search.py131 except Exception as e:CODE
LOWultralytics/utils/autobatch.py133 except Exception as e:CODE
LOWultralytics/utils/events.py32 except Exception:CODE
LOWultralytics/utils/events.py152 except Exception:CODE
LOWultralytics/utils/events.py181 except Exception:CODE
LOWultralytics/utils/checks.py207 except Exception as e:CODE
LOWultralytics/utils/checks.py408 except Exception:CODE
LOWultralytics/utils/checks.py429 except Exception:CODE
LOWultralytics/utils/checks.py499 except Exception:CODE
LOWultralytics/utils/checks.py639 except Exception as e:CODE
LOWultralytics/utils/checks.py902 except Exception as e:CODE
LOWultralytics/utils/checks.py1104 except Exception:CODE
LOWultralytics/utils/checks.py1210 except Exception: # broad clause to capture all Intel GPU exception typesCODE
LOWultralytics/utils/plotting.py337 except Exception:CODE
LOWultralytics/utils/plotting.py1029 except Exception:CODE
LOWultralytics/utils/plotting.py1117 except Exception as e:CODE
LOWultralytics/utils/cpu.py77 except Exception:CODE
LOWultralytics/utils/cpu.py83 except Exception:CODE
LOW⚡ultralytics/utils/__init__.py677 except Exception as e:CODE
LOW⚡ultralytics/utils/__init__.py682 except Exception:CODE
LOWultralytics/utils/__init__.py822 except Exception:CODE
LOWultralytics/utils/__init__.py851 except Exception:CODE
LOWultralytics/utils/__init__.py1171 except Exception as e:CODE
LOWultralytics/utils/__init__.py1333 except Exception as e:CODE
LOWultralytics/utils/__init__.py1342 except Exception as e:CODE
LOWultralytics/utils/__init__.py247 except Exception:STRING
LOWultralytics/utils/logger.py104 except Exception:CODE
LOWultralytics/utils/logger.py126 except Exception:CODE
LOWultralytics/utils/logger.py209 except Exception:CODE
LOWultralytics/utils/logger.py228 except Exception as e:CODE
LOWultralytics/utils/logger.py483 except Exception as e:CODE
LOWultralytics/utils/logger.py629 except Exception:CODE
LOWultralytics/utils/tqdm.py302 except Exception: # streams without a usable fileno (io.StringIO, wrapped stdout)CODE
LOW⚡ultralytics/utils/tqdm.py313 except Exception:CODE
LOWultralytics/utils/tqdm.py362 except Exception:CODE
LOWultralytics/utils/tqdm.py389 except Exception:CODE
LOWultralytics/utils/tqdm.py403 except Exception:CODE
LOWultralytics/utils/tqdm.py413 except Exception:CODE
LOWultralytics/utils/downloads.py82 except Exception:CODE
LOWultralytics/utils/downloads.py474 except Exception as e:CODE
81 more matches not shown…
Deep Nesting141 hits · 132 pts
SeverityFileLineSnippetContext
LOWtests/test_solutions.py180CODE
LOWdocs/build_docs.py44CODE
LOWdocs/build_reference.py697CODE
LOWexamples/YOLO-Axelera-Python/yolo11-seg.py59CODE
LOWexamples/YOLOv8-Region-Counter/yolov8_region_counter.py86CODE
LOW…es/YOLO-Interactive-Tracking-UI/interactive_tracker.py71CODE
LOW…es/YOLO-Interactive-Tracking-UI/interactive_tracker.py115CODE
LOW…amples/YOLOv8-Action-Recognition/action_recognition.py314CODE
LOW.github/scripts/fuzz.py413CODE
LOW.github/scripts/fuzz.py442CODE
LOW.github/scripts/fuzz.py747CODE
LOW.github/scripts/fuzz.py935CODE
LOW.github/scripts/fuzz.py766CODE
LOWultralytics/nn/tasks.py1632CODE
LOWultralytics/nn/tasks.py1867CODE
LOWultralytics/nn/tasks.py2063CODE
LOWultralytics/nn/tasks.py2317CODE
LOWultralytics/nn/tasks.py243CODE
LOWultralytics/nn/tasks.py326CODE
LOWultralytics/nn/tasks.py925CODE
LOWultralytics/nn/tasks.py1198CODE
LOWultralytics/nn/tasks.py1714CODE
LOWultralytics/nn/autobackend.py393CODE
LOWultralytics/nn/backends/onnx.py177CODE
LOWultralytics/nn/backends/tensorflow.py92CODE
LOWultralytics/nn/backends/rknn.py54CODE
LOWultralytics/nn/backends/tensorrt.py25CODE
LOWultralytics/nn/backends/litert.py47CODE
LOWultralytics/nn/backends/base.py151CODE
LOWultralytics/nn/modules/conv.py458CODE
LOWultralytics/solutions/distance_calculation.py41CODE
LOWultralytics/solutions/distance_calculation.py75CODE
LOWultralytics/solutions/object_counter.py54CODE
LOWultralytics/solutions/ai_gym.py55CODE
LOWultralytics/solutions/streamlit_inference.py130CODE
LOWultralytics/solutions/analytics.py143CODE
LOWultralytics/solutions/speed_estimation.py70CODE
LOWultralytics/optim/muon.py211CODE
LOWultralytics/utils/instance.py382CODE
LOWultralytics/utils/metrics.py108CODE
LOWultralytics/utils/metrics.py545CODE
LOWultralytics/utils/files.py57CODE
LOWultralytics/utils/events.py95CODE
LOWultralytics/utils/checks.py224CODE
LOWultralytics/utils/checks.py301CODE
LOWultralytics/utils/checks.py527CODE
LOWultralytics/utils/checks.py733CODE
LOWultralytics/utils/checks.py775CODE
LOWultralytics/utils/plotting.py850CODE
LOWultralytics/utils/plotting.py1070CODE
LOWultralytics/utils/plotting.py289CODE
LOWultralytics/utils/plotting.py572CODE
LOWultralytics/utils/cpu.py52CODE
LOWultralytics/utils/__init__.py457CODE
LOWultralytics/utils/__init__.py962CODE
LOWultralytics/utils/logger.py290CODE
LOWultralytics/utils/downloads.py313CODE
LOWultralytics/utils/downloads.py579CODE
LOWultralytics/utils/ops.py688CODE
LOWultralytics/utils/loss.py513CODE
81 more matches not shown…
Structural Annotation Overuse77 hits · 106 pts
SeverityFileLineSnippetContext
LOWdocs/en/platform/train/cloud-training.md31### Step 1: Select Base ModelCOMMENT
LOWdocs/en/platform/train/cloud-training.md49### Step 2: Select DatasetCOMMENT
LOWdocs/en/platform/train/cloud-training.md69### Step 3: Configure ParametersCOMMENT
LOWdocs/en/platform/train/cloud-training.md87### Step 4: Advanced Settings (Optional)COMMENT
LOWdocs/en/platform/train/cloud-training.md128### Step 5: Select GPU (Cloud Tab)COMMENT
LOWdocs/en/platform/train/cloud-training.md160### Step 6: Start TrainingCOMMENT
LOWdocs/en/integrations/neural-magic.md72### Step 1: InstallationCOMMENT
LOWdocs/en/integrations/neural-magic.md85### Step 2: Exporting YOLO26 to ONNX FormatCOMMENT
LOWdocs/en/integrations/neural-magic.md100### Step 3: Deploying and Running InferencesCOMMENT
LOWdocs/en/integrations/neural-magic.md122### Step 4: Benchmarking PerformanceCOMMENT
LOWdocs/en/integrations/neural-magic.md135### Step 5: Additional FeaturesCOMMENT
LOWdocs/en/integrations/jupyterlab.md54### Step 1: Install JupyterLabCOMMENT
LOWdocs/en/integrations/jupyterlab.md67### Step 2: Download the YOLO26 Tutorial NotebookCOMMENT
LOWdocs/en/integrations/jupyterlab.md71### Step 3: Launch JupyterLabCOMMENT
LOWdocs/en/integrations/jupyterlab.md87### Step 4: Start ExperimentingCOMMENT
LOWdocs/en/integrations/ibm-watsonx.md48### Step 1: Set Up Your EnvironmentCOMMENT
LOWdocs/en/integrations/ibm-watsonx.md56### Step 2: Install and Import Relevant LibrariesCOMMENT
LOWdocs/en/integrations/ibm-watsonx.md84### Step 3: Load the DataCOMMENT
LOWdocs/en/integrations/ibm-watsonx.md139### Step 4: Preprocess the DataCOMMENT
LOWdocs/en/integrations/ibm-watsonx.md236### Step 5: Train the YOLO26 modelCOMMENT
LOWdocs/en/integrations/ibm-watsonx.md258### Step 6: Test the ModelCOMMENT
LOWdocs/en/integrations/ibm-watsonx.md291### Step 7: Evaluate the ModelCOMMENT
LOWdocs/en/integrations/ibm-watsonx.md309### Step 8: Calculating [Intersection Over Union](https://www.ultralytics.com/glossary/intersection-over-union-iou)COMMENT
LOWdocs/en/integrations/amazon-sagemaker.md30### Step 1: Setup Your AWS EnvironmentCOMMENT
LOWdocs/en/integrations/amazon-sagemaker.md44### Step 2: Clone the YOLO26 SageMaker RepositoryCOMMENT
LOWdocs/en/integrations/amazon-sagemaker.md60### Step 3: Set Up the CDK EnvironmentCOMMENT
LOWdocs/en/integrations/amazon-sagemaker.md88### Step 4: Create the AWS CloudFormation StackCOMMENT
LOWdocs/en/integrations/amazon-sagemaker.md108### Step 5: Deploy the YOLO ModelCOMMENT
LOWdocs/en/integrations/amazon-sagemaker.md142### Step 6: Testing Your DeploymentCOMMENT
LOWdocs/en/integrations/amazon-sagemaker.md156### Step 7: Monitoring and ManagementCOMMENT
LOW…olov5/environments/docker-image-quickstart-tutorial.md73## Step 1: Pull the YOLOv5 Docker ImageCOMMENT
LOW…olov5/environments/docker-image-quickstart-tutorial.md87## Step 2: Run the Docker ContainerCOMMENT
LOW…olov5/environments/docker-image-quickstart-tutorial.md125## Step 3: Use YOLOv5 🚀 within the Docker ContainerCOMMENT
LOW…olov5/environments/google-cloud-quickstart-tutorial.md16## Step 1: Create and Configure Your Deep Learning VMCOMMENT
LOW…olov5/environments/google-cloud-quickstart-tutorial.md31## Step 2: Prepare the VM for YOLOv5COMMENT
LOW…olov5/environments/google-cloud-quickstart-tutorial.md46## Step 3: Train and Deploy Your YOLOv5 ModelsCOMMENT
LOWdocs/en/yolov5/environments/aws-quickstart-tutorial.md14## Step 1: AWS Console Sign-InCOMMENT
LOWdocs/en/yolov5/environments/aws-quickstart-tutorial.md20## Step 2: Launch Your InstanceCOMMENT
LOWdocs/en/yolov5/environments/aws-quickstart-tutorial.md52## Step 3: Connect to Your InstanceCOMMENT
LOWdocs/en/yolov5/environments/aws-quickstart-tutorial.md58## Step 4: Running Ultralytics YOLOv5COMMENT
LOWdocs/en/guides/nvidia-dali.md337### Step 1: Create the DALI PipelineCOMMENT
LOWdocs/en/guides/nvidia-dali.md384### Step 2: Export YOLO to TensorRTCOMMENT
LOWdocs/en/guides/nvidia-dali.md407### Step 3: Configure TritonCOMMENT
LOWdocs/en/guides/nvidia-dali.md507### Step 4: Send Inference RequestsCOMMENT
LOWdocs/en/guides/steps-of-a-cv-project.md43## Step 1: Defining Your Project's GoalsCOMMENT
LOWdocs/en/guides/steps-of-a-cv-project.md84## Step 2: Data Collection and Data AnnotationCOMMENT
LOWdocs/en/guides/steps-of-a-cv-project.md102## Step 3: Data Augmentation and Splitting Your DatasetCOMMENT
LOWdocs/en/guides/steps-of-a-cv-project.md124## Step 4: Model TrainingCOMMENT
LOW⚡docs/en/guides/steps-of-a-cv-project.md139## Step 5: Model Evaluation and Fine-TuningCOMMENT
LOW⚡docs/en/guides/steps-of-a-cv-project.md149## Step 6: Model TestingCOMMENT
LOW⚡docs/en/guides/steps-of-a-cv-project.md157## Step 7: Model DeploymentCOMMENT
LOWdocs/en/guides/steps-of-a-cv-project.md168## Step 8: Monitoring, Maintenance, and DocumentationCOMMENT
LOWexamples/YOLO-Interactive-Tracking-UI/README.md54### Step 1: Download, Convert, or Specify ModelCOMMENT
LOWexamples/YOLO-Interactive-Tracking-UI/README.md64### Step 2: Configure the ScriptCOMMENT
LOWexamples/YOLO-Interactive-Tracking-UI/README.md98### Step 3: Run the Object TrackingCOMMENT
LOW⚡ultralytics/models/sam/predict.py1736 # Step 0: clear the input on those frames where this object id has point or mask inputCOMMENT
LOW⚡ultralytics/models/sam/predict.py1745 # Step 1: Update the object id mapping (note that it must be done after Step 0,COMMENT
LOW⚡ultralytics/models/sam/predict.py2880 # Step 1: run backbone and detector in a distributed manner -- this is done via Sam3ImageOnVideoMultiGPU,COMMENT
LOW⚡ultralytics/models/sam/predict.py2889 # Step 2: each GPU propagates its local SAM2 states to get the SAM2 prediction masks.COMMENT
LOW⚡ultralytics/models/sam/predict.py2923 # Step 4: based on `tracker_update_plan`, each GPU executes the update w.r.t. its local SAM2 inference statesCOMMENT
17 more matches not shown…
Self-Referential Comments27 hits · 66 pts
SeverityFileLineSnippetContext
MEDIUMtests/test_cli.py146 # Create a FastSAM modelCOMMENT
MEDIUMexamples/YOLOv8-ONNXRuntime/main.py107 # Create the label text with class name and scoreCOMMENT
MEDIUMexamples/YOLOv8-ONNXRuntime/main.py260 # Create an argument parser to handle command-line argumentsCOMMENT
MEDIUMexamples/YOLOv8-ONNXRuntime/main.py271 # Create an instance of the YOLOv8 class with the specified argumentsCOMMENT
MEDIUMexamples/RTDETR-ONNXRuntime-Python/main.py139 # Create the label text with class name and scoreCOMMENT
MEDIUMexamples/RTDETR-ONNXRuntime-Python/main.py292 # Create the detector instance with specified parametersCOMMENT
MEDIUM.github/workflows/mirror.yml141 # Create the source default branch before selecting it, so pruning can delete an old default.COMMENT
MEDIUMultralytics/solutions/heatmap.py66 # Create a meshgrid with region of interest (ROI) for vectorized distance calculationsCOMMENT
MEDIUMultralytics/solutions/heatmap.py72 # Create a mask of points within the radiusCOMMENT
MEDIUMultralytics/solutions/security_alarm.py94 # Create the emailCOMMENT
MEDIUMultralytics/solutions/trackzone.py69 if self.mask is None: # Create a mask for the regionCODE
MEDIUMultralytics/solutions/streamlit_inference.py210 self.sidebar() # Create the sidebarCODE
MEDIUMultralytics/solutions/streamlit_inference.py261 # Create an Inference instance from 'key=value' command-line arguments, i.e. model=yolo26n.pt conf=0.5COMMENT
MEDIUMultralytics/solutions/analytics.py222 # Create the legend using labels from the barsCOMMENT
MEDIUMultralytics/utils/files.py79 # Create a temporary directory and construct the new pathCOMMENT
MEDIUMultralytics/utils/loss.py767 # Create a tensor to hold batched keypointsCOMMENT
MEDIUMultralytics/utils/patches.py159 >>> img = np.zeros((100, 100, 3), dtype=np.uint8) # Create a black imageSTRING
MEDIUMultralytics/utils/patches.py184 >>> img = np.zeros((300, 300, 3), dtype=np.uint8) # Create a black imageSTRING
MEDIUMultralytics/utils/tuner.py474 # Define the trainable function with allocated resourcesCOMMENT
MEDIUMultralytics/utils/tuner.py477 # Define the scheduler for hyperparameter searchCOMMENT
MEDIUMultralytics/utils/tuner.py496 # Create the Ray Tune hyperparameter search tunerCOMMENT
MEDIUMultralytics/models/sam/amg.py211 >>> mask[40:60, 40:60] = True # Create a squareSTRING
MEDIUMultralytics/models/sam/amg.py212 >>> mask[45:55, 45:55] = False # Create a holeSTRING
MEDIUMultralytics/models/sam/predict.py1948 # Initialize the object index set and mappingsCOMMENT
MEDIUMultralytics/models/sam/build_sam3.py241 # Create the SAM3SemanticModel modelCOMMENT
MEDIUMultralytics/data/converter.py433 # Create a binary mask for the current class and find contoursSTRING
MEDIUMultralytics/data/utils.py552 rect = plt.Rectangle((x, y), w, h, linewidth=2, edgecolor=color, facecolor="none") # Create a rectangleCODE
Redundant / Tautological Comments39 hits · 50 pts
SeverityFileLineSnippetContext
LOWdocs/build_reference.py442 # Check if text contains Markdown structures that need line preservation. The table check is line-anchored:COMMENT
LOWdocs/build_reference.py1194 # Check if the document paths are the same (ignoring structure or formatting differences)COMMENT
LOWexamples/YOLOv8-SAHI-Inference-Video/yolov8_sahi.py103 # Display results if requestedCOMMENT
LOWexamples/YOLOv8-Region-Counter/yolov8_region_counter.py176 # Check if detection inside regionCOMMENT
LOWexamples/YOLOv8-ONNXRuntime/main.py277 # Display the output image in a windowCOMMENT
LOW…es/YOLO-Interactive-Tracking-UI/interactive_tracker.py17save_video = False # Set True to save output videoCODE
LOWexamples/RTDETR-ONNXRuntime-Python/main.py25 # Check if the local path already existsCOMMENT
LOW.github/workflows/merge-main-into-prs.yml61 # Check if PR is behind the default branchCOMMENT
LOW.github/workflows/conda-check-prs.yml68 # Print results to action logCOMMENT
LOWultralytics/nn/autobackend.py222 # Check if format supports FP16; PyTorch CPU FP16 is slow and breaks some models (e.g. RT-DETR returns no boxes)COMMENT
LOWultralytics/nn/backends/onnx.py257 # Check if dynamic shapesCOMMENT
LOWultralytics/solutions/heatmap.py48 if self.region is not None: # Check if user provided the region coordinatesCODE
LOWultralytics/solutions/heatmap.py123 self.display_output(plot_im) # Display output with base class functionCODE
LOWultralytics/solutions/object_blurrer.py87 self.display_output(plot_im) # Display the output using the base class functionCODE
LOWultralytics/solutions/security_alarm.py148 self.display_output(plot_im) # Display output with base class functionCODE
LOWultralytics/solutions/distance_calculation.py127 self.display_output(plot_im) # Display output with base class functionCODE
LOWultralytics/solutions/trackzone.py85 self.display_output(plot_im) # Display output with base class functionCODE
LOWultralytics/solutions/object_counter.py196 self.display_output(plot_im) # Display output with base class functionCODE
LOWultralytics/solutions/similarity_search.py111 # Check if the embeddings and corresponding image paths already existCOMMENT
LOWultralytics/solutions/queue_management.py90 self.display_output(plot_im) # Display output with base class functionCODE
LOWultralytics/solutions/parking_management.py53 try: # Check if tkinter is installedCODE
LOWultralytics/solutions/parking_management.py278 self.display_output(plot_im) # Display output with base class functionCODE
LOWultralytics/solutions/ai_gym.py107 self.display_output(plot_im) # Display output image, if environment support displayCODE
LOWultralytics/solutions/analytics.py224 bar.set_label(label) # Assign label to each barCODE
LOWultralytics/solutions/speed_estimation.py121 self.display_output(plot_im) # Display output with base class functionCODE
LOWultralytics/utils/metrics.py433 if gt_cls.shape[0] == 0: # Check if labels is emptyCODE
LOWultralytics/utils/checks.py494 # Check if package is installed (look for "ii" status)COMMENT
LOW⚡ultralytics/utils/__init__.py670 # Read file contentCOMMENT
LOWultralytics/utils/__init__.py1449 if not self.file.exists() or not self: # Check if file doesn't exist or is emptyCODE
LOWultralytics/utils/benchmarks.py267 # Print resultsCOMMENT
LOWultralytics/utils/callbacks/wb.py166 # Check if we actually have plots to saveCOMMENT
LOWultralytics/utils/export/imx.py303 # Check if the model has the expected number of layersCOMMENT
LOWultralytics/utils/export/engine.py467 # Write fileCOMMENT
LOWultralytics/models/sam/amg.py169 # Check if boxes has a channel dimensionCOMMENT
LOWultralytics/models/sam/amg.py179 # Check if points has a channel dimensionCOMMENT
LOWultralytics/models/yolo/detect/val.py367 # Print results per classCOMMENT
LOWultralytics/data/dataset.py252 # Check if the dataset is all boxes or all segmentsCOMMENT
LOWultralytics/engine/predictor.py355 # Check if save_dir/ label file existsCOMMENT
LOWultralytics/engine/model.py127 # Check if Triton Server modelCOMMENT
AI Structural Patterns44 hits · 42 pts
SeverityFileLineSnippetContext
LOWexamples/YOLOv8-SAHI-Inference-Video/yolov8_sahi.py49CODE
LOWexamples/YOLOv8-Region-Counter/yolov8_region_counter.py86CODE
LOW…amples/YOLOv8-Action-Recognition/action_recognition.py314CODE
LOWultralytics/nn/autobackend.py185CODE
LOWultralytics/nn/modules/head.py1359CODE
LOWultralytics/nn/modules/head.py1483CODE
LOWultralytics/nn/modules/head.py1574CODE
LOWultralytics/nn/modules/conv.py382CODE
LOWultralytics/nn/modules/block.py1827CODE
LOWultralytics/utils/plotting.py850CODE
LOWultralytics/utils/nms.py13CODE
LOWultralytics/utils/tqdm.py84CODE
LOWultralytics/utils/downloads.py313CODE
LOWultralytics/utils/benchmarks.py71CODE
LOWultralytics/utils/export/engine.py224CODE
LOWultralytics/models/sam/build.py228CODE
LOWultralytics/models/sam/predict.py341CODE
LOWultralytics/models/sam/predict.py2557CODE
LOWultralytics/models/sam/modules/decoders.py210CODE
LOWultralytics/models/sam/modules/memory_attention.py54CODE
LOWultralytics/models/sam/modules/encoders.py48CODE
LOWultralytics/models/sam/modules/encoders.py652CODE
LOWultralytics/models/sam/modules/blocks.py455CODE
LOWultralytics/models/sam/modules/tiny_encoder.py679CODE
LOWultralytics/models/sam/modules/tiny_encoder.py787CODE
LOWultralytics/models/sam/modules/sam.py170CODE
LOWultralytics/models/sam/modules/sam.py1050CODE
LOWultralytics/models/sam/sam3/decoder.py70CODE
LOWultralytics/models/sam/sam3/decoder.py183CODE
LOWultralytics/models/sam/sam3/decoder.py349CODE
LOWultralytics/models/sam/sam3/text_encoder_ve.py152CODE
LOWultralytics/models/sam/sam3/text_encoder_ve.py242CODE
LOWultralytics/models/sam/sam3/vitdet.py43CODE
LOWultralytics/models/sam/sam3/vitdet.py219CODE
LOWultralytics/models/sam/sam3/vitdet.py322CODE
LOWultralytics/models/sam/sam3/sam3_image.py37CODE
LOWultralytics/models/utils/loss.py35CODE
LOWultralytics/data/annotator.py10CODE
LOWultralytics/data/augment.py2966CODE
LOWultralytics/data/augment.py1701CODE
LOWultralytics/data/augment.py2356CODE
LOWultralytics/data/base.py109CODE
LOWultralytics/engine/results.py247CODE
LOWultralytics/engine/results.py487CODE
Over-Commented Block33 hits · 32 pts
SeverityFileLineSnippetContext
LOWpyproject.toml1# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/licenseCOMMENT
LOWdocs/en/models/yolo-world.md341 ],COMMENT
LOWdocs/en/yolov5/tutorials/hyperparameter-evolution.md101COMMENT
LOWexamples/cpp/ONNXRuntime/inference.cpp1// Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/licenseCOMMENT
LOWexamples/cpp/LibTorch/CMakeLists.txt21COMMENT
LOWexamples/cpp/common/yolo_postprocess.hpp1// Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/licenseCOMMENT
LOWexamples/cpp/common/yolo_draw.hpp1// Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/licenseCOMMENT
LOWexamples/cpp/common/yolo_render.hpp1// Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/licenseCOMMENT
LOW.github/workflows/mirror.yml161 if failures:COMMENT
LOW.github/workflows/docs.yml1# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/licenseCOMMENT
LOWultralytics/models/sam/predict.py2561 _callbacks: dict | None = None,COMMENT
LOWultralytics/cfg/datasets/depth-kitti.yaml1# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/licenseCOMMENT
LOWultralytics/cfg/datasets/depth-arkitscenes.yaml1# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/licenseCOMMENT
LOWultralytics/cfg/datasets/depth-vkitti2.yaml1# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/licenseCOMMENT
LOWultralytics/cfg/datasets/nyu-depth.yaml1# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/licenseCOMMENT
LOWultralytics/cfg/datasets/depth-hypersim.yaml1# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/licenseCOMMENT
LOWultralytics/cfg/datasets/dota8-multispectral.yaml1# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/licenseCOMMENT
LOWultralytics/cfg/datasets/hand-keypoints.yaml1# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/licenseCOMMENT
LOWultralytics/cfg/datasets/medical-pills.yaml1# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/licenseCOMMENT
LOWultralytics/cfg/datasets/depth-sunrgbd.yaml1# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/licenseCOMMENT
LOWultralytics/cfg/datasets/cityscapes8.yaml1# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/licenseCOMMENT
LOWultralytics/cfg/datasets/xView.yaml1# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/licenseCOMMENT
LOWultralytics/cfg/datasets/dog-pose.yaml1# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/licenseCOMMENT
LOWultralytics/cfg/datasets/tiger-pose.yaml1# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/licenseCOMMENT
LOWultralytics/cfg/datasets/depth-tartanair.yaml1# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/licenseCOMMENT
LOWultralytics/cfg/datasets/ImageNet.yaml1# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/licenseCOMMENT
LOWultralytics/cfg/datasets/signature.yaml1# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/licenseCOMMENT
LOWultralytics/cfg/datasets/coco8-multispectral.yaml1# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/licenseCOMMENT
LOWultralytics/cfg/datasets/depth-diode.yaml1# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/licenseCOMMENT
LOWultralytics/cfg/datasets/cityscapes.yaml1# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/licenseCOMMENT
LOWultralytics/cfg/datasets/depth8.yaml1# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/licenseCOMMENT
LOWultralytics/cfg/datasets/ade20k.yaml1# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/licenseCOMMENT
LOWultralytics/cfg/datasets/TT100K.yaml1# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/licenseCOMMENT
Modern Structural Boilerplate30 hits · 31 pts
SeverityFileLineSnippetContext
LOWdocs/build_reference.py1167def update_mkdocs_file(reference_yaml: str) -> None:CODE
LOWultralytics/nn/backends/__init__.py30__all__ = [CODE
LOWultralytics/optim/__init__.py6__all__ = ["MuSGD"]CODE
LOWultralytics/utils/metrics.py1070 def update_image_metrics(self, tp: np.ndarray, target_cls: np.ndarray, pred_cls: np.ndarray, im_name: str) -> None:CODE
LOWultralytics/utils/metrics.py1146 def update_stats(self, stat: dict[str, Any]) -> None:CODE
LOWultralytics/utils/metrics.py1317 def update_stats(self, stat: dict[str, Any]) -> None:CODE
LOWultralytics/utils/metrics.py1470 def update_stats(self, stat: dict[str, Any]) -> None:CODE
LOWultralytics/utils/metrics.py1729 def update_stats(self, preds: torch.Tensor, targets: torch.Tensor) -> None:CODE
LOWultralytics/utils/metrics.py1956 def update_stats(self, preds: torch.Tensor, targets: torch.Tensor) -> None:CODE
LOW⚡ultralytics/utils/tqdm.py322 def set_description(self, desc: str | None) -> None:CODE
LOW⚡ultralytics/utils/tqdm.py328 def set_postfix(self, **kwargs: Any) -> None:CODE
LOWultralytics/utils/export/__init__.py22__all__ = [CODE
LOWultralytics/models/sam/sam3/vitdet.py96 def _setup_rel_pos(self, rel_pos_zero_init: bool = True, input_size: tuple[int, int] | None = None) -> None:CODE
LOWultralytics/models/sam/sam3/vitdet.py120 def _setup_rope_freqs(self, input_size: tuple[int, int] | None = None) -> None:CODE
LOWultralytics/models/nas/val.py8__all__ = ["NASValidator"]CODE
LOWultralytics/models/yolo/model.py202 def set_classes(self, classes: list[str]) -> None:CODE
LOWultralytics/models/yolo/model.py354 def set_classes(self, classes: list[str], embeddings: torch.Tensor | None = None) -> None:CODE
LOWultralytics/models/yolo/detect/val.py221 def update_metrics(self, preds: list[dict[str, torch.Tensor]], batch: dict[str, Any]) -> None:CODE
LOWultralytics/models/yolo/classify/val.py90 def update_metrics(self, preds: torch.Tensor, batch: dict[str, Any]) -> None:CODE
LOWultralytics/models/yolo/depth/val.py51 def update_metrics(self, preds: torch.Tensor, batch: dict[str, Any]) -> None:CODE
LOWultralytics/models/yolo/yoloe/__init__.py8__all__ = [CODE
LOWultralytics/models/yolo/world/__init__.py6__all__ = ["WorldTrainer", "WorldValidator"]CODE
LOWultralytics/models/yolo/world/train.py120 def set_text_embeddings(self, datasets: list[Any], batch: int | None) -> None:CODE
LOWultralytics/trackers/deep_oc_sort.py61 def update_features(self, feat: np.ndarray, score: float | None = None) -> None:CODE
LOWultralytics/trackers/bot_sort.py71 def update_features(self, feat: np.ndarray) -> None:CODE
LOWultralytics/trackers/track_tracker.py258 def update_features(self, feat: np.ndarray) -> None:CODE
LOWultralytics/data/build.py223 def set_epoch(self, epoch: int) -> None:CODE
LOWultralytics/data/dataset.py927 def update_labels(self, include_class: list[int] | None) -> None:CODE
LOWultralytics/data/base.py226 def update_labels(self, include_class: list[int] | None) -> None:CODE
LOWultralytics/data/base.py409 def set_rectangle(self) -> None:CODE
Hallucination Indicators2 hits · 20 pts
SeverityFileLineSnippetContext
CRITICALtests/test_cuda.py73 assert "CUDAExecutionProvider" in model.predictor.model.backend.session.get_providers()CODE
CRITICALultralytics/utils/export/coreml.py159 pipeline.spec.description.metadata.userDefined.update(CODE
Verbosity Indicators21 hits · 19 pts
SeverityFileLineSnippetContext
LOW⚡ultralytics/models/sam/predict.py1736 # Step 0: clear the input on those frames where this object id has point or mask inputCOMMENT
LOW⚡ultralytics/models/sam/predict.py1745 # Step 1: Update the object id mapping (note that it must be done after Step 0,COMMENT
LOW⚡ultralytics/models/sam/predict.py2880 # Step 1: run backbone and detector in a distributed manner -- this is done via Sam3ImageOnVideoMultiGPU,COMMENT
LOW⚡ultralytics/models/sam/predict.py2889 # Step 2: each GPU propagates its local SAM2 states to get the SAM2 prediction masks.COMMENT
LOW⚡ultralytics/models/sam/predict.py2923 # Step 4: based on `tracker_update_plan`, each GPU executes the update w.r.t. its local SAM2 inference statesCOMMENT
LOW⚡ultralytics/models/sam/predict.py2932 # Step 5: finally, build the outputs for this frame (it only needs to be done on GPU 0 sinceCOMMENT
LOWultralytics/models/sam/predict.py1759 # Step 2: For per-object tensor storage, we shift their obj_idx in the dict keys.COMMENT
LOWultralytics/models/sam/predict.py1775 # Step 3: For packed tensor storage, we index the remaining ids and rebuild the per-object slices.COMMENT
LOWultralytics/models/sam/predict.py2903 # Step 3: based on detection outputs and the propagated SAM2 prediction masks, we make plansCOMMENT
LOWultralytics/models/sam/predict.py3040 # Step 1: propagate the local SAM2 states to get the current frame's predictionCOMMENT
LOWultralytics/models/sam/predict.py3052 # Step 2: all-gather `low_res_masks_local` into `low_res_masks_global`COMMENT
LOWultralytics/models/sam/predict.py3125 # Step 1: make the update plan and resolve heuristics on GPU 0COMMENT
LOWultralytics/models/sam/predict.py3256 # Step 4: Run SAM2 memory encoder on the current frame's prediction masksCOMMENT
LOWultralytics/models/sam/predict.py3277 # Step 5: update the SAM2 metadata based on the update planCOMMENT
LOWultralytics/models/sam/predict.py3403 # Step 1: add new objects from the detector to SAM2 inference statesCOMMENT
LOWultralytics/models/sam/predict.py3416 # Step 2: remove from SAM2 inference states those objects removed by heuristicsCOMMENT
LOWultralytics/models/sam/predict.py3716 # Step 1: log the frame index where each object ID first appearsCOMMENT
LOWultralytics/models/sam/predict.py3739 # Step 2: removed tracks that has not matched with detections for `hotstart_unmatch_thresh` frames with hotstartCOMMENT
LOWultralytics/models/sam/predict.py3767 # Step 3: removed tracks that overlaps with another track for `hotstart_dup_thresh` framesCOMMENT
LOWultralytics/models/sam/modules/sam.py657 # Step 1: condition the visual features of the current frame on previous memoriesCOMMENT
LOWultralytics/models/sam/modules/sam.py784 # Step 2: Concatenate the memories and forward through the transformer encoderCOMMENT
AI Slop Vocabulary6 hits · 11 pts
SeverityFileLineSnippetContext
MEDIUMpyproject.toml19# For comprehensive documentation and usage instructions, visit: https://docs.ultralytics.comCOMMENT
MEDIUMtests/test_python.py1398 # Test smart_value() with comprehensive casesCOMMENT
MEDIUMultralytics/utils/__init__.py654 """Load YAML file to Python object with robust error handling.STRING
MEDIUMultralytics/utils/autodevice.py12 """Manages NVIDIA GPU information via pynvml with robust error handling.STRING
MEDIUMultralytics/utils/callbacks/platform.py197 """Collect comprehensive environment info using existing ultralytics utilities."""STRING
MEDIUMultralytics/cfg/trackers/ocsort.yaml7tracker_type: ocsort # (str) Tracker backend: ocsort; observation-centric SORT for robust multi-object trackingCODE
Decorative Section Separators2 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMultralytics/models/sam/modules/tiny_encoder.py3# --------------------------------------------------------COMMENT
MEDIUMultralytics/models/sam/modules/tiny_encoder.py10# --------------------------------------------------------COMMENT
Modern AI Meta-Vocabulary1 hit · 2 pts
SeverityFileLineSnippetContext
MEDIUMultralytics/cfg/trackers/deepocsort.yaml23model: auto # (str) ReID model path; "auto" uses detector features, or use a .pt checkpoint or exported embedding modelCODE
Overly Generic Function Names2 hits · 0 pts
SeverityFileLineSnippetContext
LOWultralytics/utils/__init__.py551 ... def my_function():STRING
LOWultralytics/utils/__init__.py1198 ... def process_data(data):STRING