Ultralytics YOLO27, YOLO26, YOLO11, YOLOv8 — object detection, instance segmentation, semantic segmentation, image classification, pose estimation, object tracking
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.
Use each vector to guide manual verification of the underlying findings.
Can maintainers explain intent, assumptions, and trade-offs? 931 finding(s).
Are imports declared and package/API names verified? 519 finding(s).
Are wrappers, guards, and repeated structures necessary? 445 finding(s).
Which changes need focused human review? 1660 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 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.
| 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 | 85 | Example function demonstrating Google-style docstrings. Args: arg1: The first argument. arg2: The s | STRING |
| HIGH | docs/en/help/contributing.md | 89 | Example function demonstrating Google-style docstrings. Args: arg1 (int): The first argumen | STRING |
| HIGH | docs/en/help/contributing.md | 111 | Example function demonstrating Google-style docstrings. Args: arg1 (int): The first argumen | STRING |
| HIGH | docs/en/help/contributing.md | 133 | Example function demonstrating Google-style docstrings. Args: arg1 (int): The first argumen | STRING |
| HIGH | docs/en/help/contributing.md | 174 | Example function demonstrating Google-style docstrings. Args: arg1: The first argument. | STRING |
| HIGH | ultralytics/nn/tasks.py | 1633 | Context manager for temporarily adding or modifying modules in Python's module cache (`sys.modules`). This function | STRING |
| HIGH | ultralytics/nn/tasks.py | 1787 | Resolve a model-yaml `activation` spec to a `torch.nn` module instance without `eval()`. Accepts only the docum | STRING |
| HIGH | ultralytics/nn/tasks.py | 1868 | Load a PyTorch checkpoint with torch.load(), handling legacy module paths and common load failures. If a ModuleNotF | STRING |
| HIGH | ultralytics/nn/text_model.py | 87 | 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 | 108 | Encode tokenized texts into normalized feature vectors. This method processes tokenized text inputs through the | STRING |
| HIGH | ultralytics/nn/text_model.py | 133 | Encode images into normalized feature vectors. This method processes image inputs through the CLIP model to gen | STRING |
| HIGH | ultralytics/nn/text_model.py | 218 | Convert input texts to MobileCLIP tokens. Args: texts (list[str]): List of text strings to tokenize | STRING |
| HIGH | ultralytics/nn/text_model.py | 234 | Encode tokenized texts into normalized feature vectors. Args: texts (torch.Tensor): Tokenized text | STRING |
| HIGH | ultralytics/nn/text_model.py | 295 | Convert input texts to MobileCLIP tokens. Args: texts (list[str]): List of text strings to tokenize | STRING |
| HIGH | ultralytics/nn/text_model.py | 316 | Encode tokenized texts into normalized feature vectors. Args: texts (torch.Tensor): Tokenized text | STRING |
| HIGH | ultralytics/nn/text_model.py | 337 | Build a text encoding model based on the specified variant. Args: variant (str): Model variant in format "b | STRING |
| HIGH | ultralytics/nn/distill_model.py | 176 | Auto-detect distillation feature layers from the model's Detect head. Returns the Detect head's input layer ind | STRING |
| HIGH | ultralytics/nn/autobackend.py | 45 | 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 | 284 | Delegate attribute access to the backend. This allows AutoBackend to transparently expose backend attributes | STRING |
| HIGH | ultralytics/nn/autobackend.py | 394 | Take a path to a model file and return the model format string. Args: p (str | Path): Path to the m | STRING |
| HIGH | ultralytics/nn/modules/utils.py | 15 | 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 | 35 | Initialize conv/fc bias value according to a given probability value. This function calculates the bias initializat | STRING |
| HIGH | ultralytics/nn/modules/utils.py | 56 | 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 | 1443 | C2PSA module with attention mechanism for enhanced feature extraction and processing. This module implements a conv | STRING |
| HIGH | ultralytics/solutions/config.py | 106 | Update configuration parameters with new values provided as keyword arguments. Args: **kwargs (Any) | STRING |
| HIGH | ultralytics/solutions/object_blurrer.py | 49 | 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 | 76 | 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 | 153 | Process an input frame and update object counts. This method initializes the counting region, extracts tracks, | 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 | 146 | 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 | 228 | Process the input image for parking lot management and visualization. This function analyzes the input image, e | STRING |
| HIGH | ultralytics/solutions/ai_gym.py | 56 | 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 | 47 | Crop detected objects from the input image and save them as separate images. Args: im0 (np.ndarray) | STRING |
| HIGH | ultralytics/solutions/solutions.py | 219 | 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 | 247 | Display the processed frame in an OpenCV window when `show=True` and the environment supports it. This method i | STRING |
| HIGH | ultralytics/solutions/solutions.py | 504 | Draw specific keypoints for gym steps counting. Args: keypoints (list[list[float]]): Keypoints data | STRING |
| HIGH | ultralytics/solutions/analytics.py | 99 | Process image data and run object tracking to update analytics charts. The chart is re-rendered every `update_e | STRING |
| HIGH | ultralytics/solutions/analytics.py | 146 | Update the graph with new data for single or multiple classes. Args: frame_number (int): The curren | STRING |
| HIGH | ultralytics/solutions/region_counter.py | 62 | Add a new region to the counting list based on the provided template with specific attributes. Args: | STRING |
| HIGH | ultralytics/solutions/speed_estimation.py | 71 | Process an input frame to estimate object speeds based on tracking data. Args: im0 (np.ndarray): In | STRING |
| HIGH | ultralytics/optim/muon.py | 11 | Compute the zeroth power / orthogonalization of matrix G using Newton-Schulz iteration. This function implements a | STRING |
| HIGH | ultralytics/optim/muon.py | 59 | Compute Muon optimizer updates with momentum and orthogonalization. This function applies momentum to the gradients | STRING |
| HIGH | ultralytics/optim/muon.py | 131 | Hybrid optimizer combining Muon and SGD updates for neural network training. This optimizer implements a combinatio | STRING |
| HIGH | ultralytics/optim/muon.py | 212 | Perform a single optimization step. Applies either hybrid Muon+SGD updates or pure SGD updates depending on the | STRING |
| HIGH | ultralytics/utils/instance.py | 37 | A class for handling bounding boxes in multiple formats. The class supports various bounding box formats like 'xyxy | STRING |
| HIGH | ultralytics/utils/instance.py | 142 | Concatenate a list of Bboxes objects into a single Bboxes object. Args: boxes_list (list[Bboxes]): | STRING |
| HIGH | ultralytics/utils/instance.py | 165 | Retrieve a specific bounding box or a set of bounding boxes using indexing. Args: index (int | slic | STRING |
| HIGH | ultralytics/utils/instance.py | 478 | Concatenate a list of Instances objects into a single Instances object. Args: instances_list (list[ | STRING |
| HIGH | ultralytics/utils/metrics.py | 242 | Calculate probabilistic IoU between oriented bounding boxes. Args: obb1 (torch.Tensor): Ground truth OBBs, | STRING |
| HIGH | ultralytics/utils/metrics.py | 624 | Generate a summarized representation of the confusion matrix as a list of dictionaries. Values are optionally n | STRING |
| HIGH | ultralytics/utils/metrics.py | 1243 | Generate a summarized representation of per-class detection metrics as a list of dictionaries. Each row include | STRING |
| HIGH | ultralytics/utils/metrics.py | 1405 | Generate a summarized representation of per-class segmentation metrics as a list of dictionaries. Extends the b | STRING |
| HIGH | ultralytics/utils/metrics.py | 1558 | Generate a summarized representation of per-class pose metrics as a list of dictionaries. Extends the box summa | STRING |
| HIGH | ultralytics/utils/metrics.py | 1650 | 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 |
| 289 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/conftest.py | 8 | CODE | |
| LOW | docs/build_docs.py | 4 | 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 | 14 | CODE | |
| LOW | ultralytics/__init__.py | 15 | CODE | |
| LOW | ultralytics/__init__.py | 16 | CODE | |
| LOW | ultralytics/__init__.py | 35 | CODE | |
| LOW | ultralytics/__init__.py | 35 | CODE | |
| LOW | ultralytics/__init__.py | 35 | CODE | |
| LOW | ultralytics/__init__.py | 35 | CODE | |
| LOW | ultralytics/__init__.py | 35 | CODE | |
| LOW | ultralytics/__init__.py | 35 | CODE | |
| LOW | ultralytics/__init__.py | 35 | CODE | |
| LOW | ultralytics/__init__.py | 35 | CODE | |
| LOW | ultralytics/__init__.py | 36 | CODE | |
| LOW | ultralytics/__init__.py | 36 | CODE | |
| LOW | ultralytics/__init__.py | 36 | CODE | |
| LOW | ultralytics/__init__.py | 36 | CODE | |
| LOW | ultralytics/nn/tasks.py | 3 | 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 | 377 | 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/coreai.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 | 345 | 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 | |
| 386 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | docs/en/platform/quickstart.md | 316 | api_key = "YOUR_API_KEY" | CODE |
| HIGH | docs/en/platform/quickstart.md | 334 | -H "Authorization: Bearer YOUR_API_KEY" \ | CODE |
| HIGH | docs/en/platform/quickstart.md | 396 | export ULTRALYTICS_API_KEY="YOUR_API_KEY" | CODE |
| HIGH | docs/en/platform/index.md | 124 | export ULTRALYTICS_API_KEY="YOUR_API_KEY" | CODE |
| HIGH | docs/en/platform/index.md | 137 | os.environ["ULTRALYTICS_API_KEY"] = "YOUR_API_KEY" | CODE |
| HIGH | docs/en/platform/index.md | 176 | api_key = "YOUR_API_KEY" | CODE |
| HIGH | docs/en/platform/index.md | 194 | -H "Authorization: Bearer YOUR_API_KEY" \ | CODE |
| HIGH | docs/en/platform/index.md | 212 | headers: { Authorization: "Bearer YOUR_API_KEY" }, | CODE |
| HIGH | docs/en/platform/index.md | 380 | export ULTRALYTICS_API_KEY="YOUR_API_KEY" | CODE |
| HIGH | docs/en/platform/index.md | 393 | os.environ["ULTRALYTICS_API_KEY"] = "YOUR_API_KEY" | CODE |
| HIGH | docs/en/platform/index.md | 408 | export ULTRALYTICS_API_KEY="YOUR_API_KEY" | CODE |
| HIGH | docs/en/platform/deploy/inference.md | 195 | -H "Authorization: Bearer YOUR_API_KEY" \ | CODE |
| HIGH | docs/en/platform/deploy/inference.md | 222 | Authorization: Bearer YOUR_API_KEY | CODE |
| HIGH | docs/en/platform/deploy/inference.md | 265 | headers = {"Authorization": "Bearer YOUR_API_KEY"} | CODE |
| HIGH | docs/en/platform/deploy/inference.md | 278 | -H "Authorization: Bearer YOUR_API_KEY" \ | CODE |
| HIGH | docs/en/platform/deploy/inference.md | 298 | headers: { Authorization: "Bearer YOUR_API_KEY" }, | CODE |
| HIGH | docs/en/platform/deploy/inference.md | 584 | headers = {"Authorization": "Bearer YOUR_API_KEY"} | CODE |
| HIGH | docs/en/platform/deploy/endpoints.md | 342 | Authorization: Bearer YOUR_API_KEY | CODE |
| HIGH | docs/en/platform/deploy/endpoints.md | 379 | headers = {"Authorization": "Bearer YOUR_API_KEY"} | CODE |
| HIGH | docs/en/platform/deploy/endpoints.md | 406 | headers: { Authorization: "Bearer YOUR_API_KEY" }, | CODE |
| HIGH | docs/en/platform/deploy/endpoints.md | 420 | -H "Authorization: Bearer YOUR_API_KEY" \ | CODE |
| HIGH | docs/en/platform/deploy/monitoring.md | 240 | workspace owners, the deployment's bound API key filled in, ready to copy and run. Non-owners see a `YOUR_API_KEY` | CODE |
| HIGH | docs/en/platform/deploy/monitoring.md | 252 | headers = {"Authorization": "Bearer YOUR_API_KEY"} | CODE |
| HIGH | docs/en/platform/deploy/monitoring.md | 279 | headers: { Authorization: "Bearer YOUR_API_KEY" }, | CODE |
| HIGH | docs/en/platform/deploy/monitoring.md | 293 | -H "Authorization: Bearer YOUR_API_KEY" \ | CODE |
| HIGH | docs/en/platform/integrations/azure-blob-storage.md | 96 | -H "Authorization: Bearer YOUR_API_KEY" \ | CODE |
| HIGH | docs/en/platform/integrations/amazon-s3.md | 116 | -H "Authorization: Bearer YOUR_API_KEY" \ | CODE |
| HIGH | docs/en/platform/integrations/google-cloud-storage.md | 98 | -H "Authorization: Bearer YOUR_API_KEY" \ | CODE |
| HIGH | docs/en/platform/train/autotrain.md | 55 | export ULTRALYTICS_API_KEY="YOUR_API_KEY" | CODE |
| HIGH | docs/en/platform/train/cloud-training.md | 258 | export ULTRALYTICS_API_KEY="YOUR_API_KEY" | CODE |
| HIGH | docs/en/platform/train/index.md | 135 | export ULTRALYTICS_API_KEY="YOUR_API_KEY" | CODE |
| HIGH | docs/en/platform/api/index.md | 21 | curl -H "Authorization: Bearer YOUR_API_KEY" \ | CODE |
| HIGH | docs/en/platform/api/index.md | 34 | client = Platform(api_key="YOUR_API_KEY") | CODE |
| HIGH | docs/en/platform/api/index.md | 100 | Authorization: Bearer YOUR_API_KEY | CODE |
| HIGH⚡ | docs/en/platform/api/index.md | 114 | curl -H "Authorization: Bearer YOUR_API_KEY" \ | CODE |
| HIGH⚡ | docs/en/platform/api/index.md | 123 | client = Platform(api_key="YOUR_API_KEY") # or set ULTRALYTICS_API_KEY | CODE |
| HIGH⚡ | docs/en/platform/api/index.md | 132 | headers: { Authorization: "Bearer YOUR_API_KEY" }, | CODE |
| HIGH | docs/en/platform/api/index.md | 305 | curl -H "Authorization: Bearer YOUR_API_KEY" \ | CODE |
| HIGH | docs/en/platform/api/index.md | 1006 | headers = {"Authorization": "Bearer YOUR_API_KEY"} | CODE |
| HIGH | docs/en/platform/api/index.md | 1297 | -H "Authorization: Bearer YOUR_API_KEY" \ | CODE |
| HIGH | docs/en/platform/api/index.md | 1555 | -H "Authorization: Bearer YOUR_API_KEY" \ | CODE |
| HIGH | docs/en/platform/api/index.md | 1671 | -H "Authorization: Bearer YOUR_API_KEY" \ | CODE |
| HIGH | docs/en/platform/api/index.md | 1769 | -H "Authorization: Bearer YOUR_API_KEY" \ | CODE |
| HIGH⚡ | docs/en/platform/api/index.md | 2718 | yolo login YOUR_API_KEY | CODE |
| HIGH⚡ | docs/en/platform/api/index.md | 2724 | export ULTRALYTICS_API_KEY=YOUR_API_KEY | CODE |
| HIGH⚡ | docs/en/platform/api/index.md | 2732 | settings.update({"api_key": "YOUR_API_KEY"}) | CODE |
| HIGH | docs/en/platform/api/index.md | 2850 | curl -H "Authorization: Bearer YOUR_API_KEY" \ | CODE |
| HIGH | docs/en/platform/api/index.md | 2863 | curl -H "Authorization: Bearer YOUR_API_KEY" \ | CODE |
| HIGH⚡ | docs/en/platform/account/api-keys.md | 88 | export ULTRALYTICS_API_KEY="YOUR_API_KEY" | CODE |
| HIGH⚡ | docs/en/platform/account/api-keys.md | 94 | $env:ULTRALYTICS_API_KEY = "YOUR_API_KEY" | CODE |
| HIGH⚡ | docs/en/platform/account/api-keys.md | 102 | yolo login YOUR_API_KEY | CODE |
| HIGH⚡ | docs/en/platform/account/api-keys.md | 112 | curl -H "Authorization: Bearer YOUR_API_KEY" \ | CODE |
| HIGH⚡ | docs/en/platform/account/api-keys.md | 121 | client = Platform(api_key="YOUR_API_KEY") | CODE |
| HIGH | docs/en/platform/account/api-keys.md | 137 | export ULTRALYTICS_API_KEY="YOUR_API_KEY" | CODE |
| HIGH | docs/en/platform/account/trash.md | 173 | curl -H "Authorization: Bearer YOUR_API_KEY" \ | CODE |
| HIGH | docs/en/platform/account/trash.md | 187 | curl -X POST -H "Authorization: Bearer YOUR_API_KEY" \ | CODE |
| HIGH | docs/en/platform/account/trash.md | 200 | curl -X DELETE -H "Authorization: Bearer YOUR_API_KEY" \ | CODE |
| HIGH | docs/en/platform/account/trash.md | 213 | curl -X DELETE -H "Authorization: Bearer YOUR_API_KEY" \ | CODE |
| HIGH | docs/en/platform/data/index.md | 179 | export ULTRALYTICS_API_KEY="YOUR_API_KEY" | CODE |
| HIGH | docs/en/platform/data/index.md | 188 | os.environ["ULTRALYTICS_API_KEY"] = "YOUR_API_KEY" | CODE |
| 11 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | ultralytics/nn/autobackend.py | 93 | except Exception: | CODE |
| HIGH | ultralytics/nn/backends/mnn.py | 45 | except json.JSONDecodeError: | CODE |
| HIGH | ultralytics/solutions/streamlit_inference.py | 202 | except FileNotFoundError: | CODE |
| HIGH | ultralytics/utils/events.py | 32 | except Exception: | CODE |
| HIGH | ultralytics/utils/events.py | 152 | except Exception: | CODE |
| HIGH | ultralytics/utils/events.py | 181 | except Exception: | CODE |
| HIGH | ultralytics/utils/checks.py | 429 | except Exception: | CODE |
| HIGH | ultralytics/utils/checks.py | 932 | except ImportError: | CODE |
| HIGH | ultralytics/utils/plotting.py | 1029 | except Exception: | CODE |
| HIGH | ultralytics/utils/cpu.py | 77 | except Exception: | CODE |
| HIGH | ultralytics/utils/logger.py | 104 | except Exception: | CODE |
| HIGH | ultralytics/utils/logger.py | 629 | except Exception: | CODE |
| HIGH | ultralytics/utils/logger.py | 126 | except Exception: | CODE |
| HIGH | ultralytics/utils/logger.py | 209 | except Exception: | CODE |
| HIGH | ultralytics/utils/logger.py | 461 | except self.pynvml.NVMLError: | CODE |
| HIGH | ultralytics/utils/logger.py | 311 | except (json.JSONDecodeError, OSError, plistlib.InvalidFileException, subprocess.SubprocessError): | CODE |
| HIGH | ultralytics/utils/tqdm.py | 313 | except Exception: | CODE |
| HIGH | ultralytics/utils/tqdm.py | 389 | except Exception: | CODE |
| HIGH | ultralytics/utils/tqdm.py | 413 | except Exception: | CODE |
| HIGH | ultralytics/utils/tqdm.py | 362 | except Exception: | CODE |
| HIGH | ultralytics/utils/tqdm.py | 403 | except Exception: | CODE |
| HIGH | ultralytics/utils/autodevice.py | 69 | except Exception: | CODE |
| HIGH | ultralytics/utils/torch_utils.py | 1214 | except ImportError: | CODE |
| HIGH | ultralytics/utils/callbacks/mlflow.py | 151 | except Exception: | CODE |
| HIGH | ultralytics/utils/callbacks/mlflow.py | 98 | except Exception: | CODE |
| HIGH | ultralytics/utils/callbacks/platform.py | 235 | except Exception: | CODE |
| HIGH | ultralytics/utils/callbacks/platform.py | 243 | except Exception: | CODE |
| HIGH | ultralytics/utils/callbacks/platform.py | 392 | except Exception: | CODE |
| HIGH | ultralytics/models/yolo/depth/train.py | 161 | except ValueError: | CODE |
| HIGH | ultralytics/data/build.py | 96 | except Exception: | CODE |
| HIGH | ultralytics/data/converter.py | 1026 | except Exception: | CODE |
| HIGH | ultralytics/data/converter.py | 1131 | except OSError: | CODE |
| HIGH | ultralytics/data/converter.py | 1150 | except OSError: | CODE |
| HIGH | ultralytics/data/augment.py | 2198 | except ImportError: # package not installed, skip | CODE |
| HIGH | ultralytics/data/utils.py | 249 | except Exception: | CODE |
| HIGH | ultralytics/data/utils.py | 194 | except Exception: | CODE |
| HIGH | ultralytics/engine/exporter.py | 757 | except ImportError: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/test_solutions.py | 210 | def test_left_click_selection(): | CODE |
| LOW | tests/test_solutions.py | 219 | def test_left_click_selection_obb(): | CODE |
| LOW | tests/test_solutions.py | 258 | def test_object_blurrer_obb_outside_frame(): | CODE |
| LOW | tests/test_solutions.py | 288 | def test_analytics_graph_not_supported(): | CODE |
| LOW | tests/test_solutions.py | 317 | def test_config_update_method_with_invalid_argument(): | CODE |
| LOW | tests/test_solutions.py | 346 | def test_similarity_search_complete(tmp_path): | CODE |
| LOW | tests/test_solutions.py | 360 | def test_distance_calculation_process_method(): | CODE |
| LOW | tests/test_solutions.py | 385 | def test_display_output_method(): | CODE |
| LOW | tests/test_ndjson_converter.py | 75 | def test_convert_depth_ndjson_downloads_image_target_pairs(tmp_path, depth_server): | CODE |
| LOW | tests/test_ndjson_converter.py | 96 | def test_convert_depth_ndjson_preserves_scale(tmp_path, depth_server): | CODE |
| LOW | tests/test_ndjson_converter.py | 107 | def test_convert_depth_ndjson_reuses_existing_conversion(tmp_path, depth_server, monkeypatch): | CODE |
| LOW | tests/test_ndjson_converter.py | 127 | def test_convert_depth_ndjson_removes_incomplete_pair(tmp_path, depth_server): | CODE |
| LOW | tests/test_ndjson_converter.py | 142 | def test_convert_depth_ndjson_rejects_missing_url(tmp_path): | CODE |
| LOW | tests/test_ndjson_converter.py | 161 | def test_convert_ndjson_selects_split_fractions(tmp_path, depth_server): | CODE |
| LOW | tests/test_engine.py | 128 | def test_semantic_polygon_val_background(): | CODE |
| LOW | tests/test_engine.py | 180 | def test_resume_invalid_checkpoint_args(tmp_path): | CODE |
| LOW | tests/test_engine.py | 252 | def test_load_checkpoint_state_dict_rejected(ckpt, tmp_path): | CODE |
| LOW | tests/test_engine.py | 301 | def test_checkpoint_nonfinite_ema_resync(): | CODE |
| LOW | tests/test_engine.py | 320 | def test_checkpoint_nonfinite_ema_and_model_sanitized(): | CODE |
| LOW | tests/test_engine.py | 340 | def test_train_multi_custom_trainer_metrics_and_failure_keys(monkeypatch, tmp_path): | CODE |
| LOW | tests/test_engine.py | 373 | def test_setup_model_respects_pretrained_arg_for_pt_models(monkeypatch, pretrained, uses_weights): | CODE |
| LOW | tests/conftest.py | 57 | def pytest_collection_modifyitems(config, items): | CODE |
| LOW | tests/test_exports.py | 59 | def test_export_torchscript_missing_names(model_name, nc, tmp_path): | CODE |
| LOW | tests/test_exports.py | 79 | def test_export_onnx_nms_conf(isolated_model): | CODE |
| LOW | tests/test_exports.py | 128 | def test_quantize_canonicalization(): | CODE |
| LOW | tests/test_exports.py | 157 | def test_quantize_deprecation(): | CODE |
| LOW | tests/test_exports.py | 209 | def test_export_rknn_batch_expansion(monkeypatch, tmp_path): | CODE |
| LOW | tests/test_exports.py | 283 | def test_export_openvino_matrix(task, dynamic, quantize, batch, nms): | CODE |
| LOW | tests/test_exports.py | 328 | def test_export_onnx_semantic_dnn(): | CODE |
| LOW | tests/test_exports.py | 346 | def test_export_torchscript_matrix(task, dynamic, batch, nms, tmp_path): | CODE |
| LOW | tests/test_exports.py | 372 | def test_export_coreml_matrix(task, dynamic, quantize, nms, batch): | CODE |
| LOW | tests/test_exports.py | 440 | def test_export_coreml_rtdetr(): | CODE |
| LOW | tests/test_exports.py | 491 | def test_export_mnn_rejects_unsupported_nms(model, kwargs, error): | CODE |
| LOW | tests/test_exports.py | 606 | def test_export_litert_matrix(task, quantize): | CODE |
| LOW | tests/test_exports.py | 629 | def test_export_executorch_matrix(task): | CODE |
| LOW | tests/test_exports.py | 670 | def test_export_env_has_smoke(env): | CODE |
| LOW | tests/test_exports.py | 675 | def test_every_format_env_is_registered(): | CODE |
| LOW | tests/test_rocm.py | 18 | def test_rocm_migraphx_matrix(task, tmp_path): | CODE |
| LOW | tests/test_python.py | 63 | def test_dataloader_caps_workers_to_batches(): | CODE |
| LOW | tests/test_python.py | 78 | def test_dataloader_cap_preserves_distributed_drop_last(monkeypatch): | CODE |
| LOW | tests/test_python.py | 97 | def test_dataloader_seed_varies_sampling_order(): | CODE |
| LOW | tests/test_python.py | 113 | def test_dataloader_empty_dataset_uses_dataloader_validation(): | CODE |
| LOW | tests/test_python.py | 119 | def test_image_cache_shared_with_spawned_workers(): | CODE |
| LOW | tests/test_python.py | 132 | def test_build_yolo_dataset_hyp_isolated(): | CODE |
| LOW | tests/test_python.py | 140 | def test_cfg_rejects_fuzzed_values(): | CODE |
| LOW | tests/test_python.py | 242 | def test_autobackend_memory_format(tmp_path): | CODE |
| LOW | tests/test_python.py | 272 | def test_restricted_load_threaded(): | CODE |
| LOW | tests/test_python.py | 286 | def test_restricted_load_criterion(tmp_path, fused): | CODE |
| LOW | tests/test_python.py | 340 | def test_model_load_remaps_cls_head_by_names(): | CODE |
| LOW | tests/test_python.py | 383 | def test_predict_csv_multi_row(tmp_path): | CODE |
| LOW | tests/test_python.py | 394 | def test_predict_csv_single_row(tmp_path): | CODE |
| LOW | tests/test_python.py | 442 | def test_predict_classes_with_max_det(model_name, nms): | CODE |
| LOW | tests/test_python.py | 497 | def test_predict_ndarray_channels(): | CODE |
| LOW | tests/test_python.py | 513 | def test_single_check_channel_order_and_contiguity(): | CODE |
| LOW | tests/test_python.py | 528 | def test_predict_all_image_formats(): | CODE |
| LOW | tests/test_python.py | 565 | def test_track_second_association_indices(): | CODE |
| LOW | tests/test_python.py | 581 | def test_track_split_detections_degenerate_boxes(): | CODE |
| LOW | tests/test_python.py | 605 | def test_track_second_association_low_conf_keeps_id(tracker_type): | CODE |
| LOW | tests/test_python.py | 624 | def test_tracktrack_new_lifecycle(): | CODE |
| LOW | tests/test_python.py | 657 | def test_track_reid_auto_user_detections(tracker_type): | CODE |
| 131 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/test_exports.py | 252 | except Exception as error: # pragma: no cover - assertion handled below | CODE |
| LOW | docs/build_reference.py | 196 | except Exception: | CODE |
| LOW | docs/build_reference.py | 701 | except Exception: | CODE |
| LOW | docs/en/datasets/detect/roboflow-100.md | 82 | except Exception as e: | CODE |
| MEDIUM | docs/en/usage/simple-utilities.md | 492 | print("Error: Could not open video.") | CODE |
| LOW | docs/en/guides/vertex-ai-deployment-with-docker.md | 126 | except Exception as e: | CODE |
| MEDIUM | docs/en/guides/vertex-ai-deployment-with-docker.md | 127 | print(f"Error initializing YOLO model: {e}") | CODE |
| LOW | docs/en/guides/vertex-ai-deployment-with-docker.md | 206 | except Exception as e: | CODE |
| MEDIUM | docs/en/guides/vertex-ai-deployment-with-docker.md | 208 | print(f"Error in YOLO detection: {e}") | CODE |
| LOW | docs/en/guides/vertex-ai-deployment-with-docker.md | 357 | except Exception as e: | CODE |
| LOW | .github/workflows/mirror.yml | 150 | except Exception as error: | 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 | 1819 | except Exception as e: | CODE |
| LOW | ultralytics/nn/autobackend.py | 93 | except Exception: | CODE |
| LOW | ultralytics/nn/backends/onnx.py | 218 | except Exception as e: # plugin missing, GPU not enumerated, or unsupported-op compile failure | CODE |
| LOW | ultralytics/nn/backends/tensorrt.py | 64 | except Exception: | CODE |
| LOW | ultralytics/nn/backends/coreml.py | 42 | except Exception: | CODE |
| LOW | ultralytics/nn/backends/base.py | 189 | except Exception: # a third-party, truncated or metadata-less artifact | CODE |
| LOW | ultralytics/solutions/security_alarm.py | 112 | except Exception as e: | CODE |
| LOW | ultralytics/solutions/similarity_search.py | 131 | except Exception as e: | CODE |
| LOW | ultralytics/utils/autobatch.py | 133 | except Exception as e: | CODE |
| LOW | ultralytics/utils/events.py | 32 | except Exception: | CODE |
| LOW | ultralytics/utils/events.py | 152 | except Exception: | CODE |
| LOW | ultralytics/utils/events.py | 181 | except Exception: | CODE |
| LOW | ultralytics/utils/checks.py | 207 | except Exception as e: | CODE |
| LOW | ultralytics/utils/checks.py | 408 | except Exception: | CODE |
| LOW | ultralytics/utils/checks.py | 429 | except Exception: | CODE |
| LOW | ultralytics/utils/checks.py | 499 | except Exception: | CODE |
| LOW | ultralytics/utils/checks.py | 639 | except Exception as e: | CODE |
| LOW | ultralytics/utils/checks.py | 902 | except Exception as e: | CODE |
| LOW | ultralytics/utils/checks.py | 1104 | except Exception: | CODE |
| LOW | ultralytics/utils/checks.py | 1210 | except Exception: # broad clause to capture all Intel GPU exception types | CODE |
| LOW | ultralytics/utils/plotting.py | 337 | except Exception: | CODE |
| LOW | ultralytics/utils/plotting.py | 1029 | except Exception: | CODE |
| LOW | ultralytics/utils/plotting.py | 1117 | except Exception as e: | CODE |
| LOW | ultralytics/utils/cpu.py | 77 | except Exception: | CODE |
| LOW | ultralytics/utils/cpu.py | 83 | except Exception: | CODE |
| LOW⚡ | ultralytics/utils/__init__.py | 677 | except Exception as e: | CODE |
| LOW⚡ | ultralytics/utils/__init__.py | 682 | except Exception: | CODE |
| LOW | ultralytics/utils/__init__.py | 822 | except Exception: | CODE |
| LOW | ultralytics/utils/__init__.py | 851 | except Exception: | CODE |
| LOW | ultralytics/utils/__init__.py | 1171 | except Exception as e: | CODE |
| LOW | ultralytics/utils/__init__.py | 1333 | except Exception as e: | CODE |
| LOW | ultralytics/utils/__init__.py | 1342 | except Exception as e: | CODE |
| LOW | ultralytics/utils/__init__.py | 247 | except Exception: | STRING |
| LOW | ultralytics/utils/logger.py | 104 | except Exception: | CODE |
| LOW | ultralytics/utils/logger.py | 126 | except Exception: | CODE |
| LOW | ultralytics/utils/logger.py | 209 | except Exception: | CODE |
| LOW | ultralytics/utils/logger.py | 228 | except Exception as e: | CODE |
| LOW | ultralytics/utils/logger.py | 483 | except Exception as e: | CODE |
| LOW | ultralytics/utils/logger.py | 629 | except Exception: | CODE |
| LOW | ultralytics/utils/tqdm.py | 302 | except Exception: # streams without a usable fileno (io.StringIO, wrapped stdout) | CODE |
| LOW⚡ | ultralytics/utils/tqdm.py | 313 | except Exception: | CODE |
| LOW | ultralytics/utils/tqdm.py | 362 | except Exception: | CODE |
| LOW | ultralytics/utils/tqdm.py | 389 | except Exception: | CODE |
| LOW | ultralytics/utils/tqdm.py | 403 | except Exception: | CODE |
| LOW | ultralytics/utils/tqdm.py | 413 | except Exception: | CODE |
| LOW | ultralytics/utils/downloads.py | 82 | except Exception: | CODE |
| LOW | ultralytics/utils/downloads.py | 474 | except Exception as e: | CODE |
| 81 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/test_solutions.py | 180 | CODE | |
| LOW | docs/build_docs.py | 44 | CODE | |
| LOW | docs/build_reference.py | 697 | CODE | |
| LOW | examples/YOLO-Axelera-Python/yolo11-seg.py | 59 | CODE | |
| LOW | examples/YOLOv8-Region-Counter/yolov8_region_counter.py | 86 | 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 | 413 | CODE | |
| LOW | .github/scripts/fuzz.py | 442 | CODE | |
| LOW | .github/scripts/fuzz.py | 747 | CODE | |
| LOW | .github/scripts/fuzz.py | 935 | CODE | |
| LOW | .github/scripts/fuzz.py | 766 | CODE | |
| LOW | ultralytics/nn/tasks.py | 1632 | CODE | |
| LOW | ultralytics/nn/tasks.py | 1867 | CODE | |
| LOW | ultralytics/nn/tasks.py | 2063 | CODE | |
| LOW | ultralytics/nn/tasks.py | 2317 | CODE | |
| LOW | ultralytics/nn/tasks.py | 243 | CODE | |
| LOW | ultralytics/nn/tasks.py | 326 | CODE | |
| LOW | ultralytics/nn/tasks.py | 925 | CODE | |
| LOW | ultralytics/nn/tasks.py | 1198 | CODE | |
| LOW | ultralytics/nn/tasks.py | 1714 | CODE | |
| LOW | ultralytics/nn/autobackend.py | 393 | CODE | |
| LOW | ultralytics/nn/backends/onnx.py | 177 | CODE | |
| LOW | ultralytics/nn/backends/tensorflow.py | 92 | CODE | |
| LOW | ultralytics/nn/backends/rknn.py | 54 | CODE | |
| LOW | ultralytics/nn/backends/tensorrt.py | 25 | CODE | |
| LOW | ultralytics/nn/backends/litert.py | 47 | CODE | |
| LOW | ultralytics/nn/backends/base.py | 151 | CODE | |
| LOW | ultralytics/nn/modules/conv.py | 458 | CODE | |
| LOW | ultralytics/solutions/distance_calculation.py | 41 | CODE | |
| LOW | ultralytics/solutions/distance_calculation.py | 75 | CODE | |
| LOW | ultralytics/solutions/object_counter.py | 54 | CODE | |
| LOW | ultralytics/solutions/ai_gym.py | 55 | CODE | |
| LOW | ultralytics/solutions/streamlit_inference.py | 130 | CODE | |
| LOW | ultralytics/solutions/analytics.py | 143 | CODE | |
| LOW | ultralytics/solutions/speed_estimation.py | 70 | CODE | |
| LOW | ultralytics/optim/muon.py | 211 | CODE | |
| LOW | ultralytics/utils/instance.py | 382 | CODE | |
| LOW | ultralytics/utils/metrics.py | 108 | CODE | |
| LOW | ultralytics/utils/metrics.py | 545 | CODE | |
| LOW | ultralytics/utils/files.py | 57 | CODE | |
| LOW | ultralytics/utils/events.py | 95 | CODE | |
| LOW | ultralytics/utils/checks.py | 224 | CODE | |
| LOW | ultralytics/utils/checks.py | 301 | CODE | |
| LOW | ultralytics/utils/checks.py | 527 | CODE | |
| LOW | ultralytics/utils/checks.py | 733 | CODE | |
| LOW | ultralytics/utils/checks.py | 775 | CODE | |
| LOW | ultralytics/utils/plotting.py | 850 | CODE | |
| LOW | ultralytics/utils/plotting.py | 1070 | CODE | |
| LOW | ultralytics/utils/plotting.py | 289 | CODE | |
| LOW | ultralytics/utils/plotting.py | 572 | CODE | |
| LOW | ultralytics/utils/cpu.py | 52 | CODE | |
| LOW | ultralytics/utils/__init__.py | 457 | CODE | |
| LOW | ultralytics/utils/__init__.py | 962 | CODE | |
| LOW | ultralytics/utils/logger.py | 290 | CODE | |
| LOW | ultralytics/utils/downloads.py | 313 | CODE | |
| LOW | ultralytics/utils/downloads.py | 579 | CODE | |
| LOW | ultralytics/utils/ops.py | 688 | CODE | |
| LOW | ultralytics/utils/loss.py | 513 | CODE | |
| 81 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | docs/en/platform/train/cloud-training.md | 31 | ### Step 1: Select Base Model | COMMENT |
| LOW | docs/en/platform/train/cloud-training.md | 49 | ### Step 2: Select Dataset | COMMENT |
| LOW | docs/en/platform/train/cloud-training.md | 69 | ### Step 3: Configure Parameters | COMMENT |
| LOW | docs/en/platform/train/cloud-training.md | 87 | ### Step 4: Advanced Settings (Optional) | COMMENT |
| LOW | docs/en/platform/train/cloud-training.md | 128 | ### Step 5: Select GPU (Cloud Tab) | COMMENT |
| LOW | docs/en/platform/train/cloud-training.md | 160 | ### Step 6: Start Training | 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 | 84 | ### Step 3: Load the Data | COMMENT |
| LOW | docs/en/integrations/ibm-watsonx.md | 139 | ### Step 4: Preprocess the Data | COMMENT |
| LOW | docs/en/integrations/ibm-watsonx.md | 236 | ### Step 5: Train the YOLO26 model | COMMENT |
| LOW | docs/en/integrations/ibm-watsonx.md | 258 | ### Step 6: Test the Model | COMMENT |
| LOW | docs/en/integrations/ibm-watsonx.md | 291 | ### Step 7: Evaluate the Model | COMMENT |
| LOW | docs/en/integrations/ibm-watsonx.md | 309 | ### Step 8: Calculating [Intersection Over Union](https://www.ultralytics.com/glossary/intersection-over-union-iou) | 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 | 73 | ## Step 1: Pull the YOLOv5 Docker Image | COMMENT |
| LOW | …olov5/environments/docker-image-quickstart-tutorial.md | 87 | ## Step 2: Run the Docker Container | COMMENT |
| LOW | …olov5/environments/docker-image-quickstart-tutorial.md | 125 | ## Step 3: Use YOLOv5 🚀 within the Docker Container | COMMENT |
| LOW | …olov5/environments/google-cloud-quickstart-tutorial.md | 16 | ## Step 1: Create and Configure Your Deep Learning VM | COMMENT |
| LOW | …olov5/environments/google-cloud-quickstart-tutorial.md | 31 | ## Step 2: Prepare the VM for YOLOv5 | COMMENT |
| LOW | …olov5/environments/google-cloud-quickstart-tutorial.md | 46 | ## Step 3: Train and Deploy Your YOLOv5 Models | COMMENT |
| LOW | docs/en/yolov5/environments/aws-quickstart-tutorial.md | 14 | ## Step 1: AWS Console Sign-In | COMMENT |
| LOW | docs/en/yolov5/environments/aws-quickstart-tutorial.md | 20 | ## Step 2: Launch Your Instance | COMMENT |
| LOW | docs/en/yolov5/environments/aws-quickstart-tutorial.md | 52 | ## Step 3: Connect to Your Instance | COMMENT |
| LOW | docs/en/yolov5/environments/aws-quickstart-tutorial.md | 58 | ## Step 4: Running Ultralytics YOLOv5 | COMMENT |
| LOW | docs/en/guides/nvidia-dali.md | 337 | ### Step 1: Create the DALI Pipeline | COMMENT |
| LOW | docs/en/guides/nvidia-dali.md | 384 | ### Step 2: Export YOLO to TensorRT | COMMENT |
| LOW | docs/en/guides/nvidia-dali.md | 407 | ### Step 3: Configure Triton | COMMENT |
| LOW | docs/en/guides/nvidia-dali.md | 507 | ### Step 4: Send Inference Requests | COMMENT |
| LOW | docs/en/guides/steps-of-a-cv-project.md | 43 | ## Step 1: Defining Your Project's Goals | COMMENT |
| LOW | docs/en/guides/steps-of-a-cv-project.md | 84 | ## Step 2: Data Collection and Data Annotation | COMMENT |
| LOW | docs/en/guides/steps-of-a-cv-project.md | 102 | ## Step 3: Data Augmentation and Splitting Your Dataset | COMMENT |
| LOW | docs/en/guides/steps-of-a-cv-project.md | 124 | ## Step 4: Model Training | COMMENT |
| LOW⚡ | docs/en/guides/steps-of-a-cv-project.md | 139 | ## Step 5: Model Evaluation and Fine-Tuning | COMMENT |
| LOW⚡ | docs/en/guides/steps-of-a-cv-project.md | 149 | ## Step 6: Model Testing | COMMENT |
| LOW⚡ | docs/en/guides/steps-of-a-cv-project.md | 157 | ## Step 7: Model Deployment | COMMENT |
| LOW | docs/en/guides/steps-of-a-cv-project.md | 168 | ## Step 8: Monitoring, Maintenance, and Documentation | COMMENT |
| LOW | examples/YOLO-Interactive-Tracking-UI/README.md | 54 | ### Step 1: Download, Convert, or Specify Model | COMMENT |
| LOW | examples/YOLO-Interactive-Tracking-UI/README.md | 64 | ### Step 2: Configure the Script | COMMENT |
| LOW | examples/YOLO-Interactive-Tracking-UI/README.md | 98 | ### Step 3: Run the Object Tracking | COMMENT |
| LOW⚡ | ultralytics/models/sam/predict.py | 1736 | # Step 0: clear the input on those frames where this object id has point or mask input | COMMENT |
| LOW⚡ | ultralytics/models/sam/predict.py | 1745 | # Step 1: Update the object id mapping (note that it must be done after Step 0, | COMMENT |
| LOW⚡ | ultralytics/models/sam/predict.py | 2880 | # Step 1: run backbone and detector in a distributed manner -- this is done via Sam3ImageOnVideoMultiGPU, | COMMENT |
| LOW⚡ | ultralytics/models/sam/predict.py | 2889 | # Step 2: each GPU propagates its local SAM2 states to get the SAM2 prediction masks. | COMMENT |
| LOW⚡ | ultralytics/models/sam/predict.py | 2923 | # Step 4: based on `tracker_update_plan`, each GPU executes the update w.r.t. its local SAM2 inference states | COMMENT |
| 17 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tests/test_cli.py | 146 | # 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 | .github/workflows/mirror.yml | 141 | # Create the source default branch before selecting it, so pruning can delete an old default. | COMMENT |
| MEDIUM | ultralytics/solutions/heatmap.py | 66 | # Create a meshgrid with region of interest (ROI) for vectorized distance calculations | COMMENT |
| MEDIUM | ultralytics/solutions/heatmap.py | 72 | # 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 | 210 | self.sidebar() # Create the sidebar | CODE |
| MEDIUM | ultralytics/solutions/streamlit_inference.py | 261 | # Create an Inference instance from 'key=value' command-line arguments, i.e. model=yolo26n.pt conf=0.5 | COMMENT |
| MEDIUM | ultralytics/solutions/analytics.py | 222 | # 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 | 767 | # Create a tensor to hold batched keypoints | COMMENT |
| MEDIUM | ultralytics/utils/patches.py | 159 | >>> img = np.zeros((100, 100, 3), dtype=np.uint8) # Create a black image | STRING |
| MEDIUM | ultralytics/utils/patches.py | 184 | >>> img = np.zeros((300, 300, 3), dtype=np.uint8) # Create a black image | STRING |
| MEDIUM | ultralytics/utils/tuner.py | 474 | # Define the trainable function with allocated resources | COMMENT |
| MEDIUM | ultralytics/utils/tuner.py | 477 | # Define the scheduler for hyperparameter search | COMMENT |
| MEDIUM | ultralytics/utils/tuner.py | 496 | # 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 | 1948 | # Initialize the object index set and mappings | COMMENT |
| MEDIUM | ultralytics/models/sam/build_sam3.py | 241 | # Create the SAM3SemanticModel model | COMMENT |
| MEDIUM | ultralytics/data/converter.py | 433 | # Create a binary mask for the current class and find contours | STRING |
| MEDIUM | ultralytics/data/utils.py | 552 | 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_reference.py | 442 | # Check if text contains Markdown structures that need line preservation. The table check is line-anchored: | COMMENT |
| LOW | docs/build_reference.py | 1194 | # Check if the document paths are the same (ignoring structure or formatting differences) | COMMENT |
| LOW | examples/YOLOv8-SAHI-Inference-Video/yolov8_sahi.py | 103 | # Display results if requested | COMMENT |
| LOW | examples/YOLOv8-Region-Counter/yolov8_region_counter.py | 176 | # 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 | 222 | # Check if format supports FP16; PyTorch CPU FP16 is slow and breaks some models (e.g. RT-DETR returns no boxes) | COMMENT |
| LOW | ultralytics/nn/backends/onnx.py | 257 | # Check if dynamic shapes | COMMENT |
| LOW | ultralytics/solutions/heatmap.py | 48 | if self.region is not None: # Check if user provided the region coordinates | CODE |
| LOW | ultralytics/solutions/heatmap.py | 123 | self.display_output(plot_im) # Display output with base class function | CODE |
| LOW | ultralytics/solutions/object_blurrer.py | 87 | 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 | 127 | 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 | 196 | self.display_output(plot_im) # Display output with base class function | CODE |
| LOW | ultralytics/solutions/similarity_search.py | 111 | # 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 | 278 | self.display_output(plot_im) # Display output with base class function | CODE |
| LOW | ultralytics/solutions/ai_gym.py | 107 | self.display_output(plot_im) # Display output image, if environment support display | CODE |
| LOW | ultralytics/solutions/analytics.py | 224 | bar.set_label(label) # Assign label to each bar | CODE |
| LOW | ultralytics/solutions/speed_estimation.py | 121 | self.display_output(plot_im) # Display output with base class function | CODE |
| LOW | ultralytics/utils/metrics.py | 433 | if gt_cls.shape[0] == 0: # Check if labels is empty | CODE |
| LOW | ultralytics/utils/checks.py | 494 | # Check if package is installed (look for "ii" status) | COMMENT |
| LOW⚡ | ultralytics/utils/__init__.py | 670 | # Read file content | COMMENT |
| LOW | ultralytics/utils/__init__.py | 1449 | if not self.file.exists() or not self: # Check if file doesn't exist or is empty | CODE |
| LOW | ultralytics/utils/benchmarks.py | 267 | # Print results | COMMENT |
| LOW | ultralytics/utils/callbacks/wb.py | 166 | # Check if we actually have plots to save | COMMENT |
| LOW | ultralytics/utils/export/imx.py | 303 | # Check if the model has the expected number of layers | COMMENT |
| LOW | ultralytics/utils/export/engine.py | 467 | # 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 | 367 | # Print results per class | COMMENT |
| LOW | ultralytics/data/dataset.py | 252 | # Check if the dataset is all boxes or all segments | COMMENT |
| LOW | ultralytics/engine/predictor.py | 355 | # Check if save_dir/ label file exists | COMMENT |
| LOW | ultralytics/engine/model.py | 127 | # Check if Triton Server model | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | examples/YOLOv8-SAHI-Inference-Video/yolov8_sahi.py | 49 | CODE | |
| LOW | examples/YOLOv8-Region-Counter/yolov8_region_counter.py | 86 | CODE | |
| LOW | …amples/YOLOv8-Action-Recognition/action_recognition.py | 314 | CODE | |
| LOW | ultralytics/nn/autobackend.py | 185 | CODE | |
| LOW | ultralytics/nn/modules/head.py | 1359 | CODE | |
| LOW | ultralytics/nn/modules/head.py | 1483 | CODE | |
| LOW | ultralytics/nn/modules/head.py | 1574 | CODE | |
| LOW | ultralytics/nn/modules/conv.py | 382 | CODE | |
| LOW | ultralytics/nn/modules/block.py | 1827 | CODE | |
| LOW | ultralytics/utils/plotting.py | 850 | CODE | |
| LOW | ultralytics/utils/nms.py | 13 | CODE | |
| LOW | ultralytics/utils/tqdm.py | 84 | CODE | |
| LOW | ultralytics/utils/downloads.py | 313 | CODE | |
| LOW | ultralytics/utils/benchmarks.py | 71 | CODE | |
| LOW | ultralytics/utils/export/engine.py | 224 | CODE | |
| LOW | ultralytics/models/sam/build.py | 228 | CODE | |
| LOW | ultralytics/models/sam/predict.py | 341 | CODE | |
| LOW | ultralytics/models/sam/predict.py | 2557 | 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 | 48 | CODE | |
| LOW | ultralytics/models/sam/modules/encoders.py | 652 | CODE | |
| LOW | ultralytics/models/sam/modules/blocks.py | 455 | CODE | |
| LOW | ultralytics/models/sam/modules/tiny_encoder.py | 679 | CODE | |
| LOW | ultralytics/models/sam/modules/tiny_encoder.py | 787 | CODE | |
| LOW | ultralytics/models/sam/modules/sam.py | 170 | CODE | |
| LOW | ultralytics/models/sam/modules/sam.py | 1050 | CODE | |
| LOW | ultralytics/models/sam/sam3/decoder.py | 70 | CODE | |
| LOW | ultralytics/models/sam/sam3/decoder.py | 183 | CODE | |
| LOW | ultralytics/models/sam/sam3/decoder.py | 349 | CODE | |
| LOW | ultralytics/models/sam/sam3/text_encoder_ve.py | 152 | CODE | |
| LOW | ultralytics/models/sam/sam3/text_encoder_ve.py | 242 | CODE | |
| LOW | ultralytics/models/sam/sam3/vitdet.py | 43 | CODE | |
| LOW | ultralytics/models/sam/sam3/vitdet.py | 219 | CODE | |
| LOW | ultralytics/models/sam/sam3/vitdet.py | 322 | CODE | |
| LOW | ultralytics/models/sam/sam3/sam3_image.py | 37 | CODE | |
| LOW | ultralytics/models/utils/loss.py | 35 | CODE | |
| LOW | ultralytics/data/annotator.py | 10 | CODE | |
| LOW | ultralytics/data/augment.py | 2966 | CODE | |
| LOW | ultralytics/data/augment.py | 1701 | CODE | |
| LOW | ultralytics/data/augment.py | 2356 | CODE | |
| LOW | ultralytics/data/base.py | 109 | CODE | |
| LOW | ultralytics/engine/results.py | 247 | CODE | |
| LOW | ultralytics/engine/results.py | 487 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| 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 | 161 | if failures: | COMMENT |
| LOW | .github/workflows/docs.yml | 1 | # Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license | COMMENT |
| LOW | ultralytics/models/sam/predict.py | 2561 | _callbacks: dict | None = None, | COMMENT |
| LOW | ultralytics/cfg/datasets/depth-kitti.yaml | 1 | # Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license | COMMENT |
| LOW | ultralytics/cfg/datasets/depth-arkitscenes.yaml | 1 | # Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license | COMMENT |
| LOW | ultralytics/cfg/datasets/depth-vkitti2.yaml | 1 | # Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license | COMMENT |
| LOW | ultralytics/cfg/datasets/nyu-depth.yaml | 1 | # Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license | COMMENT |
| LOW | ultralytics/cfg/datasets/depth-hypersim.yaml | 1 | # Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license | 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/depth-sunrgbd.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/depth-tartanair.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/depth-diode.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/depth8.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 | docs/build_reference.py | 1167 | def update_mkdocs_file(reference_yaml: str) -> None: | CODE |
| LOW | ultralytics/nn/backends/__init__.py | 30 | __all__ = [ | CODE |
| LOW | ultralytics/optim/__init__.py | 6 | __all__ = ["MuSGD"] | CODE |
| LOW | ultralytics/utils/metrics.py | 1070 | 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 | 1146 | def update_stats(self, stat: dict[str, Any]) -> None: | CODE |
| LOW | ultralytics/utils/metrics.py | 1317 | def update_stats(self, stat: dict[str, Any]) -> None: | CODE |
| LOW | ultralytics/utils/metrics.py | 1470 | def update_stats(self, stat: dict[str, Any]) -> None: | CODE |
| LOW | ultralytics/utils/metrics.py | 1729 | def update_stats(self, preds: torch.Tensor, targets: torch.Tensor) -> None: | CODE |
| LOW | ultralytics/utils/metrics.py | 1956 | def update_stats(self, preds: torch.Tensor, targets: torch.Tensor) -> None: | CODE |
| LOW⚡ | ultralytics/utils/tqdm.py | 322 | def set_description(self, desc: str | None) -> None: | CODE |
| LOW⚡ | ultralytics/utils/tqdm.py | 328 | def set_postfix(self, **kwargs: Any) -> None: | CODE |
| LOW | ultralytics/utils/export/__init__.py | 22 | __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 | 202 | def set_classes(self, classes: list[str]) -> None: | CODE |
| LOW | ultralytics/models/yolo/model.py | 354 | def set_classes(self, classes: list[str], embeddings: torch.Tensor | None = None) -> None: | CODE |
| LOW | ultralytics/models/yolo/detect/val.py | 221 | 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/depth/val.py | 51 | 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 | 120 | def set_text_embeddings(self, datasets: list[Any], batch: int | None) -> None: | CODE |
| LOW | ultralytics/trackers/deep_oc_sort.py | 61 | def update_features(self, feat: np.ndarray, score: float | None = None) -> None: | CODE |
| LOW | ultralytics/trackers/bot_sort.py | 71 | def update_features(self, feat: np.ndarray) -> None: | CODE |
| LOW | ultralytics/trackers/track_tracker.py | 258 | def update_features(self, feat: np.ndarray) -> None: | CODE |
| LOW | ultralytics/data/build.py | 223 | def set_epoch(self, epoch: int) -> None: | CODE |
| LOW | ultralytics/data/dataset.py | 927 | def update_labels(self, include_class: list[int] | None) -> None: | CODE |
| LOW | ultralytics/data/base.py | 226 | def update_labels(self, include_class: list[int] | None) -> None: | CODE |
| LOW | ultralytics/data/base.py | 409 | def set_rectangle(self) -> None: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | tests/test_cuda.py | 73 | assert "CUDAExecutionProvider" in model.predictor.model.backend.session.get_providers() | CODE |
| CRITICAL | ultralytics/utils/export/coreml.py | 159 | pipeline.spec.description.metadata.userDefined.update( | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | ultralytics/models/sam/predict.py | 1736 | # Step 0: clear the input on those frames where this object id has point or mask input | COMMENT |
| LOW⚡ | ultralytics/models/sam/predict.py | 1745 | # Step 1: Update the object id mapping (note that it must be done after Step 0, | COMMENT |
| LOW⚡ | ultralytics/models/sam/predict.py | 2880 | # Step 1: run backbone and detector in a distributed manner -- this is done via Sam3ImageOnVideoMultiGPU, | COMMENT |
| LOW⚡ | ultralytics/models/sam/predict.py | 2889 | # Step 2: each GPU propagates its local SAM2 states to get the SAM2 prediction masks. | COMMENT |
| LOW⚡ | ultralytics/models/sam/predict.py | 2923 | # 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 | 2932 | # 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 | 1759 | # Step 2: For per-object tensor storage, we shift their obj_idx in the dict keys. | COMMENT |
| LOW | ultralytics/models/sam/predict.py | 1775 | # Step 3: For packed tensor storage, we index the remaining ids and rebuild the per-object slices. | COMMENT |
| LOW | ultralytics/models/sam/predict.py | 2903 | # Step 3: based on detection outputs and the propagated SAM2 prediction masks, we make plans | COMMENT |
| LOW | ultralytics/models/sam/predict.py | 3040 | # Step 1: propagate the local SAM2 states to get the current frame's prediction | COMMENT |
| LOW | ultralytics/models/sam/predict.py | 3052 | # Step 2: all-gather `low_res_masks_local` into `low_res_masks_global` | COMMENT |
| LOW | ultralytics/models/sam/predict.py | 3125 | # Step 1: make the update plan and resolve heuristics on GPU 0 | COMMENT |
| LOW | ultralytics/models/sam/predict.py | 3256 | # Step 4: Run SAM2 memory encoder on the current frame's prediction masks | COMMENT |
| LOW | ultralytics/models/sam/predict.py | 3277 | # Step 5: update the SAM2 metadata based on the update plan | COMMENT |
| LOW | ultralytics/models/sam/predict.py | 3403 | # Step 1: add new objects from the detector to SAM2 inference states | COMMENT |
| LOW | ultralytics/models/sam/predict.py | 3416 | # Step 2: remove from SAM2 inference states those objects removed by heuristics | COMMENT |
| LOW | ultralytics/models/sam/predict.py | 3716 | # Step 1: log the frame index where each object ID first appears | COMMENT |
| LOW | ultralytics/models/sam/predict.py | 3739 | # Step 2: removed tracks that has not matched with detections for `hotstart_unmatch_thresh` frames with hotstart | COMMENT |
| LOW | ultralytics/models/sam/predict.py | 3767 | # Step 3: removed tracks that overlaps with another track for `hotstart_dup_thresh` frames | COMMENT |
| LOW | ultralytics/models/sam/modules/sam.py | 657 | # Step 1: condition the visual features of the current frame on previous memories | COMMENT |
| LOW | ultralytics/models/sam/modules/sam.py | 784 | # 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 | 1398 | # Test smart_value() with comprehensive cases | COMMENT |
| MEDIUM | ultralytics/utils/__init__.py | 654 | """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 | 197 | """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 |
|---|---|---|---|---|
| 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 |
|---|---|---|---|---|
| MEDIUM | ultralytics/cfg/trackers/deepocsort.yaml | 23 | model: auto # (str) ReID model path; "auto" uses detector features, or use a .pt checkpoint or exported embedding model | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | ultralytics/utils/__init__.py | 551 | ... def my_function(): | STRING |
| LOW | ultralytics/utils/__init__.py | 1198 | ... def process_data(data): | STRING |