MCPcopy Create free account

hub / github.com/chips96/DEYOLO / functions

Functions1,029 in github.com/chips96/DEYOLO

↓ 144 callersMethodinfo
Logs model info. Args: detailed (bool): Show detailed information about model. verbose (bool): Controls verb
ultralytics/yolo/engine/model.py:196
↓ 113 callersMethodget
Return the value of the specified key if it exists; otherwise, return the default value.
ultralytics/yolo/utils/__init__.py:163
↓ 106 callersMethodappend
Appends a new transform to the existing list of transforms.
ultralytics/yolo/data/augment.py:61
↓ 42 callersFunctioncolorstr
Colors a string https://en.wikipedia.org/wiki/ANSI_escape_code, i.e. colorstr('blue', 'hello world').
ultralytics/yolo/utils/__init__.py:555
↓ 40 callersMethodto
Sends the model to the given device. Args: device (str): device
ultralytics/yolo/engine/model.py:352
↓ 38 callersMethodinfo
Prints model information Args: verbose (bool): if True, prints out the model information. Defaults to False
ultralytics/nn/tasks.py:172
↓ 35 callersMethodcpu
Return a copy of the Results object with all tensors on CPU memory.
ultralytics/yolo/engine/results.py:137
↓ 34 callersMethodconcatenate
Concatenate a list of Bboxes objects into a single Bboxes object. Args: boxes_list (List[Bboxes]): A list of Bboxes obje
ultralytics/yolo/utils/instance.py:135
↓ 32 callersMethodtime
Get current time.
ultralytics/yolo/utils/ops.py:49
↓ 29 callersMethodnumpy
Return a copy of the Results object with all tensors as numpy arrays.
ultralytics/yolo/engine/results.py:141
↓ 28 callersMethodtolist
Converts list of transforms to a standard Python list.
ultralytics/yolo/data/augment.py:65
↓ 26 callersFunctioncheck_requirements
Check if installed dependencies meet YOLOv8 requirements and attempt to auto-update if needed. Args: requirements (Union[Path, str,
ultralytics/yolo/utils/checks.py:201
↓ 22 callersMethodsave
Save detection results with optional labels to specified directory.
ultralytics/nn/autoshape.py:197
↓ 19 callersMethodclip
Clips bounding boxes, segments, and keypoints values to stay within image boundaries.
ultralytics/yolo/utils/instance.py:316
↓ 19 callersMethodkeys
Returns a list of keys for accessing specific metrics.
ultralytics/yolo/utils/metrics.py:684
↓ 18 callersMethodfrom_numpy
Convert a numpy array to a tensor. Args: x (np.ndarray): The array to be converted. Returns: (
ultralytics/nn/autobackend.py:411
↓ 16 callersMethod__init__
(self, c1, c2, n=1)
ultralytics/nn/modules/block.py:141
↓ 15 callersFunctioncheck_version
Check current version against the required minimum version. Args: current (str): Current version. minimum (str): Required mi
ultralytics/yolo/utils/checks.py:92
↓ 15 callersMethodload
Transfers parameters with matching names and shapes from 'weights' to model.
ultralytics/yolo/engine/model.py:186
↓ 14 callersFunctionemojis
Return platform-dependent emoji-safe version of string.
ultralytics/yolo/utils/__init__.py:229
↓ 14 callersMethodupdate
Args: results (tuple): A tuple of (p, r, ap, f1, ap_class)
ultralytics/yolo/utils/metrics.py:624
↓ 13 callersMethodrun_callbacks
Run all existing callbacks associated with a particular event.
ultralytics/yolo/engine/trainer.py:166
↓ 13 callersFunctionyaml_load
Load YAML data from a file. Args: file (str, optional): File name. Default is 'data.yaml'. append_filename (bool): Add the Y
ultralytics/yolo/utils/__init__.py:283
↓ 11 callersMethodrectangle
Add rectangle to image (PIL-only).
ultralytics/yolo/utils/plotting.py:210
↓ 10 callersMethod__init__
(self, channel=512, kernel_size=80, reduction=16)
ultralytics/nn/modules/conv.py:261
↓ 10 callersMethodlabel_loss_items
Returns a loss dict with labelled training loss items tensor
ultralytics/yolo/engine/trainer.py:532
↓ 10 callersFunctionyaml_save
Save YAML data to a file. Args: file (str, optional): File name. Default is 'data.yaml'. data (dict): Data to save in YAML f
ultralytics/yolo/utils/__init__.py:255
↓ 9 callersMethod__init__
(self, input_dim, hidden_dim, output_dim, num_layers)
ultralytics/nn/modules/transformer.py:157
↓ 9 callersMethod_check_is_pytorch_model
Raises TypeError is model is not a PyTorch model
ultralytics/yolo/engine/model.py:160
↓ 9 callersMethodconvert_bbox
Convert bounding box format.
ultralytics/yolo/utils/instance.py:208
↓ 9 callersFunctionis_colab
Check if the current script is running inside a Google Colab notebook. Returns: (bool): True if running inside a Colab notebook, Fal
ultralytics/yolo/utils/__init__.py:329
↓ 9 callersMethodupdate
Update the boxes, masks, and probs attributes of the Results object.
ultralytics/yolo/engine/results.py:119
↓ 8 callersFunctionclean_url
Strip auth from URL, i.e. https://url.com/file.txt?auth -> https://url.com/file.txt.
ultralytics/yolo/utils/__init__.py:752
↓ 8 callersFunctionde_parallel
De-parallelize a model: returns single-GPU model if model is of type DP or DDP.
ultralytics/yolo/utils/torch_utils.py:304
↓ 8 callersMethodfromarray
Update self.im from a numpy array.
ultralytics/yolo/utils/plotting.py:243
↓ 8 callersFunctionget_cfg
Load and merge configuration data from a file or dictionary. Args: cfg (str | Path | Dict | SimpleNamespace): Configuration data.
ultralytics/yolo/cfg/__init__.py:102
↓ 8 callersMethodplot
Plot the confusion matrix using seaborn and save it to a file. Args: normalize (bool): Whether to normalize the confusio
ultralytics/yolo/utils/metrics.py:266
↓ 8 callersFunctionselect_device
Selects PyTorch Device. Options are device = None or 'cpu' or 0 or '0' or '0,1,2,3'.
ultralytics/yolo/utils/torch_utils.py:56
↓ 7 callersFunctionincrement_path
Increments a file or directory path, i.e. runs/exp --> runs/exp{sep}2, runs/exp{sep}3, ... etc. If the path exists and exist_ok is not set t
ultralytics/yolo/utils/files.py:28
↓ 7 callersMethodmean_results
Mean of results, return mp, mr, map50, map.
ultralytics/yolo/utils/metrics.py:603
↓ 7 callersFunctionsafe_download
Downloads files from a URL, with options for retrying, unzipping, and deleting the downloaded file. Args: url (str): The URL of the
ultralytics/yolo/utils/downloads.py:119
↓ 7 callersFunctionxywh2xyxy
Convert bounding box coordinates from (x, y, width, height) format to (x1, y1, x2, y2) format where (x1, y1) is the top-left corner and (x2,
ultralytics/yolo/utils/ops.py:366
↓ 6 callersMethodadd
Args: offset (tuple | list | int): the offset for four coords.
ultralytics/yolo/utils/instance.py:116
↓ 6 callersFunctioncheck_yaml
Search/download YAML file (if necessary) and return path, checking suffix.
ultralytics/yolo/utils/checks.py:309
↓ 6 callersMethodclass_result
class-aware result, return p[i], r[i], ap50[i], ap[i].
ultralytics/yolo/utils/metrics.py:607
↓ 6 callersMethoddevice
Returns device if PyTorch model.
ultralytics/yolo/engine/model.py:390
↓ 6 callersFunctionimg2label_paths
Define label paths as a function of image paths.
ultralytics/yolo/data/dataloaders/v5loader.py:452
↓ 6 callersFunctionis_git_dir
Determines whether the current file is part of a git repository. If the current file is not part of a git repository, returns None. Retu
ultralytics/yolo/utils/__init__.py:454
↓ 6 callersFunctionletterbox
Resize and pad image while meeting stride-multiple constraints.
ultralytics/yolo/data/dataloaders/v5augmentations.py:115
↓ 6 callersFunctionmodel_info_for_loggers
Return model info dict with useful model information. Example for YOLOv8n: {'model/parameters': 3151904, 'model/GFLOPs': 8.
ultralytics/yolo/utils/torch_utils.py:197
↓ 6 callersFunctionplot_images
Plot image grid with labels.
ultralytics/yolo/utils/plotting.py:324
↓ 6 callersFunctionsmart_request
Makes an HTTP request using the 'requests' library, with exponential backoff retries up to a specified timeout. Args: method (str):
ultralytics/hub/utils.py:91
↓ 5 callersMethod_apply
(self, fn, *args, **kwargs)
ultralytics/yolo/engine/results.py:129
↓ 5 callersFunction_log_plots
(plots, step)
ultralytics/yolo/utils/callbacks/wb.py:16
↓ 5 callersFunction_log_plots
(plots, prefix='')
ultralytics/yolo/utils/callbacks/dvc.py:42
↓ 5 callersMethod_run
Return performance metrics and optionally cropped/save images or results.
ultralytics/nn/autoshape.py:147
↓ 5 callersFunctionap_per_class
Computes the average precision per class for object detection evaluation. Args: tp (np.ndarray): Binary array indicating whether the
ultralytics/yolo/utils/metrics.py:408
↓ 5 callersFunctioncheck_file
Search/download file (if necessary) and return path.
ultralytics/yolo/utils/checks.py:283
↓ 5 callersFunctioncheck_imgsz
Verify image size is a multiple of the given stride in each dimension. If the image size is not a multiple of the stride, update it to the ne
ultralytics/yolo/utils/checks.py:45
↓ 5 callersMethoddenormalize
Denormalizes boxes, segments, and keypoints from normalized coordinates.
ultralytics/yolo/utils/instance.py:228
↓ 5 callersMethodexport
Export model. Args: **kwargs : Any other args accepted by the predictors. To see all args check 'configuration' section
ultralytics/yolo/engine/model.py:294
↓ 5 callersFunctionexport_formats
YOLOv8 export formats.
ultralytics/yolo/engine/exporter.py:75
↓ 5 callersMethodfitness
Model fitness as a weighted combination of metrics.
ultralytics/yolo/utils/metrics.py:619
↓ 5 callersFunctionis_pip_package
Determines if the file at the given filepath is part of a pip package. Args: filepath (str): The filepath to check. Returns:
ultralytics/yolo/utils/__init__.py:402
↓ 5 callersFunctionmake_divisible
Returns nearest x divisible by divisor.
ultralytics/yolo/utils/torch_utils.py:273
↓ 5 callersMethodmul
Args: scale (tuple | list | int): the scale for four coords.
ultralytics/yolo/utils/instance.py:102
↓ 5 callersMethodprofile
(self)
ultralytics/yolo/utils/benchmarks.py:179
↓ 5 callersMethodrun_callbacks
Runs all registered callbacks for a specific event.
ultralytics/yolo/engine/predictor.py:416
↓ 5 callersFunctiontime_sync
PyTorch-accurate time.
ultralytics/yolo/utils/torch_utils.py:107
↓ 5 callersFunctionxyxy2xywh
Convert bounding box coordinates from (x1, y1, x2, y2) format to (x, y, width, height) format. Args: x (np.ndarray | torch.Tensor):
ultralytics/yolo/utils/ops.py:349
↓ 4 callersMethod__init__
(self, dataset, pre_transform=None, p=0.0)
ultralytics/yolo/data/augment.py:285
↓ 4 callersMethod__init__
(self, c1, c2, kernel=3, stride=1)
ultralytics/nn/modules/BiFocus.py:51
↓ 4 callersFunction_log_images
Logs images to the experiment with optional annotations.
ultralytics/yolo/utils/callbacks/comet.py:211
↓ 4 callersFunctionattempt_load_one_weight
Loads a single model weights.
ultralytics/nn/tasks.py:405
↓ 4 callersFunctioncheck_cfg_mismatch
This function checks for any mismatched keys between a custom configuration list and a base configuration list. If any mismatched keys are fo
ultralytics/yolo/cfg/__init__.py:172
↓ 4 callersMethodconvert
Converts bounding box format from one type to another.
ultralytics/yolo/utils/instance.py:67
↓ 4 callersFunctionexport_fmts_hub
Returns a list of HUB-supported export formats.
ultralytics/hub/__init__.py:66
↓ 4 callersFunctionfile_size
Return file/dir size (MB).
ultralytics/yolo/utils/files.py:75
↓ 4 callersMethodfliplr
Reverses the order of the bounding boxes and segments horizontally.
ultralytics/yolo/utils/instance.py:303
↓ 4 callersFunctionguess_model_task
Guess the task of a PyTorch model from its architecture or configuration. Args: model (nn.Module | dict): PyTorch model or model con
ultralytics/nn/tasks.py:599
↓ 4 callersFunctionis_dir_writeable
Check if a directory is writeable. Args: dir_path (str | Path): The path to the directory. Returns: (bool): True if the
ultralytics/yolo/utils/__init__.py:421
↓ 4 callersFunctionis_kaggle
Check if the current script is running inside a Kaggle kernel. Returns: (bool): True if running inside a Kaggle kernel, False otherw
ultralytics/yolo/utils/__init__.py:339
↓ 4 callersMethodload
Load the weights into the model. Args: weights (dict | torch.nn.Module): The pre-trained weights to be loaded. verbos
ultralytics/nn/tasks.py:201
↓ 4 callersMethodnew
Return a new Results object with the same image, path, and names.
ultralytics/yolo/engine/results.py:153
↓ 4 callersMethodrun_callbacks
Runs all callbacks associated with a specified event.
ultralytics/yolo/engine/validator.py:207
↓ 4 callersMethodtext
Adds text to an image using PIL or cv2.
ultralytics/yolo/utils/plotting.py:214
↓ 4 callersFunctiontorch_distributed_zero_first
Decorator to make all processes in distributed training wait for each local_master to do something.
ultralytics/yolo/utils/torch_utils.py:36
↓ 4 callersMethodtrain
Trains the model on a given dataset. Args: **kwargs (Any): Any number of arguments representing the training configurati
ultralytics/yolo/engine/model.py:313
↓ 4 callersMethodtransforms
Returns transform of the loaded model.
ultralytics/yolo/engine/model.py:395
↓ 4 callersMethodupdate
Read stream `i` frames in daemon thread.
ultralytics/yolo/data/dataloaders/v5loader.py:409
↓ 4 callersFunctionurl2file
Convert URL to filename, i.e. https://url.com/file.txt?auth -> file.txt.
ultralytics/yolo/utils/__init__.py:758
↓ 4 callersFunctionxywhn2xyxy
Convert normalized bounding box coordinates to pixel coordinates. Args: x (np.ndarray | torch.Tensor): The bounding box coordinates.
ultralytics/yolo/utils/ops.py:384
↓ 3 callersMethod__init__
Initialize the BboxLoss module with regularization maximum and DFL settings.
ultralytics/yolo/utils/loss.py:57
↓ 3 callersMethod__init__
Initialize the Boxes class.
ultralytics/yolo/engine/results.py:381
↓ 3 callersMethod__str__
Return a human-readable string representation of the object.
ultralytics/yolo/utils/__init__.py:115
↓ 3 callersFunction_fetch_trainer_metadata
Returns metadata for YOLO training including epoch and asset saving status.
ultralytics/yolo/utils/callbacks/comet.py:84
↓ 3 callersMethod_fuse_bn_tensor
(self, branch)
ultralytics/nn/modules/conv.py:193
↓ 3 callersFunction_log_scalars
Log scalars to the NeptuneAI experiment logger.
ultralytics/yolo/utils/callbacks/neptune.py:21
↓ 3 callersFunctionattempt_download_asset
Attempt file download from GitHub release assets if not found locally. release = 'latest', 'v6.2', etc.
ultralytics/yolo/utils/downloads.py:212
↓ 3 callersMethodauthenticate
Attempt to authenticate with the server using either id_token or API key. Returns: bool: True if authentication is succe
ultralytics/hub/auth.py:68
next →1–100 of 1,029, ranked by callers