MCPcopy Create free account

hub / github.com/chips96/DEYOLO / functions

Functions1,029 in github.com/chips96/DEYOLO

↓ 1 callersMethodinit_criterion
(self)
ultralytics/nn/tasks.py:229
↓ 1 callersMethodinit_metrics
Initialize performance metrics for the YOLO model.
ultralytics/yolo/engine/validator.py:228
↓ 1 callersFunctioninit_seeds
Initialize random number generator (RNG) seeds https://pytorch.org/docs/stable/notes/randomness.html.
ultralytics/yolo/utils/torch_utils.py:314
↓ 1 callersFunctioninitialize_weights
Initialize model weights to random values.
ultralytics/yolo/utils/torch_utils.py:248
↓ 1 callersFunctionintersect_dicts
Returns a dictionary of intersecting keys with matching shapes, excluding 'exclude' keys, using da values.
ultralytics/yolo/utils/torch_utils.py:294
↓ 1 callersMethodis_fused
Check if the model has less than a certain threshold of BatchNorm layers. Args: thresh (int, optional): The threshold nu
ultralytics/nn/tasks.py:159
↓ 1 callersFunctionis_github_actions_ci
Determine if the current environment is a GitHub Actions CI Python runner. Returns: (bool): True if the current environment is a Git
ultralytics/yolo/utils/__init__.py:444
↓ 1 callersMethodis_hub_model
Check if the provided model is a HUB model.
ultralytics/yolo/engine/model.py:111
↓ 1 callersFunctionis_parallel
Returns True if model is of type DP or DDP.
ultralytics/yolo/utils/torch_utils.py:299
↓ 1 callersFunctionis_pytest_running
Determines whether pytest is currently running or not. Returns: (bool): True if pytest is running, False otherwise.
ultralytics/yolo/utils/__init__.py:434
↓ 1 callersFunctionis_url
Check if string is URL and check if URL exists.
ultralytics/yolo/utils/downloads.py:28
↓ 1 callersMethodload_image
Loads 1 image from dataset index 'i', returns (im, resized hw).
ultralytics/yolo/data/base.py:155
↓ 1 callersMethodload_image2
Loads 1 image from dataset index 'i', returns (im, resized hw).
ultralytics/yolo/data/base.py:184
↓ 1 callersMethodload_image2
Loads 1 image from dataset index 'i', returns (im, original hw, resized hw).
ultralytics/yolo/data/dataloaders/v5loader.py:886
↓ 1 callersFunctionload_inference_source
Loads an inference source for object detection and applies necessary transformations. Args: source (str, Path, Tensor, PIL.Image, np
ultralytics/yolo/data/build.py:140
↓ 1 callersFunctionltwh2xywh
Convert nx4 boxes from [x1, y1, w, h] to [x, y, w, h] where xy1=top-left, xy=center Args: x (torch.Tensor): the input tensor
ultralytics/yolo/utils/ops.py:479
↓ 1 callersFunctionltwh2xyxy
It converts the bounding box from [x1, y1, w, h] to [x1, y1, x2, y2] where xy1=top-left, xy2=bottom-right Args: x (np.ndarray | torch.
ultralytics/yolo/utils/ops.py:492
↓ 1 callersFunctionmain
()
docs/build_reference.py:98
↓ 1 callersFunctionmain
(onnx_model, input_image)
examples/YOLOv8-OpenCV-ONNX-Python/main.py:21
↓ 1 callersMethodmain
Performs inference using an ONNX model and returns the output image with drawn detections. Returns: output_img: The outp
examples/YOLOv8-ONNXRuntime/main.py:176
↓ 1 callersFunctionmake_dirs
(dir='new_dir/')
ultralytics/yolo/utils/files.py:93
↓ 1 callersFunctionmake_divisible
Returns the nearest number that is divisible by the given divisor. Args: x (int): The number to make divisible. divisor (int
ultralytics/yolo/utils/ops.py:120
↓ 1 callersMethodmap
Returns the mean Average Precision (mAP) over IoU thresholds of 0.5 - 0.95 in steps of 0.05. Returns: (float): The mAP o
ultralytics/yolo/utils/metrics.py:594
↓ 1 callersMethodmasks
Plot masks on image. Args: masks (tensor): Predicted masks on cuda, shape: [n, h, w] colors (List[List[Int]]
ultralytics/yolo/utils/plotting.py:126
↓ 1 callersMethodmean_results
Calculate mean of detected objects & return precision, recall, mAP50, and mAP50-95.
ultralytics/yolo/utils/metrics.py:688
↓ 1 callersMethodmean_results
Return the mean metrics for bounding box and segmentation results.
ultralytics/yolo/utils/metrics.py:797
↓ 1 callersFunctionmerge_equals_args
Merges arguments around isolated '=' args in a list of strings. The function considers cases where the first argument ends with '=' or the se
ultralytics/yolo/cfg/__init__.py:194
↓ 1 callersFunctionmerge_multi_segment
Merge multiple segments into one list by connecting the coordinates with the minimum distance between each segment. This function connects th
ultralytics/yolo/data/converter.py:161
↓ 1 callersFunctionmin_index
Find a pair of indexes with the shortest distance between two arrays of 2D points. Args: arr1 (np.array): A NumPy array of shape (N,
ultralytics/yolo/data/converter.py:146
↓ 1 callersFunctionmodel_info
Model information. imgsz may be int or list, i.e. imgsz=640 or imgsz=[640, 320].
ultralytics/yolo/utils/torch_utils.py:163
↓ 1 callersFunctionmulti_scale_deformable_attn_pytorch
Multi-scale deformable attention. https://github.com/IDEA-Research/detrex/blob/main/detrex/layers/multi_scale_deform_attn.py
ultralytics/nn/modules/utils.py:41
↓ 1 callersFunctionnested_dict
()
docs/build_reference.py:57
↓ 1 callersFunctionnon_max_suppression
Perform non-maximum suppression (NMS) on a set of boxes, with support for masks and multiple labels per box. Arguments: prediction (
ultralytics/yolo/utils/ops.py:136
↓ 1 callersFunctionone_cycle
Returns a lambda function for sinusoidal ramp from y1 to y2 https://arxiv.org/pdf/1812.01187.pdf.
ultralytics/yolo/utils/torch_utils.py:309
↓ 1 callersMethodoptimizer_step
Perform a single step of the training optimizer with gradient clipping and EMA update.
ultralytics/yolo/engine/trainer.py:488
↓ 1 callersFunctionparse_model
(d, ch, ch2, verbose=True)
ultralytics/nn/tasks.py:432
↓ 1 callersFunctionplot_labels
Save and plot image with no axis or spines.
ultralytics/yolo/utils/plotting.py:256
↓ 1 callersMethodplot_metrics
Plot and display metrics visually.
ultralytics/yolo/engine/trainer.py:570
↓ 1 callersFunctionplot_pr_curve
Plots a precision-recall curve.
ultralytics/yolo/utils/metrics.py:326
↓ 1 callersMethodplot_predictions
Plots YOLO model predictions on batch images.
ultralytics/yolo/engine/validator.py:270
↓ 1 callersFunctionplot_results
Plot training results.csv. Usage: from utils.plots import *; plot_results('path/to/results.csv').
ultralytics/yolo/utils/plotting.py:456
↓ 1 callersMethodplot_training_labels
Plots training labels for YOLO model.
ultralytics/yolo/engine/trainer.py:558
↓ 1 callersMethodplot_training_samples
Plots training samples during YOLOv5 training.
ultralytics/yolo/engine/trainer.py:554
↓ 1 callersMethodplot_val_samples
Plots validation samples during training.
ultralytics/yolo/engine/validator.py:266
↓ 1 callersFunctionpolygons2masks
Args: imgsz (tuple): The image size. polygons (list[np.ndarray]): each polygon is [N, M], N is number of polygons, M is number of
ultralytics/yolo/data/utils.py:175
↓ 1 callersFunctionpolygons2masks_overlap
Return a (640, 640) overlap mask.
ultralytics/yolo/data/utils.py:190
↓ 1 callersMethodpostprocess
Describes and summarizes the purpose of 'postprocess()' but no details mentioned.
ultralytics/yolo/engine/validator.py:224
↓ 1 callersMethodpostprocess
Performs post-processing on the model's output to extract bounding boxes, scores, and class IDs. Args: input_image (nump
examples/YOLOv8-ONNXRuntime/main.py:106
↓ 1 callersMethodpred_to_json
Serialize YOLO predictions to COCO json format.
ultralytics/yolo/v8/detect/val.py:240
↓ 1 callersFunctionpredict
Runs YOLO model inference on input image(s).
ultralytics/yolo/v8/detect/predict.py:32
↓ 1 callersMethodpreprocess
Preprocesses the target counts and matches with the input batch size to output a tensor.
ultralytics/yolo/utils/loss.py:129
↓ 1 callersMethodpreprocess
Prepares input image before inference. Args: im (torch.Tensor | List(np.ndarray)): BCHW for tensor, [(HWC) x B] for list.
ultralytics/yolo/engine/predictor.py:120
↓ 1 callersMethodpreprocess
Preprocesses an input batch.
ultralytics/yolo/engine/validator.py:220
↓ 1 callersMethodpreprocess
Preprocesses the input image before performing inference. Returns: image_data: Preprocessed image data ready for inferen
examples/YOLOv8-ONNXRuntime/main.py:75
↓ 1 callersMethodpreprocess_batch
Allows custom preprocessing model inputs and ground truths depending on task type.
ultralytics/yolo/engine/trainer.py:498
↓ 1 callersFunctionprint_args
Print function arguments (optional args dict).
ultralytics/yolo/utils/checks.py:413
↓ 1 callersMethodprint_results
Prints the results of the model's predictions.
ultralytics/yolo/engine/validator.py:248
↓ 1 callersMethodprint_table
(self, table_rows)
ultralytics/yolo/utils/benchmarks.py:342
↓ 1 callersMethodprocess
Process predicted results for object detection and update metrics.
ultralytics/yolo/utils/metrics.py:670
↓ 1 callersFunctionprofile
YOLOv8 speed/memory/FLOPs profiler Usage: input = torch.randn(16, 3, 640, 640) m1 = lambda x: x * torch.sigmoid(x) m
ultralytics/yolo/utils/torch_utils.py:410
↓ 1 callersMethodprofile_onnx_model
(self, onnx_file: str)
ultralytics/yolo/utils/benchmarks.py:277
↓ 1 callersMethodprofile_tensorrt_model
(self, engine_file: str)
ultralytics/yolo/utils/benchmarks.py:249
↓ 1 callersMethodprogress_string
Returns a string describing training progress.
ultralytics/yolo/engine/trainer.py:549
↓ 1 callersMethodremove_zero_area_boxes
Remove zero-area boxes, i.e. after clipping some boxes may have zero width or height. This removes them.
ultralytics/yolo/utils/instance.py:330
↓ 1 callersMethodrequest_api_key
Prompt the user to input their API key. Returns the model ID.
ultralytics/hub/auth.py:55
↓ 1 callersFunctionrequest_with_credentials
Make an AJAX request with cookies attached in a Google Colab environment. Args: url (str): The URL to make the request to. Retu
ultralytics/hub/utils.py:23
↓ 1 callersFunctionrequests_with_progress
Make an HTTP request using the specified method and URL, with an optional progress bar. Args: method (str): The HTTP method to use (
ultralytics/hub/utils.py:60
↓ 1 callersMethodreset
Reset iterator. This is useful when we want to modify settings of dataset while training.
ultralytics/yolo/data/build.py:40
↓ 1 callersMethodresume_training
Resume YOLO training from given epoch and best fitness.
ultralytics/yolo/engine/trainer.py:610
↓ 1 callersFunctionrle2polygon
Convert Run-Length Encoding (RLE) mask to polygon coordinates. Args: segmentation (dict, list): RLE mask representation of the objec
ultralytics/yolo/data/converter.py:118
↓ 1 callersMethodrunInference
examples/YOLOv8-CPP-Inference/inference.cpp:14
↓ 1 callersFunctionrun_ray_tune
Runs hyperparameter tuning using Ray Tune. Args: model (YOLO): Model to run the tuner on. space (dict, optional): The hyperp
ultralytics/yolo/utils/tuner.py:6
↓ 1 callersMethodsave_metrics
Saves training metrics to a CSV file.
ultralytics/yolo/engine/trainer.py:562
↓ 1 callersMethodsave_model
Save model checkpoints based on various conditions.
ultralytics/yolo/engine/trainer.py:437
↓ 1 callersMethodsave_one_txt
Save YOLO detections to a txt file in normalized coordinates in a specific format.
ultralytics/yolo/v8/detect/val.py:231
↓ 1 callersMethodsave_preds
Save video predictions as mp4 at specified path.
ultralytics/yolo/engine/predictor.py:391
↓ 1 callersFunctionscale_boxes
Rescales bounding boxes (in the format of xyxy) from the shape of the image they were originally specified in (img1_shape) to the shape of a
ultralytics/yolo/utils/ops.py:90
↓ 1 callersFunctionscale_img
(img, ratio=1.0, same_shape=False, gs=32)
ultralytics/yolo/utils/torch_utils.py:261
↓ 1 callersFunctionselect_candidates_in_gts
select the positive anchor center in gt Args: xy_centers (Tensor): shape(h*w, 4) gt_bboxes (Tensor): shape(b, n_boxes, 4) Ret
ultralytics/yolo/utils/tal.py:12
↓ 1 callersFunctionselect_highest_overlaps
if an anchor box is assigned to multiple gts, the one with the highest iou will be selected. Args: mask_pos (Tensor): shape(b, n_
ultralytics/yolo/utils/tal.py:29
↓ 1 callersMethodselect_topk_candidates
Select the top-k candidates based on the given metrics. Args: metrics (Tensor): A tensor of shape (b, max_num_obj, h*w),
ultralytics/yolo/utils/tal.py:162
↓ 1 callersFunctionset_logging
Sets up logging for the given name.
ultralytics/yolo/utils/__init__.py:207
↓ 1 callersMethodset_model_attributes
To set or update model parameters before training.
ultralytics/yolo/engine/trainer.py:539
↓ 1 callersMethodset_rectangle
Sets the shape of bounding boxes for YOLO detections as rectangles.
ultralytics/yolo/data/base.py:293
↓ 1 callersFunctionset_sentry
Initialize the Sentry SDK for error tracking and reporting. Only used if sentry_sdk package is installed and sync=True in settings. Run 'yolo
ultralytics/yolo/utils/__init__.py:612
↓ 1 callersFunctionset_settings
Function that runs on a first-time ultralytics package installation to set up global settings and create necessary directories.
ultralytics/yolo/utils/__init__.py:735
↓ 1 callersMethodsetup_model
Initialize YOLO model with given parameters and set it to evaluation mode.
ultralytics/yolo/engine/predictor.py:366
↓ 1 callersMethodsetup_source
Sets up source and inference mode.
ultralytics/yolo/engine/predictor.py:249
↓ 1 callersMethodshow
Displays YOLO results with detected bounding boxes.
ultralytics/nn/autoshape.py:193
↓ 1 callersFunctionsort_nested_dict
(d)
docs/build_reference.py:61
↓ 1 callersFunctionstart
Start training models with Ultralytics HUB (DEPRECATED). Args: key (str, optional): A string containing either the API key and model
ultralytics/hub/__init__.py:38
↓ 1 callersFunctionstrip_auth
Clean longer Ultralytics HUB URLs by stripping potential authentication information.
ultralytics/yolo/utils/checks.py:416
↓ 1 callersFunctionstrip_optimizer
Strip optimizer from 'f' to finalize training, optionally save as 's'. Args: f (str): file path to model to strip the optimizer from
ultralytics/yolo/utils/torch_utils.py:370
↓ 1 callersMethodtolist
Return a list of Detections objects, i.e. 'for result in results.tolist():'.
ultralytics/nn/autoshape.py:223
↓ 1 callersFunctiontrain
Train and optimize YOLO model given training data and device.
ultralytics/yolo/v8/detect/train.py:120
↓ 1 callersMethodtrain
Allow device='', device=None on Multi-GPU systems to default to device=0.
ultralytics/yolo/engine/trainer.py:171
↓ 1 callersMethodupdate_attr
Updates attributes and saves stripped model with optimizer removed.
ultralytics/yolo/utils/torch_utils.py:364
↓ 1 callersMethodupdate_labels
include_class, filter labels to include only these classes (optional).
ultralytics/yolo/data/base.py:136
↓ 1 callersMethodupdate_labels_info
custom your label format here.
ultralytics/yolo/data/base.py:341
↓ 1 callersMethodupdate_metrics
Updates metrics based on predictions and batch.
ultralytics/yolo/engine/validator.py:232
← previousnext →401–500 of 1,029, ranked by callers