MCPcopy Create free account

hub / github.com/chips96/DEYOLO / functions

Functions1,029 in github.com/chips96/DEYOLO

↓ 3 callersFunctionbbox_ioa
Calculate the intersection over box2 area given box1 and box2. Boxes are in x1y1x2y2 format. Args: box1 (np.array): A numpy array of
ultralytics/yolo/utils/metrics.py:18
↓ 3 callersFunctionbox_iou
Calculate intersection-over-union (IoU) of boxes. Both sets of boxes are expected to be in (x1, y1, x2, y2) format. Based on https://gith
ultralytics/yolo/utils/metrics.py:50
↓ 3 callersMethodbox_label
Add one xyxy box to image with label.
ultralytics/yolo/utils/plotting.py:94
↓ 3 callersFunctioncheck_class_names
Check class names. Map imagenet class codes to human-readable names if required. Convert lists to dicts.
ultralytics/nn/autobackend.py:24
↓ 3 callersFunctioncheck_det_dataset
Download, check and/or unzip dataset if not found locally.
ultralytics/yolo/data/utils.py:210
↓ 3 callersFunctioncheck_suffix
Check file(s) for acceptable suffix.
ultralytics/yolo/utils/checks.py:258
↓ 3 callersFunctionclip_boxes
It takes a list of bounding boxes and a shape (height, width) and clips the bounding boxes to the shape Args: boxes (torch.Tensor)
ultralytics/yolo/utils/ops.py:273
↓ 3 callersFunctioncrop_mask
It takes a mask and a bounding box, and returns a mask that is cropped to the bounding box Args: masks (torch.Tensor): [h, w, n] tenso
ultralytics/yolo/utils/ops.py:545
↓ 3 callersFunctiondeprecation_warn
Issue a deprecation warning when a deprecated argument is used, suggesting an updated argument.
ultralytics/yolo/utils/__init__.py:744
↓ 3 callersMethodexport_onnx
YOLOv8 ONNX export.
ultralytics/yolo/engine/exporter.py:300
↓ 3 callersMethodflipud
Flips the coordinates of bounding boxes, segments, and keypoints vertically.
ultralytics/yolo/utils/instance.py:290
↓ 3 callersMethodforward
Function generates the YOLOv5 network's final layer.
ultralytics/nn/tasks.py:318
↓ 3 callersMethodfuse
Fuse the `Conv2d()` and `BatchNorm2d()` layers of the model into a single layer, in order to improve the computation efficiency.
ultralytics/nn/tasks.py:132
↓ 3 callersFunctionget_github_assets
Return GitHub repo tag and assets (i.e. ['yolov8n.pt', 'yolov8s.pt', ...]).
ultralytics/yolo/utils/downloads.py:204
↓ 3 callersFunctionget_hash
Returns a single hash value of a list of paths (files or dirs).
ultralytics/yolo/data/dataloaders/v5loader.py:52
↓ 3 callersFunctionis_ascii
Check if a string is composed of only ASCII characters. Args: s (str): String to be checked. Returns: bool: True if the
ultralytics/yolo/utils/checks.py:28
↓ 3 callersFunctionis_online
Check internet connectivity by attempting to connect to a known online host. Returns: (bool): True if connection is successful, Fals
ultralytics/yolo/utils/__init__.py:378
↓ 3 callersMethodload_image
Loads 1 image from dataset index 'i', returns (im, original hw, resized hw).
ultralytics/yolo/data/dataloaders/v5loader.py:869
↓ 3 callersMethodnormalize
Normalize bounding boxes, segments, and keypoints to image dimensions.
ultralytics/yolo/utils/instance.py:240
↓ 3 callersMethodplot
Plots the detection results on an input RGB image. Accepts a numpy array (cv2) or a PIL Image. Args: conf (bool): Whethe
ultralytics/yolo/engine/results.py:157
↓ 3 callersFunctionplot_mc_curve
Plots a metric-confidence curve.
ultralytics/yolo/utils/metrics.py:351
↓ 3 callersMethodpre_transform
Pre-transform input image before inference. Args: im (List(np.ndarray)): (N, 3, h, w) for tensor, [(h, w, 3) x N] for list.
ultralytics/yolo/engine/predictor.py:148
↓ 3 callersMethodpredict
Perform prediction using the YOLO model. Args: source (str | int | PIL | np.ndarray): The source of the image to make pr
ultralytics/yolo/engine/model.py:213
↓ 3 callersMethodpredict
Perform a forward pass through the network. Args: x1 (torch.Tensor): The input visible tensor to the model.
ultralytics/nn/tasks.py:48
↓ 3 callersMethodscale
this might be similar with denormalize func but without normalized sign.
ultralytics/yolo/utils/instance.py:217
↓ 3 callersMethodstream_inference
Streams real-time inference on camera feed and saves results to file.
ultralytics/yolo/engine/predictor.py:263
↓ 2 callersFunctionBlobFromImage
examples/YOLOv8-ONNXRuntime-CPP/inference.cpp:20
↓ 2 callersFunctionPostProcess
examples/YOLOv8-ONNXRuntime-CPP/inference.cpp:40
↓ 2 callersMethod__init__
(self, *args, data=None, use_segments=False, use_keypoints=False, **kwargs)
ultralytics/yolo/data/dataset.py:34
↓ 2 callersMethod__init__
Initialize instance variables and check for valid input.
ultralytics/yolo/data/dataloaders/v5loader.py:257
↓ 2 callersMethod__init__
Initialize ToTensor class for YOLOv5 image preprocessing.
ultralytics/yolo/data/dataloaders/v5augmentations.py:397
↓ 2 callersMethod__init__
(self, channel=512, kernel_size=80, p_kernel=None, m_kernel=None, reduction=16)
ultralytics/nn/modules/DEA.py:14
↓ 2 callersMethod__str__
(self)
ultralytics/nn/autoshape.py:239
↓ 2 callersMethod_add_tflite_metadata
Add metadata to *.tflite models per https://www.tensorflow.org/lite/models/convert/metadata.
ultralytics/yolo/engine/exporter.py:699
↓ 2 callersMethod_cat_labels
Return labels with mosaic border instances clipped.
ultralytics/yolo/data/augment.py:257
↓ 2 callersMethod_format_img
Format the image for YOLOv5 from Numpy array to PyTorch tensor.
ultralytics/yolo/data/augment.py:790
↓ 2 callersFunction_get_eval_batch_logging_interval
()
ultralytics/yolo/utils/callbacks/comet.py:35
↓ 2 callersFunction_get_max_image_predictions_to_log
()
ultralytics/yolo/utils/callbacks/comet.py:39
↓ 2 callersFunction_log_confusion_matrix
Log the confusion matrix to Comet experiment.
ultralytics/yolo/utils/callbacks/comet.py:198
↓ 2 callersFunction_log_debug_samples
Log files (images) as debug samples in the ClearML task. Args: files (list): A list of file paths in PosixPath format. title
ultralytics/yolo/utils/callbacks/clearml.py:23
↓ 2 callersFunction_log_image_predictions
Logs predicted boxes for a single image during training.
ultralytics/yolo/utils/callbacks/comet.py:222
↓ 2 callersFunction_log_images
Log scalars to the NeptuneAI experiment logger.
ultralytics/yolo/utils/callbacks/neptune.py:28
↓ 2 callersFunction_log_model
Log the best-trained model to Comet.ml.
ultralytics/yolo/utils/callbacks/comet.py:276
↓ 2 callersFunction_log_scalars
Logs scalar values to TensorBoard.
ultralytics/yolo/utils/callbacks/tensorboard.py:15
↓ 2 callersMethod_new_video
Create a new video capture object.
ultralytics/yolo/data/dataloaders/v5loader.py:339
↓ 2 callersMethod_new_video
Create a new video capture object.
ultralytics/yolo/data/dataloaders/stream_loaders.py:229
↓ 2 callersMethod_predict_once
Perform a forward pass through the network. Args: x1 (torch.Tensor): The input visible tensor to the model.
ultralytics/nn/tasks.py:66
↓ 2 callersFunction_scale_confidence_score
(score)
ultralytics/yolo/utils/callbacks/comet.py:43
↓ 2 callersFunction_should_log_confusion_matrix
()
ultralytics/yolo/utils/callbacks/comet.py:48
↓ 2 callersFunction_should_log_image_predictions
()
ultralytics/yolo/utils/callbacks/comet.py:52
↓ 2 callersMethod_update_labels
Update labels.
ultralytics/yolo/data/augment.py:249
↓ 2 callersMethodadd_padding
Handle rect and mosaic situation.
ultralytics/yolo/utils/instance.py:252
↓ 2 callersFunctionattempt_load_weights
Loads an ensemble of models weights=[a,b,c] or a single model weights=[a] or weights=a.
ultralytics/nn/tasks.py:365
↓ 2 callersFunctionautopad
Pad to 'same' shape outputs.
ultralytics/nn/modules/conv.py:17
↓ 2 callersFunctionbbox_iou
Calculate Intersection over Union (IoU) of box1(1, 4) to box2(n, 4). Args: box1 (torch.Tensor): A tensor representing a single bound
ultralytics/yolo/utils/metrics.py:73
↓ 2 callersFunctionbenchmark
Benchmark a YOLO model across different formats for speed and accuracy. Args: model (str | Path | optional): Path to the model file
ultralytics/yolo/utils/benchmarks.py:46
↓ 2 callersFunctionbuild_dataloader
Return an InfiniteDataLoader or DataLoader for training or validation set.
ultralytics/yolo/data/build.py:95
↓ 2 callersFunctionbuild_yolo_dataset
Build YOLO Dataset
ultralytics/yolo/data/build.py:72
↓ 2 callersMethodcache_labels
Cache labels and save as numpy file for next time.
ultralytics/yolo/data/dataloaders/v5loader.py:749
↓ 2 callersFunctioncfg2dict
Convert a configuration object to a dictionary, whether it is a file path, a string, or a SimpleNamespace object. Args: cfg (str | P
ultralytics/yolo/cfg/__init__.py:85
↓ 2 callersFunctioncfg2task
Guess from YAML dictionary.
ultralytics/nn/tasks.py:613
↓ 2 callersMethodcheck_cache_ram
Check image caching requirements vs available memory.
ultralytics/yolo/data/base.py:257
↓ 2 callersFunctioncheck_cls_dataset
Check a classification dataset such as Imagenet. This function takes a `dataset` name as input and returns a dictionary containing informati
ultralytics/yolo/data/utils.py:308
↓ 2 callersFunctioncheck_font
Find font locally or download to user's configuration directory if it does not already exist. Args: font (str): Path or name of font
ultralytics/yolo/utils/checks.py:158
↓ 2 callersFunctioncheck_source
Check source type and return corresponding flag values.
ultralytics/yolo/data/build.py:114
↓ 2 callersFunctionclassify_transforms
(size=224, mean=(0.0, 0.0, 0.0), std=(1.0, 1.0, 1.0))
ultralytics/yolo/data/augment.py:844
↓ 2 callersMethodclose_mosaic
Sets mosaic, copy_paste and mixup options to 0.0 and builds transformations.
ultralytics/yolo/data/dataset.py:174
↓ 2 callersFunctioncopy_attr
Copies attributes from object 'b' to object 'a', with options to include/exclude certain attributes.
ultralytics/yolo/utils/torch_utils.py:280
↓ 2 callersFunctioncopy_paste
Implement Copy-Paste augmentation https://arxiv.org/abs/2012.07177, labels as nx5 np.array(cls, xyxy).
ultralytics/yolo/data/dataloaders/v5augmentations.py:244
↓ 2 callersFunctiondist2bbox
Transform distance(ltrb) to box(xywh or xyxy).
ultralytics/yolo/utils/tal.py:261
↓ 2 callersFunctiondownload
Downloads and unzips files concurrently if threads > 1, else sequentially.
ultralytics/yolo/utils/downloads.py:256
↓ 2 callersFunctionexif_size
Returns exif-corrected PIL size.
ultralytics/yolo/data/utils.py:53
↓ 2 callersFunctionfunc
Make HTTP requests with retries and timeouts, with optional progress tracking.
ultralytics/hub/utils.py:112
↓ 2 callersMethodfuse
Fuse PyTorch Conv2d and BatchNorm2d layers.
ultralytics/yolo/engine/model.py:207
↓ 2 callersMethodfuse_convs
Fuse parallel convolutions.
ultralytics/nn/modules/conv.py:58
↓ 2 callersFunctiongd_outputs
TensorFlow GraphDef model output node names.
ultralytics/yolo/engine/exporter.py:95
↓ 2 callersMethodget_auth_header
Get the authentication header for making API requests. Returns: (dict): The authentication header if id_token or API key
ultralytics/hub/auth.py:109
↓ 2 callersMethodget_dataloader
Returns dataloader derived from torch.data.Dataloader.
ultralytics/yolo/engine/trainer.py:522
↓ 2 callersFunctionget_flops
Return a YOLO model's FLOPs.
ultralytics/yolo/utils/torch_utils.py:220
↓ 2 callersFunctionget_git_dir
Determines whether the current file is part of a git repository and if so, returns the repository root directory. If the current file is not
ultralytics/yolo/utils/__init__.py:465
↓ 2 callersFunctionget_hash
Returns a single hash value of a list of paths (files or dirs).
ultralytics/yolo/data/utils.py:45
↓ 2 callersMethodget_image_and_label
Get and return label information from the dataset.
ultralytics/yolo/data/base.py:323
↓ 2 callersMethodget_img_files
Read image files.
ultralytics/yolo/data/base.py:110
↓ 2 callersMethodget_model
Get model and raise NotImplementedError for loading cfg files.
ultralytics/yolo/engine/trainer.py:514
↓ 2 callersFunctionget_num_params
Return the total number of parameters in a YOLO model.
ultralytics/yolo/utils/torch_utils.py:187
↓ 2 callersMethodget_save_dir
(self)
ultralytics/yolo/engine/predictor.py:115
↓ 2 callersFunctionget_settings
Loads a global Ultralytics settings YAML file or creates one with default values if it does not exist. Args: file (Path): Path to th
ultralytics/yolo/utils/__init__.py:686
↓ 2 callersFunctionhandle_yolo_hub
Handle Ultralytics HUB command-line interface (CLI) commands. This function processes Ultralytics HUB CLI commands such as login and logout.
ultralytics/yolo/cfg/__init__.py:221
↓ 2 callersFunctionimread
(filename, flags=cv2.IMREAD_COLOR)
ultralytics/yolo/utils/patches.py:16
↓ 2 callersFunctionimshow
(path, im)
ultralytics/yolo/utils/patches.py:28
↓ 2 callersFunctioninverse_sigmoid
(x, eps=1e-5)
ultralytics/nn/modules/utils.py:34
↓ 2 callersFunctionis_docker
Determine if the script is running inside a Docker container. Returns: (bool): True if the script is running inside a Docker contain
ultralytics/yolo/utils/__init__.py:363
↓ 2 callersFunctionis_jupyter
Check if the current script is running inside a Jupyter Notebook. Verified on Colab, Jupyterlab, Kaggle, Paperspace. Returns: (b
ultralytics/yolo/utils/__init__.py:349
↓ 2 callersMethoditerative_sigma_clipping
(self, data, sigma=2, max_iters=3)
ultralytics/yolo/utils/benchmarks.py:239
↓ 2 callersMethodkpts
Plot keypoints on the image. Args: kpts (tensor): Predicted keypoints with shape [17, 3]. Each keypoint has (x, y, confi
ultralytics/yolo/utils/plotting.py:162
↓ 2 callersMethodloss
Compute loss Args: batch (dict): Batch to compute loss on preds (torch.Tensor | List[torch.Tensor]): Predict
ultralytics/nn/tasks.py:215
↓ 2 callersFunctionmake_anchors
Generate anchors from features.
ultralytics/yolo/utils/tal.py:246
↓ 2 callersFunctionoutput_to_target
Convert model output to target format [batch_id, class_id, x, y, w, h, conf] for plotting.
ultralytics/yolo/utils/plotting.py:498
↓ 2 callersFunctionpolygon2mask
Args: imgsz (tuple): The image size. polygons (list[np.ndarray]): [N, M], N is the number of polygons, M is the number of points(
ultralytics/yolo/data/utils.py:154
↓ 2 callersMethodpostprocess
Post-processes predictions for an image and returns them.
ultralytics/yolo/engine/predictor.py:231
← previousnext →101–200 of 1,029, ranked by callers