Ultralytics YOLO26, YOLO11, YOLOv8 — object detection, instance segmentation, semantic segmentation, image classification, pose estimation, object tracking
This report presents the forensic synthetic code analysis of ultralytics/ultralytics, a Python project with 59,458 GitHub stars. SynthScan v2.0 examined 190,407 lines of code across 958 source files, recording 1580 pattern matches distributed across 19 syntactic categories. The overall adjusted score of 17.2 places this repository in the Moderate AI signal band.
The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).
This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.
Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.
This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.
The scanner identified 1580 distinct pattern matches across 19 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | CONTRIBUTING.md | 64 | Example function demonstrating Google-style docstrings. Args: arg1 (int): The first argument. arg2 | STRING |
| HIGH | CONTRIBUTING.md | 87 | Example function demonstrating Google-style docstrings. Args: arg1: The first argument. arg2: The s | STRING |
| HIGH | docs/build_docs.py | 348 | Remove comments and empty lines from a string of code, preserving newlines and URLs. Args: content (str): C | STRING |
| HIGH | docs/en/help/contributing.md | 62 | Example function demonstrating Google-style docstrings. Args: arg1 (int): The first argumen | STRING |
| HIGH | docs/en/help/contributing.md | 84 | Example function demonstrating Google-style docstrings. Args: arg1 (int): The first argumen | STRING |
| HIGH | docs/en/help/contributing.md | 106 | Example function demonstrating Google-style docstrings. Args: arg1 (int): The first argumen | STRING |
| HIGH | docs/en/help/contributing.md | 147 | Example function demonstrating Google-style docstrings. Args: arg1: The first argument. | STRING |
| HIGH | ultralytics/nn/tasks.py | 1484 | Context manager for temporarily adding or modifying modules in Python's module cache (`sys.modules`). This function | STRING |
| HIGH | ultralytics/nn/tasks.py | 1669 | Attempt to load a PyTorch model with the torch.load() function. If a ModuleNotFoundError is raised, it catches the e | STRING |
| HIGH | ultralytics/nn/text_model.py | 89 | Convert input texts to CLIP tokens. Args: texts (str | list[str]): Input text or list of texts to t | STRING |
| HIGH | ultralytics/nn/text_model.py | 110 | Encode tokenized texts into normalized feature vectors. This method processes tokenized text inputs through the | STRING |
| HIGH | ultralytics/nn/text_model.py | 135 | Encode images into normalized feature vectors. This method processes image inputs through the CLIP model to gen | STRING |
| HIGH | ultralytics/nn/text_model.py | 220 | Convert input texts to MobileCLIP tokens. Args: texts (list[str]): List of text strings to tokenize | STRING |
| HIGH | ultralytics/nn/text_model.py | 236 | Encode tokenized texts into normalized feature vectors. Args: texts (torch.Tensor): Tokenized text | STRING |
| HIGH | ultralytics/nn/text_model.py | 297 | Convert input texts to MobileCLIP tokens. Args: texts (list[str]): List of text strings to tokenize | STRING |
| HIGH | ultralytics/nn/text_model.py | 318 | Encode tokenized texts into normalized feature vectors. Args: texts (torch.Tensor): Tokenized text | STRING |
| HIGH | ultralytics/nn/text_model.py | 339 | Build a text encoding model based on the specified variant. Args: variant (str): Model variant in format "b | STRING |
| HIGH | ultralytics/nn/autobackend.py | 38 | Check class names and convert to dict format if needed. Args: names (list | dict): Class names as list or d | STRING |
| HIGH | ultralytics/nn/autobackend.py | 230 | Delegate attribute access to the backend. This allows AutoBackend to transparently expose backend attributes | STRING |
| HIGH | ultralytics/nn/autobackend.py | 321 | Take a path to a model file and return the model format string. Args: p (str): Path to the model fi | STRING |
| HIGH | ultralytics/nn/modules/utils.py | 16 | Create a list of cloned modules from the given module. Args: module (nn.Module): The module to be cloned. | STRING |
| HIGH | ultralytics/nn/modules/utils.py | 36 | Initialize conv/fc bias value according to a given probability value. This function calculates the bias initializat | STRING |
| HIGH | ultralytics/nn/modules/utils.py | 78 | Calculate the inverse sigmoid function for a tensor. This function applies the inverse of the sigmoid function to a | STRING |
| HIGH | ultralytics/nn/modules/block.py | 1437 | C2PSA module with attention mechanism for enhanced feature extraction and processing. This module implements a conv | STRING |
| HIGH | ultralytics/solutions/object_blurrer.py | 50 | Apply a blurring effect to detected objects in the input image. This method extracts tracking information, appl | STRING |
| HIGH | ultralytics/solutions/security_alarm.py | 116 | Monitor the frame, process object detections, and trigger alerts if thresholds are met. This method processes t | STRING |
| HIGH | ultralytics/solutions/distance_calculation.py | 71 | Process a video frame and calculate the distance between two selected bounding boxes. This method extracts trac | STRING |
| HIGH | ultralytics/solutions/trackzone.py | 50 | Process the input frame to track objects within a defined region. This method initializes the annotator, create | STRING |
| HIGH | ultralytics/solutions/object_counter.py | 141 | Process input data (frames or object tracks) and update object counts. This method initializes the counting reg | STRING |
| HIGH | ultralytics/solutions/instance_segmentation.py | 52 | Perform instance segmentation on the input image and annotate the results. Args: im0 (np.ndarray): | STRING |
| HIGH | ultralytics/solutions/similarity_search.py | 137 | Return top-k semantically similar images to the given query. Args: query (str): Natural language te | STRING |
| HIGH | ultralytics/solutions/queue_management.py | 48 | Process queue management for a single frame of video. Args: im0 (np.ndarray): Input image for proce | STRING |
| HIGH | ultralytics/solutions/parking_management.py | 222 | Process the input image for parking lot management and visualization. This function analyzes the input image, e | STRING |
| HIGH | ultralytics/solutions/ai_gym.py | 50 | Monitor workouts using Ultralytics YOLO Pose Model. This function processes an input image to track and analyze | STRING |
| HIGH | ultralytics/solutions/vision_eye.py | 39 | Perform object detection, vision mapping, and annotation on the input image. Args: im0 (np.ndarray) | STRING |
| HIGH | ultralytics/solutions/object_cropper.py | 51 | Crop detected objects from the input image and save them as separate images. Args: im0 (np.ndarray) | STRING |
| HIGH | ultralytics/solutions/solutions.py | 206 | Return the axis-aligned box [x1, y1, x2, y2] enclosing a box extracted by `extract_tracks`. Boxes from OBB mode | STRING |
| HIGH | ultralytics/solutions/solutions.py | 234 | Display the results of the processing, which could involve showing frames, printing counts, or saving results. | STRING |
| HIGH | ultralytics/solutions/solutions.py | 492 | Draw specific keypoints for gym steps counting. Args: keypoints (list[list[float]]): Keypoints data | STRING |
| HIGH | ultralytics/solutions/analytics.py | 96 | Process image data and run object tracking to update analytics charts. Args: im0 (np.ndarray): Inpu | STRING |
| HIGH | ultralytics/solutions/analytics.py | 141 | Update the graph with new data for single or multiple classes. Args: frame_number (int): The curren | STRING |
| HIGH | ultralytics/solutions/speed_estimation.py | 62 | Process an input frame to estimate object speeds based on tracking data. Args: im0 (np.ndarray): In | STRING |
| HIGH | ultralytics/optim/muon.py | 10 | Compute the zeroth power / orthogonalization of matrix G using Newton-Schulz iteration. This function implements a | STRING |
| HIGH | ultralytics/optim/muon.py | 60 | Compute Muon optimizer update with momentum and orthogonalization. This function applies momentum to the gradient, | STRING |
| HIGH | ultralytics/optim/muon.py | 100 | Hybrid optimizer combining Muon and SGD updates for neural network training. This optimizer implements a combinatio | STRING |
| HIGH | ultralytics/optim/muon.py | 181 | Perform a single optimization step. Applies either hybrid Muon+SGD updates or pure SGD updates depending on the | STRING |
| HIGH | ultralytics/optim/muon.py | 255 | Muon optimizer for usage in non-distributed settings. This optimizer implements the Muon algorithm, which combines | STRING |
| HIGH | ultralytics/optim/muon.py | 298 | Perform a single optimization step. Applies Muon updates to all parameters, incorporating momentum and orthogon | STRING |
| HIGH | ultralytics/utils/instance.py | 36 | A class for handling bounding boxes in multiple formats. The class supports various bounding box formats like 'xyxy | STRING |
| HIGH | ultralytics/utils/instance.py | 141 | Concatenate a list of Bboxes objects into a single Bboxes object. Args: boxes_list (list[Bboxes]): | STRING |
| HIGH | ultralytics/utils/instance.py | 163 | Retrieve a specific bounding box or a set of bounding boxes using indexing. Args: index (int | slic | STRING |
| HIGH | ultralytics/utils/instance.py | 319 | Retrieve a specific instance or a set of instances using indexing. Args: index (int | slice | np.nd | STRING |
| HIGH | ultralytics/utils/instance.py | 438 | Concatenate a list of Instances objects into a single Instances object. Args: instances_list (list[ | STRING |
| HIGH | ultralytics/utils/metrics.py | 239 | Calculate probabilistic IoU between oriented bounding boxes. Args: obb1 (torch.Tensor): Ground truth OBBs, | STRING |
| HIGH | ultralytics/utils/metrics.py | 621 | Generate a summarized representation of the confusion matrix as a list of dictionaries, with optional normalizat | STRING |
| HIGH | ultralytics/utils/metrics.py | 1235 | Generate a summarized representation of per-class detection metrics as a list of dictionaries. Includes shared s | STRING |
| HIGH | ultralytics/utils/metrics.py | 1392 | Generate a summarized representation of per-class segmentation metrics as a list of dictionaries. Includes both | STRING |
| HIGH | ultralytics/utils/metrics.py | 1543 | Generate a summarized representation of per-class pose metrics as a list of dictionaries. Includes both box and | STRING |
| HIGH | ultralytics/utils/metrics.py | 1632 | Generate a single-row summary of classification metrics (Top-1 and Top-5 accuracy). Args: normalize | STRING |
| HIGH | ultralytics/utils/files.py | 58 | Context manager to handle paths with spaces in their names. If a path contains spaces, it replaces them with unders | STRING |
| 278 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/conftest.py | 6 | CODE | |
| LOW | docs/build_docs.py | 23 | CODE | |
| LOW | docs/build_reference.py | 11 | CODE | |
| LOW | examples/YOLO-Axelera-Python/yolo11-seg.py | 19 | CODE | |
| LOW | examples/YOLO-Axelera-Python/yolo26-pose-tracker.py | 30 | CODE | |
| LOW | examples/YOLOv8-Region-Counter/yolov8_region_counter.py | 3 | CODE | |
| LOW | examples/YOLOv8-OpenCV-ONNX-Python/main.py | 3 | CODE | |
| LOW | examples/YOLOv8-ONNXRuntime/main.py | 3 | CODE | |
| LOW | …es/YOLO-Interactive-Tracking-UI/interactive_tracker.py | 3 | CODE | |
| LOW | …amples/YOLOv8-Action-Recognition/action_recognition.py | 3 | CODE | |
| LOW | examples/RTDETR-ONNXRuntime-Python/main.py | 3 | CODE | |
| LOW | examples/YOLOv8-Segmentation-ONNXRuntime-Python/main.py | 3 | CODE | |
| LOW | .github/scripts/create-export-env.py | 4 | CODE | |
| LOW | ultralytics/__init__.py | 13 | CODE | |
| LOW | ultralytics/__init__.py | 14 | CODE | |
| LOW | ultralytics/__init__.py | 15 | CODE | |
| LOW | ultralytics/__init__.py | 32 | CODE | |
| LOW | ultralytics/__init__.py | 32 | CODE | |
| LOW | ultralytics/__init__.py | 32 | CODE | |
| LOW | ultralytics/__init__.py | 32 | CODE | |
| LOW | ultralytics/__init__.py | 32 | CODE | |
| LOW | ultralytics/__init__.py | 32 | CODE | |
| LOW | ultralytics/__init__.py | 32 | CODE | |
| LOW | ultralytics/nn/text_model.py | 3 | CODE | |
| LOW | ultralytics/nn/__init__.py | 3 | CODE | |
| LOW | ultralytics/nn/__init__.py | 3 | CODE | |
| LOW | ultralytics/nn/__init__.py | 3 | CODE | |
| LOW | ultralytics/nn/__init__.py | 3 | CODE | |
| LOW | ultralytics/nn/__init__.py | 3 | CODE | |
| LOW | ultralytics/nn/__init__.py | 3 | CODE | |
| LOW | ultralytics/nn/__init__.py | 3 | CODE | |
| LOW | ultralytics/nn/__init__.py | 3 | CODE | |
| LOW | ultralytics/nn/__init__.py | 3 | CODE | |
| LOW | ultralytics/nn/__init__.py | 3 | CODE | |
| LOW | ultralytics/nn/distill_model.py | 3 | CODE | |
| LOW | ultralytics/nn/autobackend.py | 3 | CODE | |
| LOW | ultralytics/nn/autobackend.py | 308 | CODE | |
| LOW | ultralytics/nn/backends/deepx.py | 3 | CODE | |
| LOW | ultralytics/nn/backends/qnn.py | 3 | CODE | |
| LOW | ultralytics/nn/backends/triton.py | 3 | CODE | |
| LOW | ultralytics/nn/backends/paddle.py | 3 | CODE | |
| LOW | ultralytics/nn/backends/onnx.py | 3 | CODE | |
| LOW | ultralytics/nn/backends/onnx.py | 166 | CODE | |
| LOW | ultralytics/nn/backends/openvino.py | 3 | CODE | |
| LOW | ultralytics/nn/backends/__init__.py | 9 | CODE | |
| LOW | ultralytics/nn/backends/__init__.py | 10 | CODE | |
| LOW | ultralytics/nn/backends/__init__.py | 11 | CODE | |
| LOW | ultralytics/nn/backends/__init__.py | 12 | CODE | |
| LOW | ultralytics/nn/backends/__init__.py | 13 | CODE | |
| LOW | ultralytics/nn/backends/__init__.py | 14 | CODE | |
| LOW | ultralytics/nn/backends/__init__.py | 15 | CODE | |
| LOW | ultralytics/nn/backends/__init__.py | 16 | CODE | |
| LOW | ultralytics/nn/backends/__init__.py | 17 | CODE | |
| LOW | ultralytics/nn/backends/__init__.py | 17 | CODE | |
| LOW | ultralytics/nn/backends/__init__.py | 18 | CODE | |
| LOW | ultralytics/nn/backends/__init__.py | 19 | CODE | |
| LOW | ultralytics/nn/backends/__init__.py | 20 | CODE | |
| LOW | ultralytics/nn/backends/__init__.py | 20 | CODE | |
| LOW | ultralytics/nn/backends/__init__.py | 21 | CODE | |
| LOW | ultralytics/nn/backends/__init__.py | 22 | CODE | |
| 360 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | docs/en/platform/quickstart.md | 301 | headers = {"Authorization": "Bearer YOUR_API_KEY"} | CODE |
| HIGH | docs/en/platform/quickstart.md | 313 | -H "Authorization: Bearer YOUR_API_KEY" \ | CODE |
| HIGH | docs/en/platform/quickstart.md | 374 | export ULTRALYTICS_API_KEY="YOUR_API_KEY" | CODE |
| HIGH | docs/en/platform/index.md | 142 | export ULTRALYTICS_API_KEY="YOUR_API_KEY" | CODE |
| HIGH | docs/en/platform/index.md | 155 | os.environ["ULTRALYTICS_API_KEY"] = "YOUR_API_KEY" | CODE |
| HIGH | docs/en/platform/index.md | 198 | headers = {"Authorization": "Bearer YOUR_API_KEY"} | CODE |
| HIGH | docs/en/platform/index.md | 210 | -H "Authorization: Bearer YOUR_API_KEY" \ | CODE |
| HIGH | docs/en/platform/index.md | 222 | headers: { Authorization: "Bearer YOUR_API_KEY" }, | CODE |
| HIGH | docs/en/platform/index.md | 323 | export ULTRALYTICS_API_KEY="YOUR_API_KEY" | CODE |
| HIGH | docs/en/platform/index.md | 336 | os.environ["ULTRALYTICS_API_KEY"] = "YOUR_API_KEY" | CODE |
| HIGH | docs/en/platform/index.md | 351 | export ULTRALYTICS_API_KEY="YOUR_API_KEY" | CODE |
| HIGH | docs/en/platform/deploy/inference.md | 147 | Authorization: Bearer YOUR_API_KEY | CODE |
| HIGH | docs/en/platform/deploy/inference.md | 168 | headers = {"Authorization": "Bearer YOUR_API_KEY"} | CODE |
| HIGH | docs/en/platform/deploy/inference.md | 181 | -H "Authorization: Bearer YOUR_API_KEY" \ | CODE |
| HIGH | docs/en/platform/deploy/inference.md | 201 | headers: { Authorization: "Bearer YOUR_API_KEY" }, | CODE |
| HIGH | docs/en/platform/deploy/inference.md | 439 | headers = {"Authorization": "Bearer YOUR_API_KEY"} | CODE |
| HIGH | docs/en/platform/deploy/endpoints.md | 286 | Authorization: Bearer YOUR_API_KEY | CODE |
| HIGH | docs/en/platform/deploy/endpoints.md | 306 | headers = {"Authorization": "Bearer YOUR_API_KEY"} | CODE |
| HIGH | docs/en/platform/deploy/endpoints.md | 333 | headers: { Authorization: "Bearer YOUR_API_KEY" }, | CODE |
| HIGH | docs/en/platform/deploy/endpoints.md | 347 | -H "Authorization: Bearer YOUR_API_KEY" \ | CODE |
| HIGH | docs/en/platform/deploy/monitoring.md | 173 | headers = {"Authorization": "Bearer YOUR_API_KEY"} | CODE |
| HIGH | docs/en/platform/deploy/monitoring.md | 200 | headers: { Authorization: "Bearer YOUR_API_KEY" }, | CODE |
| HIGH | docs/en/platform/deploy/monitoring.md | 214 | -H "Authorization: Bearer YOUR_API_KEY" \ | CODE |
| HIGH | docs/en/platform/train/cloud-training.md | 214 | export ULTRALYTICS_API_KEY="YOUR_API_KEY" | CODE |
| HIGH | docs/en/platform/train/index.md | 122 | export ULTRALYTICS_API_KEY="YOUR_API_KEY" | CODE |
| HIGH | docs/en/platform/api/index.md | 17 | curl -H "Authorization: Bearer YOUR_API_KEY" \ | CODE |
| HIGH | docs/en/platform/api/index.md | 73 | Authorization: Bearer YOUR_API_KEY | CODE |
| HIGH | docs/en/platform/api/index.md | 85 | curl -H "Authorization: Bearer YOUR_API_KEY" \ | CODE |
| HIGH | docs/en/platform/api/index.md | 94 | headers = {"Authorization": "Bearer YOUR_API_KEY"} | CODE |
| HIGH | docs/en/platform/api/index.md | 106 | headers: { Authorization: "Bearer YOUR_API_KEY" }, | CODE |
| HIGH | docs/en/platform/api/index.md | 211 | curl -H "Authorization: Bearer YOUR_API_KEY" \ | CODE |
| HIGH | docs/en/platform/api/index.md | 751 | -H "Authorization: Bearer YOUR_API_KEY" \ | CODE |
| HIGH | docs/en/platform/api/index.md | 937 | -H "Authorization: Bearer YOUR_API_KEY" \ | CODE |
| HIGH | docs/en/platform/api/index.md | 1031 | -H "Authorization: Bearer YOUR_API_KEY" \ | CODE |
| HIGH | docs/en/platform/api/index.md | 1315 | -H "Authorization: Bearer YOUR_API_KEY" \ | CODE |
| HIGH | docs/en/platform/api/index.md | 1907 | -H "Authorization: Bearer YOUR_API_KEY" \ | CODE |
| HIGH⚡ | docs/en/platform/api/index.md | 2218 | yolo settings api_key=YOUR_API_KEY | CODE |
| HIGH⚡ | docs/en/platform/api/index.md | 2224 | export ULTRALYTICS_API_KEY=YOUR_API_KEY | CODE |
| HIGH⚡ | docs/en/platform/api/index.md | 2232 | settings.api_key = "YOUR_API_KEY" | CODE |
| HIGH | docs/en/platform/api/index.md | 2355 | curl -H "Authorization: Bearer YOUR_API_KEY" \ | CODE |
| HIGH | docs/en/platform/api/index.md | 2362 | curl -H "Authorization: Bearer YOUR_API_KEY" \ | CODE |
| HIGH⚡ | docs/en/platform/account/api-keys.md | 70 | export ULTRALYTICS_API_KEY="YOUR_API_KEY" | CODE |
| HIGH⚡ | docs/en/platform/account/api-keys.md | 76 | $env:ULTRALYTICS_API_KEY = "YOUR_API_KEY" | CODE |
| HIGH⚡ | docs/en/platform/account/api-keys.md | 84 | yolo settings api_key="YOUR_API_KEY" | CODE |
| HIGH | docs/en/platform/account/api-keys.md | 98 | api_key = "YOUR_API_KEY" | CODE |
| HIGH | docs/en/platform/account/api-keys.md | 106 | curl -H "Authorization: Bearer YOUR_API_KEY" \ | CODE |
| HIGH | docs/en/platform/account/api-keys.md | 125 | export ULTRALYTICS_API_KEY="YOUR_API_KEY" | CODE |
| HIGH | docs/en/platform/account/trash.md | 155 | curl -H "Authorization: Bearer YOUR_API_KEY" \ | CODE |
| HIGH | docs/en/platform/account/trash.md | 162 | curl -X POST -H "Authorization: Bearer YOUR_API_KEY" \ | CODE |
| HIGH⚡ | docs/en/platform/account/activity.md | 146 | The routes shown below require an active platform browser session. The `Authorization: Bearer YOUR_API_KEY` header i | CODE |
| HIGH⚡ | docs/en/platform/account/activity.md | 151 | curl -H "Authorization: Bearer YOUR_API_KEY" \ | CODE |
| HIGH⚡ | docs/en/platform/account/activity.md | 158 | curl -H "Authorization: Bearer YOUR_API_KEY" \ | CODE |
| HIGH⚡ | docs/en/platform/account/activity.md | 165 | curl -X POST -H "Authorization: Bearer YOUR_API_KEY" \ | CODE |
| HIGH⚡ | docs/en/platform/account/activity.md | 175 | curl -X POST -H "Authorization: Bearer YOUR_API_KEY" \ | CODE |
| HIGH⚡ | docs/en/platform/account/activity.md | 181 | curl -X POST -H "Authorization: Bearer YOUR_API_KEY" \ | CODE |
| HIGH | docs/en/platform/data/index.md | 172 | export ULTRALYTICS_API_KEY="YOUR_API_KEY" | CODE |
| HIGH | docs/en/platform/data/index.md | 181 | os.environ["ULTRALYTICS_API_KEY"] = "YOUR_API_KEY" | CODE |
| HIGH | docs/en/platform/data/datasets.md | 614 | export ULTRALYTICS_API_KEY="YOUR_API_KEY" | CODE |
| HIGH | docs/en/datasets/explorer/index.md | 102 | yolo settings openai_api_key="YOUR_API_KEY" | CODE |
| HIGH | docs/en/integrations/weights-biases.md | 69 | wandb.login(key="YOUR_API_KEY") | CODE |
| 6 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/test_exports.py | 238 | except Exception as error: # pragma: no cover - assertion handled below | CODE |
| LOW | docs/build_docs.py | 148 | except Exception as e: | CODE |
| LOW | docs/build_docs.py | 187 | except Exception as e: | CODE |
| LOW | docs/build_docs.py | 204 | except Exception: | CODE |
| LOW | docs/build_docs.py | 213 | except Exception: | CODE |
| LOW | docs/build_docs.py | 480 | except Exception as e: | CODE |
| LOW | docs/build_docs.py | 527 | except Exception as e: | CODE |
| LOW | docs/build_docs.py | 542 | except Exception as e: | CODE |
| LOW | docs/build_docs.py | 556 | except Exception as e: | CODE |
| LOW | docs/build_docs.py | 686 | except Exception as e: | CODE |
| LOW | docs/build_reference.py | 193 | except Exception: | CODE |
| LOW | docs/build_reference.py | 646 | except Exception: | CODE |
| LOW | docs/en/datasets/detect/roboflow-100.md | 83 | except Exception: | CODE |
| MEDIUM | docs/en/usage/simple-utilities.md | 490 | print("Error: Could not open video.") | CODE |
| LOW | docs/en/guides/vertex-ai-deployment-with-docker.md | 123 | except Exception as e: | CODE |
| MEDIUM | docs/en/guides/vertex-ai-deployment-with-docker.md | 124 | print(f"Error initializing YOLO model: {e}") | CODE |
| LOW | docs/en/guides/vertex-ai-deployment-with-docker.md | 205 | except Exception as e: | CODE |
| MEDIUM | docs/en/guides/vertex-ai-deployment-with-docker.md | 207 | print(f"Error in YOLO detection: {e}") | CODE |
| LOW | docs/en/guides/vertex-ai-deployment-with-docker.md | 353 | except Exception as e: | CODE |
| LOW | .github/workflows/merge-main-into-prs.yml | 73 | except Exception as update_error: | CODE |
| LOW | .github/workflows/merge-main-into-prs.yml | 79 | except Exception as e: | CODE |
| LOW | ultralytics/nn/tasks.py | 1589 | except Exception as e: | CODE |
| LOW | ultralytics/nn/tasks.py | 1622 | except Exception: # optional/oddball submodule — skip | CODE |
| LOW | ultralytics/nn/autobackend.py | 83 | except Exception: | CODE |
| LOW | ultralytics/nn/backends/tensorrt.py | 66 | except Exception as e: | CODE |
| LOW | ultralytics/nn/backends/coreml.py | 42 | except Exception: | CODE |
| LOW | ultralytics/solutions/security_alarm.py | 112 | except Exception as e: | CODE |
| LOW | ultralytics/solutions/similarity_search.py | 122 | except Exception as e: | CODE |
| LOW | ultralytics/utils/autobatch.py | 126 | except Exception as e: | CODE |
| LOW | ultralytics/utils/events.py | 22 | except Exception: | CODE |
| LOW | ultralytics/utils/checks.py | 131 | except Exception as e: | CODE |
| LOW | ultralytics/utils/checks.py | 327 | except Exception: | CODE |
| LOW | ultralytics/utils/checks.py | 348 | except Exception: | CODE |
| LOW | ultralytics/utils/checks.py | 417 | except Exception: | CODE |
| LOW | ultralytics/utils/checks.py | 541 | except Exception as e: | CODE |
| LOW | ultralytics/utils/checks.py | 778 | except Exception as e: | CODE |
| LOW | ultralytics/utils/checks.py | 972 | except Exception: | CODE |
| LOW | ultralytics/utils/checks.py | 1071 | except Exception: # broad clause to capture all Intel GPU exception types | CODE |
| LOW | ultralytics/utils/plotting.py | 238 | except Exception: | CODE |
| LOW | ultralytics/utils/plotting.py | 892 | except Exception: | CODE |
| LOW | ultralytics/utils/plotting.py | 959 | except Exception as e: | CODE |
| LOW | ultralytics/utils/cpu.py | 57 | except Exception: | CODE |
| LOW | ultralytics/utils/cpu.py | 63 | except Exception: | CODE |
| LOW⚡ | ultralytics/utils/__init__.py | 658 | except Exception as e: | CODE |
| LOW⚡ | ultralytics/utils/__init__.py | 663 | except Exception: | CODE |
| LOW | ultralytics/utils/__init__.py | 803 | except Exception: | CODE |
| LOW | ultralytics/utils/__init__.py | 832 | except Exception: | CODE |
| LOW | ultralytics/utils/__init__.py | 1148 | except Exception as e: | CODE |
| LOW | ultralytics/utils/__init__.py | 1304 | except Exception as e: | CODE |
| LOW | ultralytics/utils/__init__.py | 1313 | except Exception as e: | CODE |
| LOW | ultralytics/utils/__init__.py | 237 | except Exception: | STRING |
| LOW | ultralytics/utils/logger.py | 103 | except Exception: | CODE |
| LOW | ultralytics/utils/logger.py | 124 | except Exception: | CODE |
| LOW | ultralytics/utils/logger.py | 237 | except Exception: | CODE |
| LOW | ultralytics/utils/logger.py | 256 | except Exception as e: | CODE |
| LOW | ultralytics/utils/logger.py | 494 | except Exception as e: | CODE |
| LOW | ultralytics/utils/logger.py | 635 | except Exception: | CODE |
| LOW⚡ | ultralytics/utils/tqdm.py | 287 | except Exception: | CODE |
| LOW | ultralytics/utils/tqdm.py | 333 | except Exception: | CODE |
| LOW | ultralytics/utils/tqdm.py | 360 | except Exception: | CODE |
| 93 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | docs/en/platform/train/cloud-training.md | 33 | ### Step 1: Select Base Model | COMMENT |
| LOW | docs/en/platform/train/cloud-training.md | 44 | ### Step 2: Select Dataset | COMMENT |
| LOW | docs/en/platform/train/cloud-training.md | 61 | ### Step 3: Configure Parameters | COMMENT |
| LOW | docs/en/platform/train/cloud-training.md | 72 | ### Step 4: Advanced Settings (Optional) | COMMENT |
| LOW | docs/en/platform/train/cloud-training.md | 102 | ### Step 5: Select GPU (Cloud Tab) | COMMENT |
| LOW | docs/en/platform/train/cloud-training.md | 120 | ### Step 6: Start Training | COMMENT |
| LOW | docs/en/integrations/hailo.md | 87 | ### Step 1: Install Ultralytics | COMMENT |
| LOW | docs/en/integrations/hailo.md | 93 | ### Step 2: Install Hailo DFC SDK | COMMENT |
| LOW | docs/en/integrations/hailo.md | 150 | # Step 1: Export to ONNX, then move it into the deploy folder to keep the working directory tidy | COMMENT |
| LOW | docs/en/integrations/hailo.md | 166 | # Step 2: Parse ONNX with Hailo DFC | COMMENT |
| LOW | docs/en/integrations/hailo.md | 171 | # Step 3: Load model script (normalization + HailoRT NMS) | COMMENT |
| LOW | docs/en/integrations/hailo.md | 183 | # Step 4: Build calibration dataset (auto-downloads COCO128) | COMMENT |
| LOW | docs/en/integrations/hailo.md | 195 | # Step 5: Optimize and quantize | COMMENT |
| LOW | docs/en/integrations/hailo.md | 199 | # Step 6: Compile to HEF | COMMENT |
| LOW | docs/en/integrations/hailo.md | 223 | ### Step 1: Export to ONNX and Save Metadata | COMMENT |
| LOW | docs/en/integrations/hailo.md | 229 | ### Step 2: Parse the ONNX Model | COMMENT |
| LOW | docs/en/integrations/hailo.md | 243 | ### Step 3: Load the Model Script | COMMENT |
| LOW⚡ | docs/en/integrations/hailo.md | 271 | ### Step 4: Build the Calibration Dataset | COMMENT |
| LOW⚡ | docs/en/integrations/hailo.md | 279 | ### Step 5: Optimize and Quantize | COMMENT |
| LOW⚡ | docs/en/integrations/hailo.md | 283 | ### Step 6: Compile to HEF | COMMENT |
| LOW | docs/en/integrations/hailo.md | 359 | ### Step 1: Install HailoRT on the Device | COMMENT |
| LOW | docs/en/integrations/hailo.md | 373 | ### Step 2: Quick Sanity Check | COMMENT |
| LOW | docs/en/integrations/hailo.md | 393 | ### Step 3: Run Inference | COMMENT |
| LOW | docs/en/integrations/neural-magic.md | 72 | ### Step 1: Installation | COMMENT |
| LOW | docs/en/integrations/neural-magic.md | 85 | ### Step 2: Exporting YOLO26 to ONNX Format | COMMENT |
| LOW | docs/en/integrations/neural-magic.md | 100 | ### Step 3: Deploying and Running Inferences | COMMENT |
| LOW | docs/en/integrations/neural-magic.md | 122 | ### Step 4: Benchmarking Performance | COMMENT |
| LOW | docs/en/integrations/neural-magic.md | 135 | ### Step 5: Additional Features | COMMENT |
| LOW | docs/en/integrations/jupyterlab.md | 54 | ### Step 1: Install JupyterLab | COMMENT |
| LOW | docs/en/integrations/jupyterlab.md | 67 | ### Step 2: Download the YOLO26 Tutorial Notebook | COMMENT |
| LOW | docs/en/integrations/jupyterlab.md | 71 | ### Step 3: Launch JupyterLab | COMMENT |
| LOW | docs/en/integrations/jupyterlab.md | 87 | ### Step 4: Start Experimenting | COMMENT |
| LOW | docs/en/integrations/ibm-watsonx.md | 48 | ### Step 1: Set Up Your Environment | COMMENT |
| LOW | docs/en/integrations/ibm-watsonx.md | 56 | ### Step 2: Install and Import Relevant Libraries | COMMENT |
| LOW | docs/en/integrations/ibm-watsonx.md | 87 | ### Step 3: Load the Data | COMMENT |
| LOW | docs/en/integrations/ibm-watsonx.md | 142 | ### Step 4: Preprocess the Data | COMMENT |
| LOW | docs/en/integrations/ibm-watsonx.md | 239 | ### Step 5: Train the YOLO26 model | COMMENT |
| LOW | docs/en/integrations/ibm-watsonx.md | 262 | ### Step 6: Test the Model | COMMENT |
| LOW | docs/en/integrations/ibm-watsonx.md | 295 | ### Step 7: Evaluate the Model | COMMENT |
| LOW | docs/en/integrations/ibm-watsonx.md | 313 | ### Step 8: Calculating [Intersection Over Union](https://www.ultralytics.com/glossary/intersection-over-union-iou) | COMMENT |
| LOW⚡ | docs/en/integrations/clearml.md | 71 | # Step 1: Creating a ClearML Task | COMMENT |
| LOW⚡ | docs/en/integrations/clearml.md | 74 | # Step 2: Selecting the YOLO26 Model | COMMENT |
| LOW⚡ | docs/en/integrations/clearml.md | 78 | # Step 3: Loading the YOLO26 Model | COMMENT |
| LOW⚡ | docs/en/integrations/clearml.md | 81 | # Step 4: Setting Up Training Arguments | COMMENT |
| LOW⚡ | docs/en/integrations/clearml.md | 85 | # Step 5: Initiating Model Training | COMMENT |
| LOW⚡ | docs/en/integrations/clearml.md | 241 | # Step 1: Creating a ClearML Task | COMMENT |
| LOW⚡ | docs/en/integrations/clearml.md | 244 | # Step 2: Selecting the YOLO26 Model | COMMENT |
| LOW⚡ | docs/en/integrations/clearml.md | 248 | # Step 3: Loading the YOLO26 Model | COMMENT |
| LOW⚡ | docs/en/integrations/clearml.md | 251 | # Step 4: Setting Up Training Arguments | COMMENT |
| LOW⚡ | docs/en/integrations/clearml.md | 255 | # Step 5: Initiating Model Training | COMMENT |
| LOW | docs/en/integrations/amazon-sagemaker.md | 30 | ### Step 1: Setup Your AWS Environment | COMMENT |
| LOW | docs/en/integrations/amazon-sagemaker.md | 44 | ### Step 2: Clone the YOLO26 SageMaker Repository | COMMENT |
| LOW | docs/en/integrations/amazon-sagemaker.md | 60 | ### Step 3: Set Up the CDK Environment | COMMENT |
| LOW | docs/en/integrations/amazon-sagemaker.md | 88 | ### Step 4: Create the AWS CloudFormation Stack | COMMENT |
| LOW | docs/en/integrations/amazon-sagemaker.md | 108 | ### Step 5: Deploy the YOLO Model | COMMENT |
| LOW | docs/en/integrations/amazon-sagemaker.md | 142 | ### Step 6: Testing Your Deployment | COMMENT |
| LOW | docs/en/integrations/amazon-sagemaker.md | 156 | ### Step 7: Monitoring and Management | COMMENT |
| LOW | …olov5/environments/docker-image-quickstart-tutorial.md | 124 | ## Step 1: Pull the YOLOv5 Docker Image | COMMENT |
| LOW | …olov5/environments/docker-image-quickstart-tutorial.md | 138 | ## Step 2: Run the Docker Container | COMMENT |
| LOW | …olov5/environments/docker-image-quickstart-tutorial.md | 176 | ## Step 3: Use YOLOv5 🚀 within the Docker Container | COMMENT |
| 44 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/test_solutions.py | 218 | def test_object_counter_polygon_direction(region, step, expected): | CODE |
| LOW | tests/test_solutions.py | 233 | def test_object_counter_polygon_reversal_at_entry(): | CODE |
| LOW | tests/test_solutions.py | 248 | def test_object_counter_polygon_reentry_after_inside_spawn(): | CODE |
| LOW | tests/test_solutions.py | 261 | def test_left_click_selection(): | CODE |
| LOW | tests/test_solutions.py | 269 | def test_left_click_selection_obb(): | CODE |
| LOW | tests/test_solutions.py | 308 | def test_object_blurrer_obb_outside_frame(): | CODE |
| LOW | tests/test_solutions.py | 339 | def test_analytics_graph_not_supported(): | CODE |
| LOW | tests/test_solutions.py | 357 | def test_config_update_method_with_invalid_argument(): | CODE |
| LOW | tests/test_solutions.py | 375 | def test_streamlit_handle_video_upload_creates_file(tmp_path): | CODE |
| LOW | tests/test_solutions.py | 408 | def test_similarity_search_app_init(): | CODE |
| LOW | tests/test_solutions.py | 417 | def test_similarity_search_complete(tmp_path): | CODE |
| LOW | tests/test_solutions.py | 431 | def test_distance_calculation_process_method(): | CODE |
| LOW | tests/test_solutions.py | 456 | def test_display_output_method(): | CODE |
| LOW | tests/test_engine.py | 226 | def test_load_checkpoint_state_dict_rejected(ckpt, tmp_path): | CODE |
| LOW | tests/test_engine.py | 275 | def test_checkpoint_nonfinite_ema_resync(): | CODE |
| LOW | tests/test_engine.py | 294 | def test_checkpoint_nonfinite_ema_and_model_sanitized(): | CODE |
| LOW | tests/test_engine.py | 319 | def test_train_reuses_loaded_checkpoint_model(monkeypatch, kwargs, uses_weights): | CODE |
| LOW | tests/test_engine.py | 361 | def test_train_multi_custom_trainer_metrics_and_failure_keys(monkeypatch, tmp_path): | CODE |
| LOW | tests/test_engine.py | 394 | def test_setup_model_respects_pretrained_arg_for_pt_models(monkeypatch, pretrained, uses_weights): | CODE |
| LOW | tests/conftest.py | 55 | def pytest_collection_modifyitems(config, items): | CODE |
| LOW | tests/test_exports.py | 117 | def test_quantize_canonicalization(): | CODE |
| LOW | tests/test_exports.py | 146 | def test_quantize_deprecation(): | CODE |
| LOW | tests/test_exports.py | 156 | def test_benchmark_forwards_legacy_precision(monkeypatch): | CODE |
| LOW | tests/test_exports.py | 180 | def test_export_rknn_batch_expansion(monkeypatch, tmp_path): | CODE |
| LOW | tests/test_exports.py | 202 | def test_modelopt_quantize_onnx_excludes_sigmoid(monkeypatch): | CODE |
| LOW | tests/test_exports.py | 272 | def test_export_openvino_matrix(task, dynamic, quantize, batch, nms, end2end): | CODE |
| LOW | tests/test_exports.py | 319 | def test_export_onnx_semantic_dnn(): | CODE |
| LOW | tests/test_exports.py | 339 | def test_export_torchscript_matrix(task, dynamic, batch, nms, end2end, tmp_path): | CODE |
| LOW | tests/test_exports.py | 368 | def test_export_coreml_matrix(task, dynamic, quantize, nms, batch, end2end): | CODE |
| LOW | tests/test_exports.py | 414 | def test_export_coreml_rtdetr(): | CODE |
| LOW | tests/test_exports.py | 465 | def test_export_mnn_rejects_unsupported_nms(model, kwargs, error): | CODE |
| LOW | tests/test_exports.py | 570 | def test_export_litert_matrix(task, quantize): | CODE |
| LOW | tests/test_exports.py | 593 | def test_export_executorch_matrix(task): | CODE |
| LOW | tests/test_exports.py | 635 | def test_export_env_has_smoke(env): | CODE |
| LOW | tests/test_exports.py | 640 | def test_every_format_env_is_registered(): | CODE |
| LOW | tests/test_python.py | 48 | def test_dataloader_caps_workers_to_batches(): | CODE |
| LOW | tests/test_python.py | 63 | def test_dataloader_cap_preserves_distributed_drop_last(monkeypatch): | CODE |
| LOW | tests/test_python.py | 79 | def test_dataloader_empty_dataset_uses_dataloader_validation(): | CODE |
| LOW | tests/test_python.py | 85 | def test_cfg_rejects_fuzzed_scalars(): | CODE |
| LOW | tests/test_python.py | 187 | def test_model_load_remaps_cls_head_by_names(): | CODE |
| LOW | tests/test_python.py | 243 | def test_predict_csv_multi_row(tmp_path): | CODE |
| LOW | tests/test_python.py | 255 | def test_predict_csv_single_row(tmp_path): | CODE |
| LOW | tests/test_python.py | 291 | def test_predict_classes_with_max_det(model_name): | CODE |
| LOW | tests/test_python.py | 342 | def test_predict_ndarray_channels(): | CODE |
| LOW | tests/test_python.py | 358 | def test_predict_all_image_formats(): | CODE |
| LOW | tests/test_python.py | 395 | def test_track_second_association_indices(): | CODE |
| LOW | tests/test_python.py | 412 | def test_track_second_association_low_conf_keeps_id(tracker_type): | CODE |
| LOW | tests/test_python.py | 432 | def test_track_reid_auto_user_detections(tracker_type): | CODE |
| LOW | tests/test_python.py | 561 | def test_normalize_platform_uri(): | CODE |
| LOW | tests/test_python.py | 619 | def test_predict_callback_and_setup(): | CODE |
| LOW | tests/test_python.py | 671 | def test_results_plot_without_boxes(): | CODE |
| LOW | tests/test_python.py | 732 | def test_safe_download_unzips_local_path_archive(tmp_path): | CODE |
| LOW | tests/test_python.py | 753 | def test_safe_download_skips_unsafe_archive_members(tmp_path): | CODE |
| LOW | tests/test_python.py | 766 | def test_safe_download_skips_unsafe_tar_members(tmp_path): | CODE |
| LOW | tests/test_python.py | 941 | def test_semantic_loss_all_ignore(nc): | CODE |
| LOW | tests/test_python.py | 1060 | def test_utils_patches_torch_save(tmp_path): | CODE |
| LOW | tests/test_python.py | 1135 | def test_classify_transforms_train(image, auto_augment, erasing, force_color_jitter): | CODE |
| LOW | tests/test_python.py | 1209 | def test_process_mask_native_chunked(): | CODE |
| LOW | tests/test_python.py | 1330 | def test_yoloe_visual_prompt_verbose_false(capfd): | CODE |
| LOW | tests/test_python.py | 1405 | def test_semantic_polygon_data(): | CODE |
| 93 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/test_solutions.py | 180 | CODE | |
| LOW | docs/build_docs.py | 85 | CODE | |
| LOW | docs/build_docs.py | 192 | CODE | |
| LOW | docs/build_docs.py | 347 | CODE | |
| LOW | docs/build_docs.py | 589 | CODE | |
| LOW | docs/build_reference.py | 642 | CODE | |
| LOW | examples/YOLO-Axelera-Python/yolo11-seg.py | 59 | CODE | |
| LOW | examples/YOLOv8-Region-Counter/yolov8_region_counter.py | 42 | CODE | |
| LOW | examples/YOLOv8-Region-Counter/yolov8_region_counter.py | 87 | CODE | |
| LOW | …es/YOLO-Interactive-Tracking-UI/interactive_tracker.py | 71 | CODE | |
| LOW | …es/YOLO-Interactive-Tracking-UI/interactive_tracker.py | 115 | CODE | |
| LOW | …amples/YOLOv8-Action-Recognition/action_recognition.py | 314 | CODE | |
| LOW | .github/scripts/fuzz.py | 210 | CODE | |
| LOW | .github/scripts/fuzz.py | 383 | CODE | |
| LOW | .github/scripts/fuzz.py | 539 | CODE | |
| LOW | .github/scripts/fuzz.py | 402 | CODE | |
| LOW | ultralytics/nn/tasks.py | 1668 | CODE | |
| LOW | ultralytics/nn/tasks.py | 1841 | CODE | |
| LOW | ultralytics/nn/tasks.py | 2082 | CODE | |
| LOW | ultralytics/nn/tasks.py | 236 | CODE | |
| LOW | ultralytics/nn/tasks.py | 837 | CODE | |
| LOW | ultralytics/nn/tasks.py | 1076 | CODE | |
| LOW | ultralytics/nn/autobackend.py | 320 | CODE | |
| LOW | ultralytics/nn/backends/onnx.py | 48 | CODE | |
| LOW | ultralytics/nn/backends/tensorflow.py | 108 | CODE | |
| LOW | ultralytics/nn/backends/tensorrt.py | 25 | CODE | |
| LOW | ultralytics/nn/backends/litert.py | 50 | CODE | |
| LOW | ultralytics/nn/modules/conv.py | 447 | CODE | |
| LOW | ultralytics/solutions/distance_calculation.py | 44 | CODE | |
| LOW | ultralytics/solutions/distance_calculation.py | 70 | CODE | |
| LOW | ultralytics/solutions/object_counter.py | 54 | CODE | |
| LOW | ultralytics/solutions/ai_gym.py | 49 | CODE | |
| LOW | ultralytics/solutions/streamlit_inference.py | 126 | CODE | |
| LOW | ultralytics/solutions/analytics.py | 138 | CODE | |
| LOW | ultralytics/solutions/speed_estimation.py | 61 | CODE | |
| LOW | ultralytics/optim/muon.py | 180 | CODE | |
| LOW | ultralytics/utils/metrics.py | 105 | CODE | |
| LOW | ultralytics/utils/metrics.py | 542 | CODE | |
| LOW | ultralytics/utils/files.py | 57 | CODE | |
| LOW | ultralytics/utils/checks.py | 148 | CODE | |
| LOW | ultralytics/utils/checks.py | 217 | CODE | |
| LOW | ultralytics/utils/checks.py | 439 | CODE | |
| LOW | ultralytics/utils/checks.py | 625 | CODE | |
| LOW | ultralytics/utils/checks.py | 667 | CODE | |
| LOW | ultralytics/utils/checks.py | 1036 | CODE | |
| LOW | ultralytics/utils/plotting.py | 717 | CODE | |
| LOW | ultralytics/utils/plotting.py | 915 | CODE | |
| LOW | ultralytics/utils/plotting.py | 208 | CODE | |
| LOW | ultralytics/utils/plotting.py | 453 | CODE | |
| LOW | ultralytics/utils/cpu.py | 32 | CODE | |
| LOW | ultralytics/utils/__init__.py | 447 | CODE | |
| LOW | ultralytics/utils/__init__.py | 943 | CODE | |
| LOW | ultralytics/utils/logger.py | 131 | CODE | |
| LOW | ultralytics/utils/logger.py | 311 | CODE | |
| LOW | ultralytics/utils/downloads.py | 286 | CODE | |
| LOW | ultralytics/utils/downloads.py | 470 | CODE | |
| LOW | ultralytics/utils/ops.py | 652 | CODE | |
| LOW | ultralytics/utils/loss.py | 496 | CODE | |
| LOW | ultralytics/utils/tuner.py | 118 | CODE | |
| LOW | ultralytics/utils/benchmarks.py | 63 | CODE | |
| 73 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tests/test_cli.py | 119 | # Create a FastSAM model | COMMENT |
| MEDIUM | examples/YOLOv8-ONNXRuntime/main.py | 107 | # Create the label text with class name and score | COMMENT |
| MEDIUM | examples/YOLOv8-ONNXRuntime/main.py | 260 | # Create an argument parser to handle command-line arguments | COMMENT |
| MEDIUM | examples/YOLOv8-ONNXRuntime/main.py | 271 | # Create an instance of the YOLOv8 class with the specified arguments | COMMENT |
| MEDIUM | examples/RTDETR-ONNXRuntime-Python/main.py | 139 | # Create the label text with class name and score | COMMENT |
| MEDIUM | examples/RTDETR-ONNXRuntime-Python/main.py | 292 | # Create the detector instance with specified parameters | COMMENT |
| MEDIUM | ultralytics/solutions/heatmap.py | 65 | # Create a meshgrid with region of interest (ROI) for vectorized distance calculations | COMMENT |
| MEDIUM | ultralytics/solutions/heatmap.py | 71 | # Create a mask of points within the radius | COMMENT |
| MEDIUM | ultralytics/solutions/security_alarm.py | 94 | # Create the email | COMMENT |
| MEDIUM | ultralytics/solutions/trackzone.py | 69 | if self.mask is None: # Create a mask for the region | CODE |
| MEDIUM | ultralytics/solutions/streamlit_inference.py | 219 | self.sidebar() # Create the sidebar | CODE |
| MEDIUM | ultralytics/solutions/streamlit_inference.py | 272 | # Create an instance of the Inference class and run inference | COMMENT |
| MEDIUM | ultralytics/solutions/analytics.py | 223 | # Create the legend using labels from the bars | COMMENT |
| MEDIUM | ultralytics/utils/files.py | 79 | # Create a temporary directory and construct the new path | COMMENT |
| MEDIUM | ultralytics/utils/loss.py | 727 | # Create a tensor to hold batched keypoints | COMMENT |
| MEDIUM | ultralytics/utils/patches.py | 124 | >>> img = np.zeros((100, 100, 3), dtype=np.uint8) # Create a black image | STRING |
| MEDIUM | ultralytics/utils/patches.py | 149 | >>> img = np.zeros((300, 300, 3), dtype=np.uint8) # Create a black image | STRING |
| MEDIUM | ultralytics/utils/tuner.py | 458 | # Define the trainable function with allocated resources | COMMENT |
| MEDIUM | ultralytics/utils/tuner.py | 461 | # Define the scheduler for hyperparameter search | COMMENT |
| MEDIUM | ultralytics/utils/tuner.py | 480 | # Create the Ray Tune hyperparameter search tuner | COMMENT |
| MEDIUM | ultralytics/models/sam/amg.py | 211 | >>> mask[40:60, 40:60] = True # Create a square | STRING |
| MEDIUM | ultralytics/models/sam/amg.py | 212 | >>> mask[45:55, 45:55] = False # Create a hole | STRING |
| MEDIUM | ultralytics/models/sam/predict.py | 1911 | # Initialize the object index set and mappings | COMMENT |
| MEDIUM | ultralytics/models/sam/build_sam3.py | 239 | # Create the SAM3SemanticModel model | COMMENT |
| MEDIUM | ultralytics/models/sam/sam3/vitdet.py | 315 | """This module implements Vision Transformer (ViT) backbone in :paper:`vitdet`. "Exploring Plain Vision Transformer | STRING |
| MEDIUM | ultralytics/models/utils/ops.py | 156 | # This function is for future RT-DETR Segment models | COMMENT |
| MEDIUM | ultralytics/models/utils/loss.py | 155 | # This function is for future RT-DETR Segment models | COMMENT |
| MEDIUM | ultralytics/models/utils/loss.py | 176 | # This function is for future RT-DETR Segment models | COMMENT |
| MEDIUM | ultralytics/data/converter.py | 404 | # Create a binary mask for the current class and find contours | STRING |
| MEDIUM | ultralytics/data/utils.py | 341 | rect = plt.Rectangle((x, y), w, h, linewidth=2, edgecolor=color, facecolor="none") # Create a rectangle | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | docs/build_docs.py | 242 | # Check if parent is a span with class="normal" | COMMENT |
| LOW | docs/build_docs.py | 668 | # Print results and auto-serve on macOS | COMMENT |
| LOW | docs/build_reference.py | 436 | # Check if text contains Markdown structures that need line preservation | COMMENT |
| LOW | docs/build_reference.py | 1133 | # Check if the document paths are the same (ignoring structure or formatting differences) | COMMENT |
| LOW | examples/YOLOv8-SAHI-Inference-Video/yolov8_sahi.py | 110 | # Display results if requested | COMMENT |
| LOW | examples/YOLOv8-Region-Counter/yolov8_region_counter.py | 177 | # Check if detection inside region | COMMENT |
| LOW | examples/YOLOv8-ONNXRuntime/main.py | 277 | # Display the output image in a window | COMMENT |
| LOW | …es/YOLO-Interactive-Tracking-UI/interactive_tracker.py | 17 | save_video = False # Set True to save output video | CODE |
| LOW | examples/RTDETR-ONNXRuntime-Python/main.py | 25 | # Check if the local path already exists | COMMENT |
| LOW | .github/workflows/merge-main-into-prs.yml | 61 | # Check if PR is behind the default branch | COMMENT |
| LOW | .github/workflows/conda-check-prs.yml | 68 | # Print results to action log | COMMENT |
| LOW | ultralytics/nn/autobackend.py | 191 | # Check if format supports FP16 | COMMENT |
| LOW | ultralytics/nn/backends/onnx.py | 95 | # Check if dynamic shapes | COMMENT |
| LOW | ultralytics/solutions/heatmap.py | 47 | if self.region is not None: # Check if user provided the region coordinates | CODE |
| LOW | ultralytics/solutions/heatmap.py | 119 | self.display_output(plot_im) # Display output with base class function | CODE |
| LOW | ultralytics/solutions/object_blurrer.py | 88 | self.display_output(plot_im) # Display the output using the base class function | CODE |
| LOW | ultralytics/solutions/security_alarm.py | 148 | self.display_output(plot_im) # Display output with base class function | CODE |
| LOW | ultralytics/solutions/distance_calculation.py | 122 | self.display_output(plot_im) # Display output with base class function | CODE |
| LOW | ultralytics/solutions/trackzone.py | 85 | self.display_output(plot_im) # Display output with base class function | CODE |
| LOW | ultralytics/solutions/object_counter.py | 184 | self.display_output(plot_im) # Display output with base class function | CODE |
| LOW | ultralytics/solutions/similarity_search.py | 102 | # Check if the embeddings and corresponding image paths already exist | COMMENT |
| LOW | ultralytics/solutions/queue_management.py | 90 | self.display_output(plot_im) # Display output with base class function | CODE |
| LOW | ultralytics/solutions/parking_management.py | 53 | try: # Check if tkinter is installed | CODE |
| LOW | ultralytics/solutions/parking_management.py | 273 | self.display_output(plot_im) # Display output with base class function | CODE |
| LOW | ultralytics/solutions/ai_gym.py | 101 | self.display_output(plot_im) # Display output image, if environment support display | CODE |
| LOW | ultralytics/solutions/streamlit_inference.py | 269 | # Check if a model name is provided as a command-line argument | COMMENT |
| LOW | ultralytics/solutions/analytics.py | 225 | bar.set_label(label) # Assign label to each bar | CODE |
| LOW | ultralytics/solutions/speed_estimation.py | 111 | self.display_output(plot_im) # Display output with base class function | CODE |
| LOW | ultralytics/utils/metrics.py | 428 | if gt_cls.shape[0] == 0: # Check if labels is empty | CODE |
| LOW | ultralytics/utils/checks.py | 412 | # Check if package is installed (look for "ii" status) | COMMENT |
| LOW⚡ | ultralytics/utils/__init__.py | 651 | # Read file content | COMMENT |
| LOW | ultralytics/utils/__init__.py | 1422 | if not self.file.exists() or not self: # Check if file doesn't exist or is empty | CODE |
| LOW | ultralytics/utils/downloads.py | 190 | # Check if destination directory already exists and contains files | COMMENT |
| LOW | ultralytics/utils/downloads.py | 371 | # Check if download is complete (only if we have expected_size) | COMMENT |
| LOW | ultralytics/utils/benchmarks.py | 240 | # Print results | COMMENT |
| LOW | ultralytics/utils/callbacks/wb.py | 174 | # Check if we actually have plots to save | COMMENT |
| LOW | ultralytics/utils/export/imx.py | 294 | # Check if the model has the expected number of layers | COMMENT |
| LOW | ultralytics/utils/export/engine.py | 409 | # Write file | COMMENT |
| LOW | ultralytics/models/sam/amg.py | 169 | # Check if boxes has a channel dimension | COMMENT |
| LOW | ultralytics/models/sam/amg.py | 179 | # Check if points has a channel dimension | COMMENT |
| LOW | ultralytics/models/yolo/detect/val.py | 289 | # Print results per class | COMMENT |
| LOW | ultralytics/data/converter.py | 865 | # Check if this is a classification dataset | COMMENT |
| LOW | ultralytics/data/converter.py | 910 | # Check if dataset already exists (enables image reuse across split changes) | COMMENT |
| LOW | ultralytics/data/dataset.py | 196 | # Check if the dataset is all boxes or all segments | COMMENT |
| LOW | ultralytics/engine/predictor.py | 305 | # Check if save_dir/ label file exists | COMMENT |
| LOW | ultralytics/engine/model.py | 123 | # Check if Ultralytics HUB model from https://hub.ultralytics.com | COMMENT |
| LOW | ultralytics/engine/model.py | 134 | # Check if Triton Server model | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | examples/YOLOv8-SAHI-Inference-Video/yolov8_sahi.py | 56 | CODE | |
| LOW | examples/YOLOv8-Region-Counter/yolov8_region_counter.py | 87 | CODE | |
| LOW | …amples/YOLOv8-Action-Recognition/action_recognition.py | 314 | CODE | |
| LOW | ultralytics/nn/modules/head.py | 1213 | CODE | |
| LOW | ultralytics/nn/modules/head.py | 1380 | CODE | |
| LOW | ultralytics/nn/modules/head.py | 1466 | CODE | |
| LOW | ultralytics/nn/modules/conv.py | 371 | CODE | |
| LOW | ultralytics/nn/modules/block.py | 1818 | CODE | |
| LOW | ultralytics/utils/plotting.py | 717 | CODE | |
| LOW | ultralytics/utils/nms.py | 13 | CODE | |
| LOW | ultralytics/utils/tqdm.py | 80 | CODE | |
| LOW | ultralytics/utils/downloads.py | 286 | CODE | |
| LOW | ultralytics/utils/benchmarks.py | 63 | CODE | |
| LOW | ultralytics/utils/export/engine.py | 177 | CODE | |
| LOW | ultralytics/models/sam/build.py | 228 | CODE | |
| LOW | ultralytics/models/sam/predict.py | 331 | CODE | |
| LOW | ultralytics/models/sam/predict.py | 2495 | CODE | |
| LOW | ultralytics/models/sam/modules/decoders.py | 210 | CODE | |
| LOW | ultralytics/models/sam/modules/memory_attention.py | 54 | CODE | |
| LOW | ultralytics/models/sam/modules/encoders.py | 47 | CODE | |
| LOW | ultralytics/models/sam/modules/encoders.py | 643 | CODE | |
| LOW | ultralytics/models/sam/modules/blocks.py | 454 | CODE | |
| LOW | ultralytics/models/sam/modules/blocks.py | 871 | CODE | |
| LOW | ultralytics/models/sam/modules/tiny_encoder.py | 678 | CODE | |
| LOW | ultralytics/models/sam/modules/tiny_encoder.py | 786 | CODE | |
| LOW | ultralytics/models/sam/modules/sam.py | 163 | CODE | |
| LOW | ultralytics/models/sam/modules/sam.py | 1028 | CODE | |
| LOW | ultralytics/models/sam/sam3/decoder.py | 73 | CODE | |
| LOW | ultralytics/models/sam/sam3/decoder.py | 183 | CODE | |
| LOW | ultralytics/models/sam/sam3/decoder.py | 377 | CODE | |
| LOW | ultralytics/models/sam/sam3/text_encoder_ve.py | 148 | CODE | |
| LOW | ultralytics/models/sam/sam3/text_encoder_ve.py | 238 | CODE | |
| LOW | ultralytics/models/sam/sam3/vitdet.py | 44 | CODE | |
| LOW | ultralytics/models/sam/sam3/vitdet.py | 219 | CODE | |
| LOW | ultralytics/models/sam/sam3/vitdet.py | 319 | CODE | |
| LOW | ultralytics/models/sam/sam3/sam3_image.py | 33 | CODE | |
| LOW | ultralytics/models/utils/loss.py | 37 | CODE | |
| LOW | ultralytics/data/annotator.py | 10 | CODE | |
| LOW | ultralytics/data/augment.py | 2827 | CODE | |
| LOW | ultralytics/data/augment.py | 1629 | CODE | |
| LOW | ultralytics/data/augment.py | 2219 | CODE | |
| LOW | ultralytics/data/base.py | 72 | CODE | |
| LOW | ultralytics/engine/results.py | 461 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | docs/build_reference.py | 1106 | def update_mkdocs_file(reference_yaml: str) -> None: | CODE |
| LOW | ultralytics/nn/backends/__init__.py | 27 | __all__ = [ | CODE |
| LOW | ultralytics/optim/__init__.py | 5 | __all__ = ["MuSGD", "Muon"] | CODE |
| LOW | ultralytics/utils/metrics.py | 1062 | def update_image_metrics(self, tp: np.ndarray, target_cls: np.ndarray, pred_cls: np.ndarray, im_name: str) -> None: | CODE |
| LOW | ultralytics/utils/metrics.py | 1138 | def update_stats(self, stat: dict[str, Any]) -> None: | CODE |
| LOW | ultralytics/utils/metrics.py | 1304 | def update_stats(self, stat: dict[str, Any]) -> None: | CODE |
| LOW | ultralytics/utils/metrics.py | 1455 | def update_stats(self, stat: dict[str, Any]) -> None: | CODE |
| LOW | ultralytics/utils/metrics.py | 1710 | def update_stats(self, preds: torch.Tensor, targets: torch.Tensor) -> None: | CODE |
| LOW⚡ | ultralytics/utils/tqdm.py | 296 | def set_description(self, desc: str | None) -> None: | CODE |
| LOW⚡ | ultralytics/utils/tqdm.py | 302 | def set_postfix(self, **kwargs: Any) -> None: | CODE |
| LOW | ultralytics/utils/export/__init__.py | 18 | __all__ = [ | CODE |
| LOW | ultralytics/models/sam/sam3/vitdet.py | 96 | def _setup_rel_pos(self, rel_pos_zero_init: bool = True, input_size: tuple[int, int] | None = None) -> None: | CODE |
| LOW | ultralytics/models/sam/sam3/vitdet.py | 120 | def _setup_rope_freqs(self, input_size: tuple[int, int] | None = None) -> None: | CODE |
| LOW | ultralytics/models/nas/val.py | 8 | __all__ = ["NASValidator"] | CODE |
| LOW | ultralytics/models/yolo/model.py | 183 | def set_classes(self, classes: list[str]) -> None: | CODE |
| LOW | ultralytics/models/yolo/model.py | 290 | def set_vocab(self, vocab: list[str], names: list[str]) -> None: | CODE |
| LOW | ultralytics/models/yolo/model.py | 315 | def set_classes(self, classes: list[str], embeddings: torch.Tensor | None = None) -> None: | CODE |
| LOW | ultralytics/models/yolo/detect/val.py | 169 | def update_metrics(self, preds: list[dict[str, torch.Tensor]], batch: dict[str, Any]) -> None: | CODE |
| LOW | ultralytics/models/yolo/classify/val.py | 90 | def update_metrics(self, preds: torch.Tensor, batch: dict[str, Any]) -> None: | CODE |
| LOW | ultralytics/models/yolo/yoloe/__init__.py | 8 | __all__ = [ | CODE |
| LOW | ultralytics/models/yolo/world/__init__.py | 6 | __all__ = ["WorldTrainer", "WorldValidator"] | CODE |
| LOW | ultralytics/models/yolo/world/train.py | 112 | def set_text_embeddings(self, datasets: list[Any], batch: int | None) -> None: | CODE |
| LOW | ultralytics/trackers/deep_oc_sort.py | 60 | def update_features(self, feat: np.ndarray, score: float | None = None) -> None: | CODE |
| LOW | ultralytics/trackers/bot_sort.py | 70 | def update_features(self, feat: np.ndarray) -> None: | CODE |
| LOW | ultralytics/trackers/track_tracker.py | 249 | def update_features(self, feat: np.ndarray) -> None: | CODE |
| LOW | ultralytics/data/build.py | 219 | def set_epoch(self, epoch: int) -> None: | CODE |
| LOW | ultralytics/data/dataset.py | 721 | def update_labels(self, include_class: list[int] | None) -> None: | CODE |
| LOW | ultralytics/data/base.py | 187 | def update_labels(self, include_class: list[int] | None) -> None: | CODE |
| LOW | ultralytics/data/base.py | 370 | def set_rectangle(self) -> None: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | mkdocs.yml | 921 | - Privacy Policy: help/privacy.md | COMMENT |
| LOW | pyproject.toml | 1 | # Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license | COMMENT |
| LOW | docs/en/models/yolo-world.md | 341 | COMMENT | |
| LOW | docs/en/yolov5/tutorials/hyperparameter-evolution.md | 101 | COMMENT | |
| LOW | examples/cpp/ONNXRuntime/inference.cpp | 1 | // Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license | COMMENT |
| LOW | examples/cpp/LibTorch/CMakeLists.txt | 21 | COMMENT | |
| LOW | examples/cpp/common/yolo_postprocess.hpp | 1 | // Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license | COMMENT |
| LOW | examples/cpp/common/yolo_draw.hpp | 1 | // Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license | COMMENT |
| LOW | examples/cpp/common/yolo_render.hpp | 1 | // Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license | COMMENT |
| LOW | .github/workflows/mirror.yml | 41 | # git remote add gitcode https://ultralytics:${{ secrets.GITCODE_TOKEN }}@gitcode.net/ultralytics/ultralytics. | COMMENT |
| LOW | .github/workflows/docs.yml | 1 | # Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license | COMMENT |
| LOW | ultralytics/models/sam/predict.py | 1501 | out = ( | COMMENT |
| LOW | ultralytics/models/utils/ops.py | 161 | # sample_points = 2.0 * sample_points - 1.0 | COMMENT |
| LOW | ultralytics/models/utils/loss.py | 161 | # loss = {} | COMMENT |
| LOW | ultralytics/cfg/datasets/dota8-multispectral.yaml | 1 | # Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license | COMMENT |
| LOW | ultralytics/cfg/datasets/hand-keypoints.yaml | 1 | # Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license | COMMENT |
| LOW | ultralytics/cfg/datasets/medical-pills.yaml | 1 | # Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license | COMMENT |
| LOW | ultralytics/cfg/datasets/cityscapes8.yaml | 1 | # Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license | COMMENT |
| LOW | ultralytics/cfg/datasets/xView.yaml | 1 | # Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license | COMMENT |
| LOW | ultralytics/cfg/datasets/dog-pose.yaml | 1 | # Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license | COMMENT |
| LOW | ultralytics/cfg/datasets/tiger-pose.yaml | 1 | # Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license | COMMENT |
| LOW | ultralytics/cfg/datasets/ImageNet.yaml | 1 | # Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license | COMMENT |
| LOW | ultralytics/cfg/datasets/signature.yaml | 1 | # Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license | COMMENT |
| LOW | ultralytics/cfg/datasets/coco8-multispectral.yaml | 1 | # Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license | COMMENT |
| LOW | ultralytics/cfg/datasets/cityscapes.yaml | 1 | # Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license | COMMENT |
| LOW | ultralytics/cfg/datasets/ade20k.yaml | 1 | # Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license | COMMENT |
| LOW | ultralytics/cfg/datasets/TT100K.yaml | 1 | # Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | ultralytics/models/sam/predict.py | 1699 | # Step 0: clear the input on those frames where this object id has point or mask input | COMMENT |
| LOW⚡ | ultralytics/models/sam/predict.py | 1708 | # Step 1: Update the object id mapping (note that it must be done after Step 0, | COMMENT |
| LOW⚡ | ultralytics/models/sam/predict.py | 2817 | # Step 1: run backbone and detector in a distributed manner -- this is done via Sam3ImageOnVideoMultiGPU, | COMMENT |
| LOW⚡ | ultralytics/models/sam/predict.py | 2826 | # Step 2: each GPU propagates its local SAM2 states to get the SAM2 prediction masks. | COMMENT |
| LOW⚡ | ultralytics/models/sam/predict.py | 2860 | # Step 4: based on `tracker_update_plan`, each GPU executes the update w.r.t. its local SAM2 inference states | COMMENT |
| LOW⚡ | ultralytics/models/sam/predict.py | 2869 | # Step 5: finally, build the outputs for this frame (it only needs to be done on GPU 0 since | COMMENT |
| LOW | ultralytics/models/sam/predict.py | 1722 | # Step 2: For per-object tensor storage, we shift their obj_idx in the dict keys. | COMMENT |
| LOW | ultralytics/models/sam/predict.py | 1738 | # Step 3: For packed tensor storage, we index the remaining ids and rebuild the per-object slices. | COMMENT |
| LOW | ultralytics/models/sam/predict.py | 2840 | # Step 3: based on detection outputs and the propagated SAM2 prediction masks, we make plans | COMMENT |
| LOW | ultralytics/models/sam/predict.py | 2973 | # Step 1: propagate the local SAM2 states to get the current frame's prediction | COMMENT |
| LOW | ultralytics/models/sam/predict.py | 2985 | # Step 2: all-gather `low_res_masks_local` into `low_res_masks_global` | COMMENT |
| LOW | ultralytics/models/sam/predict.py | 3058 | # Step 1: make the update plan and resolve heuristics on GPU 0 | COMMENT |
| LOW | ultralytics/models/sam/predict.py | 3189 | # Step 4: Run SAM2 memory encoder on the current frame's prediction masks | COMMENT |
| LOW | ultralytics/models/sam/predict.py | 3207 | # Step 4: update the SAM2 metadata based on the update plan | COMMENT |
| LOW | ultralytics/models/sam/predict.py | 3332 | # Step 1: add new objects from the detector to SAM2 inference states | COMMENT |
| LOW | ultralytics/models/sam/predict.py | 3345 | # Step 2: remove from SAM2 inference states those objects removed by heuristics | COMMENT |
| LOW | ultralytics/models/sam/predict.py | 3643 | # Step 1: log the frame index where each object ID first appears | COMMENT |
| LOW | ultralytics/models/sam/predict.py | 3667 | # Step 2: removed tracks that has not matched with detections for `hotstart_unmatch_thresh` frames with hotstart | COMMENT |
| LOW | ultralytics/models/sam/predict.py | 3695 | # Step 3: removed tracks that overlaps with another track for `hotstart_dup_thresh` frames | COMMENT |
| LOW | ultralytics/models/sam/modules/sam.py | 651 | # Step 1: condition the visual features of the current frame on previous memories | COMMENT |
| LOW | ultralytics/models/sam/modules/sam.py | 778 | # Step 2: Concatenate the memories and forward through the transformer encoder | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | pyproject.toml | 19 | # For comprehensive documentation and usage instructions, visit: https://docs.ultralytics.com | COMMENT |
| MEDIUM | tests/test_python.py | 829 | # Test smart_value() with comprehensive cases | COMMENT |
| MEDIUM | ultralytics/solutions/object_counter.py | 104 | # region's shape; a ~5-frame baseline is robust to tracker jitter where a 1-frame delta is not. | COMMENT |
| MEDIUM | ultralytics/utils/__init__.py | 639 | """Load YAML file to Python object with robust error handling. | STRING |
| MEDIUM | ultralytics/utils/autodevice.py | 12 | """Manages NVIDIA GPU information via pynvml with robust error handling. | STRING |
| MEDIUM | ultralytics/utils/callbacks/platform.py | 279 | """Collect comprehensive environment info using existing ultralytics utilities.""" | STRING |
| MEDIUM | ultralytics/cfg/trackers/ocsort.yaml | 7 | tracker_type: ocsort # (str) Tracker backend: ocsort; observation-centric SORT for robust multi-object tracking | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | ultralytics/utils/export/coreml.py | 150 | pipeline.spec.description.metadata.userDefined.update( | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | ultralytics/models/sam/modules/tiny_encoder.py | 3 | # -------------------------------------------------------- | COMMENT |
| MEDIUM | ultralytics/models/sam/modules/tiny_encoder.py | 10 | # -------------------------------------------------------- | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | docs/en/platform/api/index.md | 1698 | "name": "Jane Doe", | CODE |
| LOW | docs/en/platform/api/index.md | 1700 | "line1": "123 Main St", | CODE |
| LOW | docs/en/platform/api/index.md | 1956 | "email": "user@example.com", | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | ultralytics/hub/google/__init__.py | 171 | # Usage example | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | ultralytics/utils/__init__.py | 538 | ... def my_function(): | STRING |
| LOW | ultralytics/utils/__init__.py | 1173 | ... def process_data(data): | STRING |