Ultralytics YOLO 🚀
1366 matches across 18 categories. Click a row to expand file-level details.
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | CONTRIBUTING.md | 64 | Example function demonstrating Google-style docstrings. Args: arg1 (int): The first argument. arg2 |
| HIGH | CONTRIBUTING.md | 87 | Example function demonstrating Google-style docstrings. Args: arg1: The first argument. arg2: The s |
| HIGH | docs/build_docs.py | 344 | Remove comments and empty lines from a string of code, preserving newlines and URLs. Args: content (str): C |
| HIGH | docs/en/help/contributing.md | 61 | Example function demonstrating Google-style docstrings. Args: arg1 (int): The first argumen |
| HIGH | docs/en/help/contributing.md | 83 | Example function demonstrating Google-style docstrings. Args: arg1 (int): The first argumen |
| HIGH | docs/en/help/contributing.md | 105 | Example function demonstrating Google-style docstrings. Args: arg1 (int): The first argumen |
| HIGH | docs/en/help/contributing.md | 146 | Example function demonstrating Google-style docstrings. Args: arg1: The first argument. |
| HIGH | ultralytics/nn/tasks.py | 1407 | Context manager for temporarily adding or modifying modules in Python's module cache (`sys.modules`). This function |
| HIGH | ultralytics/nn/tasks.py | 1494 | Attempt to load a PyTorch model with the torch.load() function. If a ModuleNotFoundError is raised, it catches the e |
| 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 |
| HIGH | ultralytics/nn/text_model.py | 110 | Encode tokenized texts into normalized feature vectors. This method processes tokenized text inputs through the |
| HIGH | ultralytics/nn/text_model.py | 135 | Encode images into normalized feature vectors. This method processes image inputs through the CLIP model to gen |
| HIGH | ultralytics/nn/text_model.py | 220 | Convert input texts to MobileCLIP tokens. Args: texts (list[str]): List of text strings to tokenize |
| HIGH | ultralytics/nn/text_model.py | 236 | Encode tokenized texts into normalized feature vectors. Args: texts (torch.Tensor): Tokenized text |
| HIGH | ultralytics/nn/text_model.py | 297 | Convert input texts to MobileCLIP tokens. Args: texts (list[str]): List of text strings to tokenize |
| HIGH | ultralytics/nn/text_model.py | 318 | Encode tokenized texts into normalized feature vectors. Args: texts (torch.Tensor): Tokenized text |
| 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 |
| HIGH | ultralytics/nn/autobackend.py | 37 | Check class names and convert to dict format if needed. Args: names (list | dict): Class names as list or d |
| HIGH | ultralytics/nn/autobackend.py | 231 | Delegate attribute access to the backend. This allows AutoBackend to transparently expose backend attributes |
| HIGH | ultralytics/nn/autobackend.py | 320 | Take a path to a model file and return the model format string. Args: p (str): Path to the model fi |
| 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. |
| HIGH | ultralytics/nn/modules/utils.py | 36 | Initialize conv/fc bias value according to a given probability value. This function calculates the bias initializat |
| 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 |
| HIGH | ultralytics/nn/modules/block.py | 1437 | C2PSA module with attention mechanism for enhanced feature extraction and processing. This module implements a conv |
| HIGH | ultralytics/solutions/object_blurrer.py | 50 | Apply a blurring effect to detected objects in the input image. This method extracts tracking information, appl |
| HIGH | ultralytics/solutions/security_alarm.py | 116 | Monitor the frame, process object detections, and trigger alerts if thresholds are met. This method processes t |
| HIGH | ultralytics/solutions/distance_calculation.py | 70 | Process a video frame and calculate the distance between two selected bounding boxes. This method extracts trac |
| HIGH | ultralytics/solutions/trackzone.py | 50 | Process the input frame to track objects within a defined region. This method initializes the annotator, create |
| HIGH | ultralytics/solutions/object_counter.py | 138 | Process input data (frames or object tracks) and update object counts. This method initializes the counting reg |
| HIGH | ultralytics/solutions/instance_segmentation.py | 52 | Perform instance segmentation on the input image and annotate the results. Args: im0 (np.ndarray): |
| HIGH | ultralytics/solutions/similarity_search.py | 131 | Return top-k semantically similar images to the given query. Args: query (str): Natural language te |
| HIGH | ultralytics/solutions/queue_management.py | 48 | Process queue management for a single frame of video. Args: im0 (np.ndarray): Input image for proce |
| HIGH | ultralytics/solutions/parking_management.py | 222 | Process the input image for parking lot management and visualization. This function analyzes the input image, e |
| HIGH | ultralytics/solutions/ai_gym.py | 50 | Monitor workouts using Ultralytics YOLO Pose Model. This function processes an input image to track and analyze |
| HIGH | ultralytics/solutions/vision_eye.py | 39 | Perform object detection, vision mapping, and annotation on the input image. Args: im0 (np.ndarray) |
| HIGH | ultralytics/solutions/object_cropper.py | 51 | Crop detected objects from the input image and save them as separate images. Args: im0 (np.ndarray) |
| HIGH | ultralytics/solutions/solutions.py | 212 | Display the results of the processing, which could involve showing frames, printing counts, or saving results. |
| HIGH | ultralytics/solutions/solutions.py | 470 | Draw specific keypoints for gym steps counting. Args: keypoints (list[list[float]]): Keypoints data |
| HIGH | ultralytics/solutions/analytics.py | 96 | Process image data and run object tracking to update analytics charts. Args: im0 (np.ndarray): Inpu |
| HIGH | ultralytics/solutions/analytics.py | 141 | Update the graph with new data for single or multiple classes. Args: frame_number (int): The curren |
| HIGH | ultralytics/solutions/speed_estimation.py | 62 | Process an input frame to estimate object speeds based on tracking data. Args: im0 (np.ndarray): In |
| HIGH | ultralytics/optim/muon.py | 10 | Compute the zeroth power / orthogonalization of matrix G using Newton-Schulz iteration. This function implements a |
| HIGH | ultralytics/optim/muon.py | 60 | Compute Muon optimizer update with momentum and orthogonalization. This function applies momentum to the gradient, |
| HIGH | ultralytics/optim/muon.py | 100 | Hybrid optimizer combining Muon and SGD updates for neural network training. This optimizer implements a combinatio |
| HIGH | ultralytics/optim/muon.py | 181 | Perform a single optimization step. Applies either hybrid Muon+SGD updates or pure SGD updates depending on the |
| HIGH | ultralytics/optim/muon.py | 255 | Muon optimizer for usage in non-distributed settings. This optimizer implements the Muon algorithm, which combines |
| HIGH | ultralytics/optim/muon.py | 298 | Perform a single optimization step. Applies Muon updates to all parameters, incorporating momentum and orthogon |
| HIGH | ultralytics/utils/instance.py | 36 | A class for handling bounding boxes in multiple formats. The class supports various bounding box formats like 'xyxy |
| HIGH | ultralytics/utils/instance.py | 140 | Concatenate a list of Bboxes objects into a single Bboxes object. Args: boxes_list (list[Bboxes]): |
| HIGH | ultralytics/utils/instance.py | 162 | Retrieve a specific bounding box or a set of bounding boxes using indexing. Args: index (int | slic |
| HIGH | ultralytics/utils/instance.py | 318 | Retrieve a specific instance or a set of instances using indexing. Args: index (int | slice | np.nd |
| HIGH | ultralytics/utils/instance.py | 437 | Concatenate a list of Instances objects into a single Instances object. Args: instances_list (list[ |
| HIGH | ultralytics/utils/metrics.py | 236 | Calculate probabilistic IoU between oriented bounding boxes. Args: obb1 (torch.Tensor): Ground truth OBBs, |
| HIGH | ultralytics/utils/metrics.py | 616 | Generate a summarized representation of the confusion matrix as a list of dictionaries, with optional normalizat |
| HIGH | ultralytics/utils/metrics.py | 1227 | Generate a summarized representation of per-class detection metrics as a list of dictionaries. Includes shared s |
| HIGH | ultralytics/utils/metrics.py | 1384 | Generate a summarized representation of per-class segmentation metrics as a list of dictionaries. Includes both |
| HIGH | ultralytics/utils/metrics.py | 1539 | Generate a summarized representation of per-class pose metrics as a list of dictionaries. Includes both box and |
| HIGH | ultralytics/utils/metrics.py | 1628 | Generate a single-row summary of classification metrics (Top-1 and Top-5 accuracy). Args: normalize |
| 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 |
| HIGH | ultralytics/utils/files.py | 107 | Increment a file or directory path, i.e., runs/exp --> runs/exp{sep}2, runs/exp{sep}3, ... etc. If the path exists |
| 271 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tests/conftest.py | 6 | |
| LOW | docs/build_docs.py | 23 | |
| LOW | docs/build_reference.py | 11 | |
| LOW | examples/YOLO-Axelera-Python/yolo11-seg.py | 13 | |
| LOW | examples/YOLO-Axelera-Python/yolo26-pose-tracker.py | 23 | |
| LOW | examples/YOLOv8-Region-Counter/yolov8_region_counter.py | 3 | |
| LOW | examples/YOLOv8-OpenCV-ONNX-Python/main.py | 3 | |
| LOW | examples/YOLOv8-ONNXRuntime/main.py | 3 | |
| LOW | examples/YOLOv8-TFLite-Python/main.py | 3 | |
| LOW | …es/YOLO-Interactive-Tracking-UI/interactive_tracker.py | 3 | |
| LOW | …amples/YOLOv8-Action-Recognition/action_recognition.py | 3 | |
| LOW | examples/RTDETR-ONNXRuntime-Python/main.py | 3 | |
| LOW | examples/YOLOv8-Segmentation-ONNXRuntime-Python/main.py | 3 | |
| LOW | ultralytics/__init__.py | 13 | |
| LOW | ultralytics/__init__.py | 14 | |
| LOW | ultralytics/__init__.py | 15 | |
| LOW | ultralytics/__init__.py | 32 | |
| LOW | ultralytics/__init__.py | 32 | |
| LOW | ultralytics/__init__.py | 32 | |
| LOW | ultralytics/__init__.py | 32 | |
| LOW | ultralytics/__init__.py | 32 | |
| LOW | ultralytics/__init__.py | 32 | |
| LOW | ultralytics/__init__.py | 32 | |
| LOW | ultralytics/nn/text_model.py | 3 | |
| LOW | ultralytics/nn/__init__.py | 3 | |
| LOW | ultralytics/nn/__init__.py | 3 | |
| LOW | ultralytics/nn/__init__.py | 3 | |
| LOW | ultralytics/nn/__init__.py | 3 | |
| LOW | ultralytics/nn/__init__.py | 3 | |
| LOW | ultralytics/nn/__init__.py | 3 | |
| LOW | ultralytics/nn/__init__.py | 3 | |
| LOW | ultralytics/nn/__init__.py | 3 | |
| LOW | ultralytics/nn/__init__.py | 3 | |
| LOW | ultralytics/nn/__init__.py | 3 | |
| LOW | ultralytics/nn/autobackend.py | 3 | |
| LOW | ultralytics/nn/backends/deepx.py | 3 | |
| LOW | ultralytics/nn/backends/qnn.py | 3 | |
| LOW | ultralytics/nn/backends/triton.py | 3 | |
| LOW | ultralytics/nn/backends/paddle.py | 3 | |
| LOW | ultralytics/nn/backends/onnx.py | 3 | |
| LOW | ultralytics/nn/backends/onnx.py | 157 | |
| LOW | ultralytics/nn/backends/openvino.py | 3 | |
| LOW | ultralytics/nn/backends/__init__.py | 9 | |
| LOW | ultralytics/nn/backends/__init__.py | 10 | |
| LOW | ultralytics/nn/backends/__init__.py | 11 | |
| LOW | ultralytics/nn/backends/__init__.py | 12 | |
| LOW | ultralytics/nn/backends/__init__.py | 13 | |
| LOW | ultralytics/nn/backends/__init__.py | 14 | |
| LOW | ultralytics/nn/backends/__init__.py | 15 | |
| LOW | ultralytics/nn/backends/__init__.py | 16 | |
| LOW | ultralytics/nn/backends/__init__.py | 16 | |
| LOW | ultralytics/nn/backends/__init__.py | 17 | |
| LOW | ultralytics/nn/backends/__init__.py | 18 | |
| LOW | ultralytics/nn/backends/__init__.py | 19 | |
| LOW | ultralytics/nn/backends/__init__.py | 19 | |
| LOW | ultralytics/nn/backends/__init__.py | 20 | |
| LOW | ultralytics/nn/backends/__init__.py | 21 | |
| LOW | ultralytics/nn/backends/__init__.py | 22 | |
| LOW | ultralytics/nn/backends/__init__.py | 23 | |
| LOW | ultralytics/nn/backends/__init__.py | 24 | |
| 344 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | docs/en/platform/quickstart.md | 294 | headers = {"Authorization": "Bearer YOUR_API_KEY"} |
| HIGH | docs/en/platform/quickstart.md | 306 | -H "Authorization: Bearer YOUR_API_KEY" \ |
| HIGH | docs/en/platform/quickstart.md | 361 | export ULTRALYTICS_API_KEY="YOUR_API_KEY" |
| HIGH | docs/en/platform/index.md | 133 | export ULTRALYTICS_API_KEY="YOUR_API_KEY" |
| HIGH | docs/en/platform/index.md | 146 | os.environ["ULTRALYTICS_API_KEY"] = "YOUR_API_KEY" |
| HIGH | docs/en/platform/index.md | 184 | headers = {"Authorization": "Bearer YOUR_API_KEY"} |
| HIGH | docs/en/platform/index.md | 196 | -H "Authorization: Bearer YOUR_API_KEY" \ |
| HIGH | docs/en/platform/index.md | 208 | headers: { Authorization: "Bearer YOUR_API_KEY" }, |
| HIGH | docs/en/platform/index.md | 309 | export ULTRALYTICS_API_KEY="YOUR_API_KEY" |
| HIGH | docs/en/platform/index.md | 322 | os.environ["ULTRALYTICS_API_KEY"] = "YOUR_API_KEY" |
| HIGH | docs/en/platform/index.md | 337 | export ULTRALYTICS_API_KEY="YOUR_API_KEY" |
| HIGH | docs/en/platform/deploy/inference.md | 145 | Authorization: Bearer YOUR_API_KEY |
| HIGH | docs/en/platform/deploy/inference.md | 166 | headers = {"Authorization": "Bearer YOUR_API_KEY"} |
| HIGH | docs/en/platform/deploy/inference.md | 179 | -H "Authorization: Bearer YOUR_API_KEY" \ |
| HIGH | docs/en/platform/deploy/inference.md | 199 | headers: { Authorization: "Bearer YOUR_API_KEY" }, |
| HIGH | docs/en/platform/deploy/inference.md | 408 | headers = {"Authorization": "Bearer YOUR_API_KEY"} |
| HIGH | docs/en/platform/deploy/endpoints.md | 277 | Authorization: Bearer YOUR_API_KEY |
| HIGH | docs/en/platform/deploy/endpoints.md | 297 | headers = {"Authorization": "Bearer YOUR_API_KEY"} |
| HIGH | docs/en/platform/deploy/endpoints.md | 324 | headers: { Authorization: "Bearer YOUR_API_KEY" }, |
| HIGH | docs/en/platform/deploy/endpoints.md | 338 | -H "Authorization: Bearer YOUR_API_KEY" \ |
| HIGH | docs/en/platform/deploy/monitoring.md | 173 | headers = {"Authorization": "Bearer YOUR_API_KEY"} |
| HIGH | docs/en/platform/deploy/monitoring.md | 200 | headers: { Authorization: "Bearer YOUR_API_KEY" }, |
| HIGH | docs/en/platform/deploy/monitoring.md | 214 | -H "Authorization: Bearer YOUR_API_KEY" \ |
| HIGH | docs/en/platform/train/cloud-training.md | 214 | export ULTRALYTICS_API_KEY="YOUR_API_KEY" |
| HIGH | docs/en/platform/train/index.md | 124 | export ULTRALYTICS_API_KEY="YOUR_API_KEY" |
| HIGH | docs/en/platform/api/index.md | 17 | curl -H "Authorization: Bearer YOUR_API_KEY" \ |
| HIGH | docs/en/platform/api/index.md | 70 | Authorization: Bearer YOUR_API_KEY |
| HIGH | docs/en/platform/api/index.md | 82 | curl -H "Authorization: Bearer YOUR_API_KEY" \ |
| HIGH | docs/en/platform/api/index.md | 91 | headers = {"Authorization": "Bearer YOUR_API_KEY"} |
| HIGH | docs/en/platform/api/index.md | 103 | headers: { Authorization: "Bearer YOUR_API_KEY" }, |
| HIGH | docs/en/platform/api/index.md | 208 | curl -H "Authorization: Bearer YOUR_API_KEY" \ |
| HIGH | docs/en/platform/api/index.md | 644 | -H "Authorization: Bearer YOUR_API_KEY" \ |
| HIGH | docs/en/platform/api/index.md | 827 | -H "Authorization: Bearer YOUR_API_KEY" \ |
| HIGH | docs/en/platform/api/index.md | 915 | -H "Authorization: Bearer YOUR_API_KEY" \ |
| HIGH | docs/en/platform/api/index.md | 1185 | -H "Authorization: Bearer YOUR_API_KEY" \ |
| HIGH | docs/en/platform/api/index.md | 1755 | -H "Authorization: Bearer YOUR_API_KEY" \ |
| HIGH | docs/en/platform/api/index.md | 2065 | yolo settings api_key=YOUR_API_KEY |
| HIGH | docs/en/platform/api/index.md | 2071 | export ULTRALYTICS_API_KEY=YOUR_API_KEY |
| HIGH | docs/en/platform/api/index.md | 2079 | settings.api_key = "YOUR_API_KEY" |
| HIGH | docs/en/platform/api/index.md | 2202 | curl -H "Authorization: Bearer YOUR_API_KEY" \ |
| HIGH | docs/en/platform/api/index.md | 2209 | curl -H "Authorization: Bearer YOUR_API_KEY" \ |
| HIGH | docs/en/platform/account/api-keys.md | 69 | export ULTRALYTICS_API_KEY="YOUR_API_KEY" |
| HIGH | docs/en/platform/account/api-keys.md | 75 | $env:ULTRALYTICS_API_KEY = "YOUR_API_KEY" |
| HIGH | docs/en/platform/account/api-keys.md | 83 | yolo settings api_key="YOUR_API_KEY" |
| HIGH | docs/en/platform/account/api-keys.md | 97 | api_key = "YOUR_API_KEY" |
| HIGH | docs/en/platform/account/api-keys.md | 105 | curl -H "Authorization: Bearer YOUR_API_KEY" \ |
| HIGH | docs/en/platform/account/api-keys.md | 124 | export ULTRALYTICS_API_KEY="YOUR_API_KEY" |
| HIGH | docs/en/platform/account/trash.md | 154 | curl -H "Authorization: Bearer YOUR_API_KEY" \ |
| HIGH | docs/en/platform/account/trash.md | 161 | curl -X POST -H "Authorization: Bearer YOUR_API_KEY" \ |
| HIGH | docs/en/platform/account/activity.md | 144 | The routes shown below require an active platform browser session. The `Authorization: Bearer YOUR_API_KEY` header i |
| HIGH | docs/en/platform/account/activity.md | 149 | curl -H "Authorization: Bearer YOUR_API_KEY" \ |
| HIGH | docs/en/platform/account/activity.md | 156 | curl -H "Authorization: Bearer YOUR_API_KEY" \ |
| HIGH | docs/en/platform/account/activity.md | 163 | curl -X POST -H "Authorization: Bearer YOUR_API_KEY" \ |
| HIGH | docs/en/platform/account/activity.md | 173 | curl -X POST -H "Authorization: Bearer YOUR_API_KEY" \ |
| HIGH | docs/en/platform/account/activity.md | 179 | curl -X POST -H "Authorization: Bearer YOUR_API_KEY" \ |
| HIGH | docs/en/platform/data/index.md | 172 | export ULTRALYTICS_API_KEY="YOUR_API_KEY" |
| HIGH | docs/en/platform/data/index.md | 181 | os.environ["ULTRALYTICS_API_KEY"] = "YOUR_API_KEY" |
| HIGH | docs/en/platform/data/datasets.md | 589 | export ULTRALYTICS_API_KEY="YOUR_API_KEY" |
| HIGH | docs/en/datasets/explorer/index.md | 102 | yolo settings openai_api_key="YOUR_API_KEY" |
| HIGH | docs/en/integrations/weights-biases.md | 68 | wandb.login(key="YOUR_API_KEY") |
| 6 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | ultralytics/nn/tasks.py | 0 | compute loss. args: batch (dict): batch to compute loss on. preds (torch.tensor | list[torch.tensor], optional): predict |
| HIGH | ultralytics/nn/tasks.py | 0 | compute loss. args: batch (dict): batch to compute loss on. preds (torch.tensor | list[torch.tensor], optional): predict |
| HIGH | ultralytics/nn/tasks.py | 0 | compute loss. args: batch (dict): batch to compute loss on. preds (torch.tensor | list[torch.tensor], optional): predict |
| HIGH | ultralytics/nn/tasks.py | 0 | compute loss. args: batch (dict): batch to compute loss on. preds (torch.tensor | list[torch.tensor], optional): predict |
| HIGH | ultralytics/nn/modules/head.py | 0 | returns the one-to-many head components, here for v3/v5/v8/v9/v11 backward compatibility. |
| HIGH | ultralytics/nn/modules/head.py | 0 | returns the one-to-many head components, here for v3/v5/v8/v9/v11 backward compatibility. |
| HIGH | ultralytics/nn/modules/head.py | 0 | returns the one-to-many head components, here for v3/v5/v8/v9/v11 backward compatibility. |
| HIGH | ultralytics/nn/modules/head.py | 0 | initialize detect() biases, warning: requires stride availability. |
| HIGH | ultralytics/nn/modules/head.py | 0 | initialize detect() biases, warning: requires stride availability. |
| HIGH | ultralytics/nn/modules/head.py | 0 | initialize detect() biases, warning: requires stride availability. |
| HIGH | ultralytics/nn/modules/head.py | 0 | remove the one2many head for inference optimization. |
| HIGH | ultralytics/nn/modules/head.py | 0 | remove the one2many head for inference optimization. |
| HIGH | ultralytics/nn/modules/head.py | 0 | remove the one2many head for inference optimization. |
| HIGH | ultralytics/nn/modules/head.py | 0 | remove the one2many head for inference optimization. |
| HIGH | ultralytics/nn/modules/head.py | 0 | remove the one2many head for inference optimization. |
| HIGH | ultralytics/nn/modules/head.py | 0 | remove the one2many head for inference optimization. |
| HIGH | ultralytics/nn/modules/head.py | 0 | returns the one-to-many head components, here for backward compatibility. |
| HIGH | ultralytics/nn/modules/head.py | 0 | returns the one-to-many head components, here for backward compatibility. |
| HIGH | ultralytics/nn/modules/head.py | 0 | returns the one-to-many head components, here for backward compatibility. |
| HIGH | ultralytics/nn/modules/head.py | 0 | returns the one-to-many head components, here for backward compatibility. |
| HIGH | ultralytics/nn/modules/head.py | 0 | return model outputs and mask coefficients if training, otherwise return outputs and mask coefficients. |
| HIGH | ultralytics/nn/modules/head.py | 0 | return model outputs and mask coefficients if training, otherwise return outputs and mask coefficients. |
| HIGH | ultralytics/nn/modules/head.py | 0 | return model outputs and mask coefficients if training, otherwise return outputs and mask coefficients. |
| HIGH | ultralytics/nn/modules/head.py | 0 | return model outputs and mask coefficients if training, otherwise return outputs and mask coefficients. |
| HIGH | ultralytics/utils/metrics.py | 0 | return a list of curves for accessing specific metrics curves. |
| HIGH | ultralytics/utils/metrics.py | 0 | return a list of curves for accessing specific metrics curves. |
| HIGH | ultralytics/utils/metrics.py | 0 | return a list of curves for accessing specific metrics curves. |
| HIGH | ultralytics/utils/metrics.py | 0 | return a list of curves for accessing specific metrics curves. |
| HIGH | ultralytics/utils/metrics.py | 0 | return a list of curves for accessing specific metrics curves. |
| HIGH | ultralytics/utils/metrics.py | 0 | update statistics by appending new values to existing stat collections. args: stat (dict[str, any]): dictionary containi |
| HIGH | ultralytics/utils/metrics.py | 0 | update statistics by appending new values to existing stat collections. args: stat (dict[str, any]): dictionary containi |
| HIGH | ultralytics/utils/metrics.py | 0 | update statistics by appending new values to existing stat collections. args: stat (dict[str, any]): dictionary containi |
| HIGH | ultralytics/utils/metrics.py | 0 | return a list of computed performance metrics and statistics. |
| HIGH | ultralytics/utils/metrics.py | 0 | return a list of computed performance metrics and statistics. |
| HIGH | ultralytics/utils/metrics.py | 0 | return a list of computed performance metrics and statistics. |
| HIGH | ultralytics/utils/loss.py | 0 | calculate the sum of the loss for box, cls and dfl multiplied by batch size. |
| HIGH | ultralytics/utils/loss.py | 0 | calculate the sum of the loss for box, cls and dfl multiplied by batch size. |
| HIGH | ultralytics/utils/loss.py | 0 | calculate the sum of the loss for box, cls and dfl multiplied by batch size. |
| HIGH | ultralytics/models/sam/modules/tiny_encoder.py | 0 | set image size to make model compatible with different image sizes. |
| HIGH | ultralytics/models/sam/modules/sam.py | 0 | set image size to make model compatible with different image sizes. |
| HIGH | ultralytics/models/sam/modules/sam.py | 0 | set image size to make model compatible with different image sizes. |
| HIGH | ultralytics/models/yolo/model.py | 0 | map head to model, trainer, validator, and predictor classes. |
| HIGH | ultralytics/models/yolo/model.py | 0 | map head to model, trainer, validator, and predictor classes. |
| HIGH | ultralytics/models/yolo/model.py | 0 | map head to model, trainer, validator, and predictor classes. |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tests/test_exports.py | 84 | except Exception as error: # pragma: no cover - assertion handled below |
| LOW | docs/build_docs.py | 144 | except Exception as e: |
| LOW | docs/build_docs.py | 183 | except Exception as e: |
| LOW | docs/build_docs.py | 200 | except Exception: |
| LOW | docs/build_docs.py | 209 | except Exception: |
| LOW | docs/build_docs.py | 476 | except Exception as e: |
| LOW | docs/build_docs.py | 523 | except Exception as e: |
| LOW | docs/build_docs.py | 538 | except Exception as e: |
| LOW | docs/build_docs.py | 552 | except Exception as e: |
| LOW | docs/build_docs.py | 682 | except Exception as e: |
| LOW | docs/build_reference.py | 176 | except Exception: |
| LOW | docs/build_reference.py | 629 | except Exception: |
| MEDIUM | docs/en/usage/simple-utilities.md | 489 | print("Error: Could not open video.") |
| LOW | docs/en/guides/vertex-ai-deployment-with-docker.md | 122 | except Exception as e: |
| MEDIUM | docs/en/guides/vertex-ai-deployment-with-docker.md | 123 | print(f"Error initializing YOLO model: {e}") |
| LOW | docs/en/guides/vertex-ai-deployment-with-docker.md | 204 | except Exception as e: |
| MEDIUM | docs/en/guides/vertex-ai-deployment-with-docker.md | 206 | print(f"Error in YOLO detection: {e}") |
| LOW | docs/en/guides/vertex-ai-deployment-with-docker.md | 352 | except Exception as e: |
| LOW | .github/workflows/merge-main-into-prs.yml | 78 | except Exception as update_error: |
| LOW | .github/workflows/merge-main-into-prs.yml | 84 | except Exception as e: |
| LOW | ultralytics/nn/autobackend.py | 82 | except Exception: |
| LOW | ultralytics/nn/backends/tensorrt.py | 66 | except Exception as e: |
| LOW | ultralytics/solutions/security_alarm.py | 112 | except Exception as e: |
| LOW | ultralytics/solutions/similarity_search.py | 113 | except Exception as e: |
| LOW | ultralytics/utils/autobatch.py | 127 | except Exception as e: |
| LOW | ultralytics/utils/events.py | 22 | except Exception: |
| LOW | ultralytics/utils/checks.py | 112 | except Exception as e: |
| LOW | ultralytics/utils/checks.py | 295 | except Exception: |
| LOW | ultralytics/utils/checks.py | 316 | except Exception: |
| LOW | ultralytics/utils/checks.py | 385 | except Exception: |
| LOW | ultralytics/utils/checks.py | 509 | except Exception as e: |
| LOW | ultralytics/utils/checks.py | 747 | except Exception as e: |
| LOW | ultralytics/utils/checks.py | 941 | except Exception: |
| LOW | ultralytics/utils/checks.py | 1040 | except Exception: # broad clause to capture all Intel GPU exception types |
| LOW | ultralytics/utils/plotting.py | 219 | except Exception: |
| LOW | ultralytics/utils/plotting.py | 873 | except Exception: |
| LOW | ultralytics/utils/plotting.py | 941 | except Exception as e: |
| LOW | ultralytics/utils/cpu.py | 57 | except Exception: |
| LOW | ultralytics/utils/cpu.py | 63 | except Exception: |
| LOW | ultralytics/utils/__init__.py | 632 | except Exception as e: |
| LOW | ultralytics/utils/__init__.py | 637 | except Exception: |
| LOW | ultralytics/utils/__init__.py | 770 | except Exception: |
| LOW | ultralytics/utils/__init__.py | 799 | except Exception: |
| LOW | ultralytics/utils/__init__.py | 1115 | except Exception as e: |
| LOW | ultralytics/utils/__init__.py | 1271 | except Exception as e: |
| LOW | ultralytics/utils/__init__.py | 1280 | except Exception as e: |
| LOW | ultralytics/utils/__init__.py | 211 | except Exception: |
| LOW | ultralytics/utils/logger.py | 99 | except Exception: |
| LOW | ultralytics/utils/logger.py | 120 | except Exception: |
| LOW | ultralytics/utils/logger.py | 232 | except Exception: |
| LOW | ultralytics/utils/logger.py | 251 | except Exception as e: |
| LOW | ultralytics/utils/logger.py | 345 | except Exception as e: |
| LOW | ultralytics/utils/logger.py | 467 | except Exception: |
| LOW | ultralytics/utils/tqdm.py | 287 | except Exception: |
| LOW | ultralytics/utils/tqdm.py | 333 | except Exception: |
| LOW | ultralytics/utils/tqdm.py | 360 | except Exception: |
| LOW | ultralytics/utils/tqdm.py | 374 | except Exception: |
| LOW | ultralytics/utils/tqdm.py | 384 | except Exception: |
| LOW | ultralytics/utils/downloads.py | 71 | except Exception: |
| LOW | ultralytics/utils/downloads.py | 381 | except Exception as e: |
| 80 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tests/test_solutions.py | 179 | |
| LOW | docs/build_docs.py | 85 | |
| LOW | docs/build_docs.py | 188 | |
| LOW | docs/build_docs.py | 343 | |
| LOW | docs/build_docs.py | 585 | |
| LOW | docs/build_reference.py | 625 | |
| LOW | examples/YOLOv8-Region-Counter/yolov8_region_counter.py | 42 | |
| LOW | examples/YOLOv8-Region-Counter/yolov8_region_counter.py | 87 | |
| LOW | …es/YOLO-Interactive-Tracking-UI/interactive_tracker.py | 71 | |
| LOW | …es/YOLO-Interactive-Tracking-UI/interactive_tracker.py | 115 | |
| LOW | …amples/YOLOv8-Action-Recognition/action_recognition.py | 314 | |
| LOW | ultralytics/nn/tasks.py | 1493 | |
| LOW | ultralytics/nn/tasks.py | 1639 | |
| LOW | ultralytics/nn/tasks.py | 1874 | |
| LOW | ultralytics/nn/tasks.py | 226 | |
| LOW | ultralytics/nn/tasks.py | 760 | |
| LOW | ultralytics/nn/tasks.py | 999 | |
| LOW | ultralytics/nn/autobackend.py | 319 | |
| LOW | ultralytics/nn/backends/onnx.py | 37 | |
| LOW | ultralytics/nn/backends/tensorflow.py | 39 | |
| LOW | ultralytics/nn/backends/tensorflow.py | 124 | |
| LOW | ultralytics/nn/backends/tensorrt.py | 25 | |
| LOW | ultralytics/nn/modules/conv.py | 447 | |
| LOW | ultralytics/solutions/distance_calculation.py | 44 | |
| LOW | ultralytics/solutions/distance_calculation.py | 69 | |
| LOW | ultralytics/solutions/object_counter.py | 54 | |
| LOW | ultralytics/solutions/ai_gym.py | 49 | |
| LOW | ultralytics/solutions/streamlit_inference.py | 126 | |
| LOW | ultralytics/solutions/analytics.py | 138 | |
| LOW | ultralytics/solutions/speed_estimation.py | 61 | |
| LOW | ultralytics/optim/muon.py | 180 | |
| LOW | ultralytics/utils/metrics.py | 105 | |
| LOW | ultralytics/utils/metrics.py | 537 | |
| LOW | ultralytics/utils/files.py | 57 | |
| LOW | ultralytics/utils/checks.py | 192 | |
| LOW | ultralytics/utils/checks.py | 407 | |
| LOW | ultralytics/utils/checks.py | 595 | |
| LOW | ultralytics/utils/checks.py | 637 | |
| LOW | ultralytics/utils/checks.py | 1005 | |
| LOW | ultralytics/utils/plotting.py | 698 | |
| LOW | ultralytics/utils/plotting.py | 896 | |
| LOW | ultralytics/utils/plotting.py | 189 | |
| LOW | ultralytics/utils/plotting.py | 434 | |
| LOW | ultralytics/utils/cpu.py | 32 | |
| LOW | ultralytics/utils/__init__.py | 421 | |
| LOW | ultralytics/utils/__init__.py | 910 | |
| LOW | ultralytics/utils/logger.py | 127 | |
| LOW | ultralytics/utils/downloads.py | 286 | |
| LOW | ultralytics/utils/downloads.py | 462 | |
| LOW | ultralytics/utils/ops.py | 622 | |
| LOW | ultralytics/utils/loss.py | 494 | |
| LOW | ultralytics/utils/tuner.py | 118 | |
| LOW | ultralytics/utils/benchmarks.py | 69 | |
| LOW | ultralytics/utils/benchmarks.py | 294 | |
| LOW | ultralytics/utils/benchmarks.py | 604 | |
| LOW | ultralytics/utils/torch_utils.py | 343 | |
| LOW | ultralytics/utils/torch_utils.py | 504 | |
| LOW | ultralytics/utils/torch_utils.py | 813 | |
| LOW | ultralytics/utils/torch_utils.py | 949 | |
| LOW | ultralytics/utils/callbacks/platform.py | 46 | |
| 58 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tests/test_solutions.py | 207 | def test_left_click_selection(): |
| LOW | tests/test_solutions.py | 234 | def test_analytics_graph_not_supported(): |
| LOW | tests/test_solutions.py | 252 | def test_config_update_method_with_invalid_argument(): |
| LOW | tests/test_solutions.py | 270 | def test_streamlit_handle_video_upload_creates_file(tmp_path): |
| LOW | tests/test_solutions.py | 303 | def test_similarity_search_app_init(): |
| LOW | tests/test_solutions.py | 312 | def test_similarity_search_complete(tmp_path): |
| LOW | tests/test_solutions.py | 326 | def test_distance_calculation_process_method(): |
| LOW | tests/test_solutions.py | 351 | def test_display_output_method(): |
| LOW | tests/test_engine.py | 180 | def test_train_reuses_loaded_checkpoint_model(monkeypatch, kwargs, uses_weights): |
| LOW | tests/test_engine.py | 223 | def test_setup_model_respects_pretrained_arg_for_pt_models(monkeypatch, pretrained, uses_weights): |
| LOW | tests/conftest.py | 34 | def pytest_collection_modifyitems(config, items): |
| LOW | tests/test_exports.py | 122 | def test_export_openvino_matrix(task, dynamic, int8, half, batch, nms, end2end): |
| LOW | tests/test_exports.py | 184 | def test_export_torchscript_matrix(task, dynamic, int8, half, batch, nms, end2end): |
| LOW | tests/test_exports.py | 215 | def test_export_coreml_matrix(task, dynamic, int8, half, nms, batch, end2end): |
| LOW | tests/test_exports.py | 256 | def test_export_tflite_matrix(task, dynamic, int8, half, batch, nms, end2end): |
| LOW | tests/test_exports.py | 290 | def test_export_coreml_rtdetr(): |
| LOW | tests/test_exports.py | 407 | def test_export_executorch_matrix(task): |
| LOW | tests/test_python.py | 96 | def test_predict_csv_multi_row(tmp_path): |
| LOW | tests/test_python.py | 108 | def test_predict_csv_single_row(tmp_path): |
| LOW | tests/test_python.py | 176 | def test_predict_all_image_formats(): |
| LOW | tests/test_python.py | 298 | def test_predict_callback_and_setup(): |
| LOW | tests/test_python.py | 402 | def test_safe_download_unzips_local_path_archive(tmp_path): |
| LOW | tests/test_python.py | 423 | def test_safe_download_skips_unsafe_archive_members(tmp_path): |
| LOW | tests/test_python.py | 436 | def test_safe_download_skips_unsafe_tar_members(tmp_path): |
| LOW | tests/test_python.py | 630 | def test_utils_patches_torch_save(tmp_path): |
| LOW | tests/test_python.py | 705 | def test_classify_transforms_train(image, auto_augment, erasing, force_color_jitter): |
| LOW | tests/test_python.py | 926 | def test_semantic_polygon_data(): |
| LOW | tests/test_integrations.py | 43 | def test_mlflow_keep_run_active(): |
| LOW | tests/test_cuda.py | 92 | def test_export_engine_matrix(task, dynamic, int8, half, batch): |
| LOW | tests/test_cuda.py | 136 | def test_predict_multiple_devices(): |
| LOW | docs/build_docs.py | 343 | def remove_comments_and_empty_lines(content: str, file_type: str) -> str: |
| LOW | docs/build_reference.py | 125 | def extract_classes_and_functions(filepath: Path) -> tuple[list[str], list[str]]: |
| LOW | docs/build_reference.py | 133 | def create_placeholder_markdown(py_filepath: Path, module_path: str, classes: list[str], functions: list[str]) -> Path: |
| LOW | docs/build_reference.py | 208 | def collect_signature_parameters(args: ast.arguments, src: str, *, skip_self: bool = True) -> list[ParameterDoc]: |
| LOW | docs/build_reference.py | 528 | def _get_definition_signature(node: ast.AST, src: str) -> str: |
| LOW | docs/build_reference.py | 1156 | def build_reference_placeholders(update_nav: bool = True) -> list[str]: |
| LOW | docs/en/guides/nvidia-dali.md | 128 | def yolo_dali_pipeline_centered(image_dir, target_size=640): |
| LOW | …amples/YOLOv8-Action-Recognition/action_recognition.py | 95 | def preprocess_crops_for_video_cls( |
| LOW | …amples/YOLOv8-Action-Recognition/action_recognition.py | 207 | def preprocess_crops_for_video_cls( |
| LOW | ultralytics/nn/modules/utils.py | 101 | def multi_scale_deformable_attn_pytorch( |
| LOW | ultralytics/nn/modules/conv.py | 420 | def get_equivalent_kernel_bias(self): |
| LOW | ultralytics/solutions/solutions.py | 438 | def _estimate_pose_angle_cached(a: tuple[float, float], b: tuple[float, float], c: tuple[float, float]) -> float: |
| LOW | ultralytics/solutions/solutions.py | 537 | def plot_angle_and_count_and_stage( |
| LOW | ultralytics/utils/checks.py | 279 | def check_latest_pypi_version(package_name="ultralytics"): |
| LOW | ultralytics/utils/checks.py | 299 | def check_pip_update_available(): |
| LOW | ultralytics/utils/checks.py | 521 | def check_executorch_requirements(): |
| LOW | ultralytics/utils/checks.py | 622 | def check_model_file_from_stem(model: str = "yolo11n") -> str | Path: |
| LOW | ultralytics/utils/tqdm.py | 13 | def is_noninteractive_console() -> bool: |
| LOW | ultralytics/utils/downloads.py | 247 | def get_google_drive_file_info(link: str) -> tuple[str, str | None]: |
| LOW | ultralytics/utils/loss.py | 398 | def get_assigned_targets_and_loss(self, preds: dict[str, torch.Tensor], batch: dict[str, Any]) -> tuple: |
| LOW | ultralytics/utils/loss.py | 578 | def calculate_segmentation_loss( |
| LOW | ultralytics/utils/tuner.py | 72 | def _validate_ax_search_space(space): |
| LOW | ultralytics/utils/tuner.py | 118 | def _convert_bohb_search_space(space): |
| LOW | ultralytics/utils/tuner.py | 215 | def _convert_zoopt_search_space(space): |
| LOW | ultralytics/utils/torch_utils.py | 471 | def get_flops_with_torch_profiler(model, imgsz=640): |
| LOW | ultralytics/utils/torch_utils.py | 64 | def torch_distributed_zero_first(local_rank: int): |
| LOW | ultralytics/utils/callbacks/comet.py | 64 | def _get_eval_batch_logging_interval() -> int: |
| LOW | ultralytics/utils/callbacks/comet.py | 69 | def _get_max_image_predictions_to_log() -> int: |
| LOW | ultralytics/utils/callbacks/comet.py | 80 | def _should_log_confusion_matrix() -> bool: |
| LOW | ultralytics/utils/callbacks/comet.py | 85 | def _should_log_image_predictions() -> bool: |
| 55 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | tests/test_cli.py | 87 | # Create a FastSAM model |
| MEDIUM | examples/YOLOv8-ONNXRuntime/main.py | 107 | # Create the label text with class name and score |
| MEDIUM | examples/YOLOv8-ONNXRuntime/main.py | 260 | # Create an argument parser to handle command-line arguments |
| MEDIUM | examples/YOLOv8-ONNXRuntime/main.py | 271 | # Create an instance of the YOLOv8 class with the specified arguments |
| MEDIUM | examples/RTDETR-ONNXRuntime-Python/main.py | 139 | # Create the label text with class name and score |
| MEDIUM | examples/RTDETR-ONNXRuntime-Python/main.py | 292 | # Create the detector instance with specified parameters |
| MEDIUM | ultralytics/solutions/heatmap.py | 62 | # Create a meshgrid with region of interest (ROI) for vectorized distance calculations |
| MEDIUM | ultralytics/solutions/heatmap.py | 68 | # Create a mask of points within the radius |
| MEDIUM | ultralytics/solutions/security_alarm.py | 94 | # Create the email |
| MEDIUM | ultralytics/solutions/trackzone.py | 69 | if self.mask is None: # Create a mask for the region |
| MEDIUM | ultralytics/solutions/similarity_search.py | 123 | self.index = self.faiss.IndexFlatIP(vectors.shape[1]) # Create a new FAISS index using inner product |
| MEDIUM | ultralytics/solutions/streamlit_inference.py | 219 | self.sidebar() # Create the sidebar |
| MEDIUM | ultralytics/solutions/streamlit_inference.py | 272 | # Create an instance of the Inference class and run inference |
| MEDIUM | ultralytics/solutions/analytics.py | 223 | # Create the legend using labels from the bars |
| MEDIUM | ultralytics/utils/files.py | 79 | # Create a temporary directory and construct the new path |
| MEDIUM | ultralytics/utils/loss.py | 725 | # Create a tensor to hold batched keypoints |
| MEDIUM | ultralytics/utils/patches.py | 124 | >>> img = np.zeros((100, 100, 3), dtype=np.uint8) # Create a black image |
| MEDIUM | ultralytics/utils/patches.py | 149 | >>> img = np.zeros((300, 300, 3), dtype=np.uint8) # Create a black image |
| MEDIUM | ultralytics/utils/tuner.py | 458 | # Define the trainable function with allocated resources |
| MEDIUM | ultralytics/utils/tuner.py | 461 | # Define the scheduler for hyperparameter search |
| MEDIUM | ultralytics/utils/tuner.py | 480 | # Create the Ray Tune hyperparameter search tuner |
| MEDIUM | ultralytics/models/sam/amg.py | 211 | >>> mask[40:60, 40:60] = True # Create a square |
| MEDIUM | ultralytics/models/sam/amg.py | 212 | >>> mask[45:55, 45:55] = False # Create a hole |
| MEDIUM | ultralytics/models/sam/predict.py | 1908 | # Initialize the object index set and mappings |
| MEDIUM | ultralytics/models/sam/build_sam3.py | 239 | # Create the SAM3SemanticModel model |
| MEDIUM | ultralytics/models/sam/sam3/vitdet.py | 315 | """This module implements Vision Transformer (ViT) backbone in :paper:`vitdet`. "Exploring Plain Vision Transformer |
| MEDIUM | ultralytics/models/utils/ops.py | 157 | # This function is for future RT-DETR Segment models |
| MEDIUM | ultralytics/models/utils/loss.py | 155 | # This function is for future RT-DETR Segment models |
| MEDIUM | ultralytics/models/utils/loss.py | 176 | # This function is for future RT-DETR Segment models |
| MEDIUM | ultralytics/data/converter.py | 402 | # Create a binary mask for the current class and find contours |
| MEDIUM | ultralytics/data/utils.py | 342 | rect = plt.Rectangle((x, y), w, h, linewidth=2, edgecolor=color, facecolor="none") # Create a rectangle |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | docs/build_docs.py | 238 | # Check if parent is a span with class="normal" |
| LOW | docs/build_docs.py | 664 | # Print results and auto-serve on macOS |
| LOW | docs/build_reference.py | 419 | # Check if text contains Markdown structures that need line preservation |
| LOW | docs/build_reference.py | 1112 | # Check if the document paths are the same (ignoring structure or formatting differences) |
| LOW | examples/YOLOv8-SAHI-Inference-Video/yolov8_sahi.py | 110 | # Display results if requested |
| LOW | examples/YOLOv8-Region-Counter/yolov8_region_counter.py | 177 | # Check if detection inside region |
| LOW | examples/YOLOv8-ONNXRuntime/main.py | 277 | # Display the output image in a window |
| LOW | …es/YOLO-Interactive-Tracking-UI/interactive_tracker.py | 17 | save_video = False # Set True to save output video |
| LOW | examples/RTDETR-ONNXRuntime-Python/main.py | 25 | # Check if the local path already exists |
| LOW | .github/workflows/merge-main-into-prs.yml | 66 | # Check if PR is behind the default branch |
| LOW | .github/workflows/conda-check-prs.yml | 68 | # Print results to action log |
| LOW | ultralytics/nn/autobackend.py | 190 | # Check if format supports FP16 |
| LOW | ultralytics/nn/backends/onnx.py | 84 | # Check if dynamic shapes |
| LOW | ultralytics/solutions/heatmap.py | 46 | if self.region is not None: # Check if user provided the region coordinates |
| LOW | ultralytics/solutions/heatmap.py | 116 | self.display_output(plot_im) # Display output with base class function |
| LOW | ultralytics/solutions/object_blurrer.py | 86 | self.display_output(plot_im) # Display the output using the base class function |
| LOW | ultralytics/solutions/security_alarm.py | 148 | self.display_output(plot_im) # Display output with base class function |
| LOW | ultralytics/solutions/distance_calculation.py | 118 | self.display_output(plot_im) # Display output with base class function |
| LOW | ultralytics/solutions/trackzone.py | 85 | self.display_output(plot_im) # Display output with base class function |
| LOW | ultralytics/solutions/object_counter.py | 181 | self.display_output(plot_im) # Display output with base class function |
| LOW | ultralytics/solutions/similarity_search.py | 93 | # Check if the FAISS index and corresponding image paths already exist |
| LOW | ultralytics/solutions/queue_management.py | 90 | self.display_output(plot_im) # Display output with base class function |
| LOW | ultralytics/solutions/parking_management.py | 53 | try: # Check if tkinter is installed |
| LOW | ultralytics/solutions/parking_management.py | 272 | self.display_output(plot_im) # Display output with base class function |
| LOW | ultralytics/solutions/ai_gym.py | 99 | self.display_output(plot_im) # Display output image, if environment support display |
| LOW | ultralytics/solutions/streamlit_inference.py | 269 | # Check if a model name is provided as a command-line argument |
| LOW | ultralytics/solutions/analytics.py | 225 | bar.set_label(label) # Assign label to each bar |
| LOW | ultralytics/solutions/speed_estimation.py | 111 | self.display_output(plot_im) # Display output with base class function |
| LOW | ultralytics/utils/metrics.py | 423 | if gt_cls.shape[0] == 0: # Check if labels is empty |
| LOW | ultralytics/utils/checks.py | 380 | # Check if package is installed (look for "ii" status) |
| LOW | ultralytics/utils/__init__.py | 625 | # Read file content |
| LOW | ultralytics/utils/__init__.py | 1389 | if not self.file.exists() or not self: # Check if file doesn't exist or is empty |
| LOW | ultralytics/utils/downloads.py | 190 | # Check if destination directory already exists and contains files |
| LOW | ultralytics/utils/downloads.py | 371 | # Check if download is complete (only if we have expected_size) |
| LOW | ultralytics/utils/benchmarks.py | 231 | # Print results |
| LOW | ultralytics/utils/callbacks/wb.py | 174 | # Check if we actually have plots to save |
| LOW | ultralytics/utils/export/imx.py | 294 | # Check if the model has the expected number of layers |
| LOW | ultralytics/utils/export/engine.py | 284 | # Write file |
| LOW | ultralytics/models/sam/amg.py | 169 | # Check if boxes has a channel dimension |
| LOW | ultralytics/models/sam/amg.py | 179 | # Check if points has a channel dimension |
| LOW | ultralytics/models/yolo/detect/val.py | 285 | # Print results per class |
| LOW | ultralytics/data/converter.py | 861 | # Check if this is a classification dataset |
| LOW | ultralytics/data/converter.py | 906 | # Check if dataset already exists (enables image reuse across split changes) |
| LOW | ultralytics/data/dataset.py | 194 | # Check if the dataset is all boxes or all segments |
| LOW | ultralytics/engine/predictor.py | 304 | # Check if save_dir/ label file exists |
| LOW | ultralytics/engine/model.py | 122 | # Check if Ultralytics HUB model from https://hub.ultralytics.com |
| LOW | ultralytics/engine/model.py | 133 | # Check if Triton Server model |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | mkdocs.yml | 901 | # Plugins -------------------------------------------------------------------------------------------------------------- |
| LOW | pyproject.toml | 1 | # Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license |
| LOW | docs/en/models/yolo-world.md | 341 | |
| LOW | docs/en/models/yoloe.md | 561 | val=dict(yolo_data=["lvis.yaml"]), |
| LOW | docs/en/yolov5/tutorials/hyperparameter_evolution.md | 101 | |
| LOW | examples/YOLOv8-CPP-Inference/inference.h | 1 | // Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license |
| LOW | examples/YOLOv8-MNN-CPP/main_interpreter.cpp | 1 | // Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license |
| LOW | examples/YOLOv8-MNN-CPP/main.cpp | 1 | // Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license |
| LOW | examples/YOLOv8-LibTorch-CPP-Inference/CMakeLists.txt | 21 | |
| LOW | examples/YOLO11-Triton-CPP/main.cpp | 1 | // Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license |
| LOW | examples/YOLOv8-ONNXRuntime-CPP/inference.h | 1 | // Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license |
| LOW | .github/workflows/mirror.yml | 41 | # git remote add gitcode https://ultralytics:${{ secrets.GITCODE_TOKEN }}@gitcode.net/ultralytics/ultralytics. |
| LOW | .github/workflows/docs.yml | 1 | # Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license |
| LOW | ultralytics/models/sam/predict.py | 1501 | # we fall back and look up its previous output in "output_dict_per_obj". |
| LOW | ultralytics/models/sam/predict.py | 2821 | # the returned `tracker_low_res_masks_global` contains the concatenated masklet predictions |
| LOW | ultralytics/models/utils/ops.py | 161 | # sample_points = torch.rand([bs, 1, self.num_sample_points, 2]) |
| LOW | ultralytics/models/utils/loss.py | 161 | # loss = {} |
| LOW | ultralytics/cfg/datasets/dota8-multispectral.yaml | 1 | # Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license |
| LOW | ultralytics/cfg/datasets/hand-keypoints.yaml | 1 | # Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license |
| LOW | ultralytics/cfg/datasets/medical-pills.yaml | 1 | # Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license |
| LOW | ultralytics/cfg/datasets/cityscapes8.yaml | 1 | # Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license |
| LOW | ultralytics/cfg/datasets/xView.yaml | 1 | # Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license |
| LOW | ultralytics/cfg/datasets/dog-pose.yaml | 1 | # Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license |
| LOW | ultralytics/cfg/datasets/tiger-pose.yaml | 1 | # Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license |
| LOW | ultralytics/cfg/datasets/ImageNet.yaml | 1 | # Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license |
| LOW | ultralytics/cfg/datasets/signature.yaml | 1 | # Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license |
| LOW | ultralytics/cfg/datasets/coco8-multispectral.yaml | 1 | # Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license |
| LOW | ultralytics/cfg/datasets/cityscapes.yaml | 1 | # Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license |
| LOW | ultralytics/cfg/datasets/ade20k.yaml | 1 | # Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license |
| LOW | ultralytics/cfg/datasets/TT100K.yaml | 1 | # Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | ultralytics/models/sam/predict.py | 1696 | # Step 0: clear the input on those frames where this object id has point or mask input |
| LOW | ultralytics/models/sam/predict.py | 1705 | # Step 1: Update the object id mapping (note that it must be done after Step 0, |
| LOW | ultralytics/models/sam/predict.py | 1719 | # Step 2: For per-object tensor storage, we shift their obj_idx in the dict keys. |
| LOW | ultralytics/models/sam/predict.py | 1735 | # Step 3: For packed tensor storage, we index the remaining ids and rebuild the per-object slices. |
| LOW | ultralytics/models/sam/predict.py | 2811 | # Step 1: run backbone and detector in a distributed manner -- this is done via Sam3ImageOnVideoMultiGPU, |
| LOW | ultralytics/models/sam/predict.py | 2820 | # Step 2: each GPU propagates its local SAM2 states to get the SAM2 prediction masks. |
| LOW | ultralytics/models/sam/predict.py | 2834 | # Step 3: based on detection outputs and the propagated SAM2 prediction masks, we make plans |
| LOW | ultralytics/models/sam/predict.py | 2854 | # Step 4: based on `tracker_update_plan`, each GPU executes the update w.r.t. its local SAM2 inference states |
| LOW | ultralytics/models/sam/predict.py | 2863 | # Step 5: finally, build the outputs for this frame (it only needs to be done on GPU 0 since |
| LOW | ultralytics/models/sam/predict.py | 2967 | # Step 1: propagate the local SAM2 states to get the current frame's prediction |
| LOW | ultralytics/models/sam/predict.py | 2979 | # Step 2: all-gather `low_res_masks_local` into `low_res_masks_global` |
| LOW | ultralytics/models/sam/predict.py | 3052 | # Step 1: make the update plan and resolve heuristics on GPU 0 |
| LOW | ultralytics/models/sam/predict.py | 3183 | # Step 4: Run SAM2 memory encoder on the current frame's prediction masks |
| LOW | ultralytics/models/sam/predict.py | 3201 | # Step 4: update the SAM2 metadata based on the update plan |
| LOW | ultralytics/models/sam/predict.py | 3326 | # Step 1: add new objects from the detector to SAM2 inference states |
| LOW | ultralytics/models/sam/predict.py | 3339 | # Step 2: remove from SAM2 inference states those objects removed by heuristics |
| LOW | ultralytics/models/sam/predict.py | 3637 | # Step 1: log the frame index where each object ID first appears |
| LOW | ultralytics/models/sam/predict.py | 3661 | # Step 2: removed tracks that has not matched with detections for `hotstart_unmatch_thresh` frames with hotstart |
| LOW | ultralytics/models/sam/predict.py | 3689 | # Step 3: removed tracks that overlaps with another track for `hotstart_dup_thresh` frames |
| LOW | ultralytics/models/sam/modules/sam.py | 651 | # Step 1: condition the visual features of the current frame on previous memories |
| LOW | ultralytics/models/sam/modules/sam.py | 778 | # Step 2: Concatenate the memories and forward through the transformer encoder |
| LOW | ultralytics/trackers/byte_tracker.py | 312 | # Step 2: First association, with high score detection boxes |
| LOW | ultralytics/trackers/byte_tracker.py | 337 | # Step 3: Second association, with low score detection boxes association the untrack to the low score detections |
| LOW | ultralytics/trackers/byte_tracker.py | 370 | # Step 4: Init new stracks |
| LOW | ultralytics/trackers/byte_tracker.py | 377 | # Step 5: Update state |
| Severity | File | Line | Snippet |
|---|---|---|---|
| CRITICAL | ultralytics/utils/export/coreml.py | 150 | pipeline.spec.description.metadata.userDefined.update( |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | pyproject.toml | 19 | # For comprehensive documentation and usage instructions, visit: https://docs.ultralytics.com |
| MEDIUM | tests/test_python.py | 495 | # Test smart_value() with comprehensive cases |
| MEDIUM | ultralytics/utils/__init__.py | 613 | """Load YAML file to Python object with robust error handling. |
| MEDIUM | ultralytics/utils/autodevice.py | 13 | """Manages NVIDIA GPU information via pynvml with robust error handling. |
| MEDIUM | ultralytics/utils/callbacks/platform.py | 271 | """Collect comprehensive environment info using existing ultralytics utilities.""" |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | ultralytics/models/sam/modules/tiny_encoder.py | 3 | # -------------------------------------------------------- |
| MEDIUM | ultralytics/models/sam/modules/tiny_encoder.py | 10 | # -------------------------------------------------------- |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | docs/en/platform/api/index.md | 1571 | "name": "Jane Doe", |
| LOW | docs/en/platform/api/index.md | 1573 | "line1": "123 Main St", |
| LOW | docs/en/platform/api/index.md | 1804 | "email": "user@example.com", |
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | ultralytics/engine/exporter.py | 61 | $ cd .. && git clone https://github.com/zldrobit/tfjs-yolov5-example.git && cd tfjs-yolov5-example |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | ultralytics/hub/google/__init__.py | 171 | # Usage example |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | ultralytics/utils/__init__.py | 512 | ... def my_function(): |
| LOW | ultralytics/utils/__init__.py | 1140 | ... def process_data(data): |