MCPcopy Create free account

hub / github.com/YaoaoY/yolov8_GUI / functions

Functions1,475 in github.com/YaoaoY/yolov8_GUI

↓ 1 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/utils/metrics.py:24
↓ 1 callersFunctionbbox_iou
Compute the Intersection-Over-Union of a bounding box with respect to an array of other bounding boxes. Args: box1 (torch.Tensor): (
ultralytics/models/fastsam/utils.py:30
↓ 1 callersFunctionbbox_ious
Calculate the Intersection over Union (IoU) between pairs of bounding boxes. Args: box1 (np.array): A numpy array of shape (n, 4) re
ultralytics/trackers/utils/matching.py:199
↓ 1 callersMethodbias_init
Initialize Detect() biases, WARNING: requires stride availability.
ultralytics/nn/modules/head.py:74
↓ 1 callersFunctionbias_init_with_prob
initialize conv/fc bias value according to a given probability value.
ultralytics/nn/modules/utils.py:22
↓ 1 callersMethodbox_candidates
(self, box1, box2, wh_thr=2, ar_thr=100, area_thr=0.1, eps=1e-16)
ultralytics/data/augment.py:472
↓ 1 callersMethodbuild_2d_sincos_position_embedding
(w, h, embed_dim=256, temperature=10000.)
ultralytics/nn/modules/transformer.py:83
↓ 1 callersFunctionbuild_all_layer_point_grids
Generate point grids for all crop layers.
ultralytics/models/sam/amg.py:177
↓ 1 callersMethodbuild_dataset
(self, img_path)
ultralytics/models/yolo/classify/val.py:62
↓ 1 callersMethodbuild_dataset
(self, img_path, mode='train', batch=None)
ultralytics/models/yolo/classify/train.py:70
↓ 1 callersMethodbuild_dataset
Build YOLO Dataset Args: img_path (str): Path to the folder containing images. mode (str): `train` mode or `val` mode
ultralytics/models/yolo/detect/val.py:176
↓ 1 callersMethodbuild_dataset
Build YOLO Dataset. Args: img_path (str): Path to the folder containing images. mode (str): `train` mode or
ultralytics/models/yolo/detect/train.py:19
↓ 1 callersMethodbuild_optimizer
Constructs an optimizer for the given model, based on the specified optimizer name, learning rate, momentum, weight decay, and number
ultralytics/engine/trainer.py:610
↓ 1 callersFunctionbuild_point_grid
Generate a 2D grid of evenly spaced points in the range [0,1]x[0,1].
ultralytics/models/sam/amg.py:168
↓ 1 callersMethodbuild_transforms
Users can custom augmentations here like: if self.augment: # Training transforms return Compose([]
ultralytics/data/base.py:261
↓ 1 callersMethodbuild_transforms
Builds and appends transforms to the list.
ultralytics/data/dataset.py:146
↓ 1 callersMethodcache_images
Cache images to memory or disk.
ultralytics/data/base.py:173
↓ 1 callersMethodcache_labels
Cache dataset labels, check images and read shapes. Args: path (Path): path where to save the cache file (default: Path('./labels.
ultralytics/data/dataset.py:42
↓ 1 callersMethodcalculatePosition
(self, sizeHint)
ui/toast/demo.py:58
↓ 1 callersFunctioncalculate_stability_score
Computes the stability score for a batch of masks. The stability score is the IoU between the binary masks obtained by thresholding the p
ultralytics/models/sam/amg.py:154
↓ 1 callersFunctioncheck_amp
This function checks the PyTorch Automatic Mixed Precision (AMP) functionality of a YOLOv8 model. If the checks fail, it means there are anom
ultralytics/utils/checks.py:382
↓ 1 callersMethodcheck_cache_ram
Check image caching requirements vs available memory.
ultralytics/data/base.py:195
↓ 1 callersFunctioncheck_disk_space
Check if there is sufficient disk space to download and store a file. Args: url (str, optional): The URL to the file. Defaults to 'h
ultralytics/utils/downloads.py:88
↓ 1 callersFunctioncheck_latest_pypi_version
Returns the latest version of a PyPI package without downloading or installing it. Parameters: package_name (str): The name of the p
ultralytics/utils/checks.py:122
↓ 1 callersFunctioncheck_pip_update_available
Checks if a new version of the ultralytics package is available on PyPI. Returns: (bool): True if an update is available, False othe
ultralytics/utils/checks.py:140
↓ 1 callersFunctioncheck_python
Check current python version against the required minimum version. Args: minimum (str): Required minimum version of python. Ret
ultralytics/utils/checks.py:188
↓ 1 callersMethodcheck_resume
Check if resume checkpoint exists and update arguments accordingly.
ultralytics/engine/trainer.py:559
↓ 1 callersFunctioncheck_source
Check source type and return corresponding flag values.
ultralytics/data/build.py:112
↓ 1 callersMethodcheck_stats
Checks statistics.
ultralytics/engine/validator.py:243
↓ 1 callersFunctioncheck_stream_availability
(url)
utils/flask_utils.py:19
↓ 1 callersFunctioncheck_torchvision
Checks the installed versions of PyTorch and Torchvision to ensure they're compatible. This function checks the installed versions of PyTorc
ultralytics/utils/checks.py:259
↓ 1 callersFunctioncheck_train_batch_size
Check YOLO training batch size using the autobatch() function. Args: model (torch.nn.Module): YOLO model to check batch size for.
ultralytics/utils/autobatch.py:15
↓ 1 callersFunctioncheck_yolo
Return a human-readable YOLO software and hardware summary.
ultralytics/utils/checks.py:356
↓ 1 callersFunctioncheck_yolov5u_filename
Replace legacy YOLOv5 filenames with updated YOLOv5u filenames.
ultralytics/utils/checks.py:298
↓ 1 callersFunctionclassify_albumentations
YOLOv8 classification Albumentations (optional, only used if package is installed).
ultralytics/data/augment.py:813
↓ 1 callersFunctionclip_coords
Clip line coordinates to the image boundaries. Args: coords (torch.Tensor | numpy.ndarray): A list of line coordinates. shap
ultralytics/utils/ops.py:302
↓ 1 callersMethodclose_exec
(self)
classes/car_chart.py:93
↓ 1 callersFunctioncoco91_to_coco80_class
Converts 91-index COCO class IDs to 80-index COCO class IDs. Returns: (list): A list of 91 class IDs where the index represents the 80-in
ultralytics/data/converter.py:13
↓ 1 callersFunctioncompress_one_image
Compresses a single image file to reduced size while preserving its aspect ratio and quality using either the Python Imaging Library (PIL) or
ultralytics/data/utils.py:446
↓ 1 callersFunctioncompute_ap
Compute the average precision (AP) given the recall and precision curves. Arguments: recall (list): The recall curve. precis
ultralytics/utils/metrics.py:377
↓ 1 callersFunctioncompute_color_for_labels
设置不同类别的固定颜色
classes/yolo_abandon_02.py:55
↓ 1 callersFunctioncompute_color_for_labels
设置不同类别的固定颜色
classes/yolo_abandon_01.py:63
↓ 1 callersFunctioncompute_color_for_labels
设置不同类别的固定颜色
classes/paint_trail.py:25
↓ 1 callersFunctionconvert_coco
Converts COCO dataset annotations to a format suitable for training YOLOv5 models. Args: labels_dir (str, optional): Path to directory co
ultralytics/data/converter.py:28
↓ 1 callersFunctioncopy_attr
Copies attributes from object 'b' to object 'a', with options to include/exclude certain attributes.
ultralytics/utils/torch_utils.py:289
↓ 1 callersMethodcuda
Return a copy of the Results object with all tensors on GPU memory.
ultralytics/engine/results.py:142
↓ 1 callersFunctionddp_cleanup
Delete temp file if created.
ultralytics/utils/dist.py:64
↓ 1 callersFunctiondelete_dsstore
Deletes all ".DS_store" files under a specified directory. Args: path (str, optional): The directory path where the ".DS_store" file
ultralytics/data/utils.py:480
↓ 1 callersFunctiondraw_trail
(img, bbox, names,object_id, identities=None, offset=(0, 0))
classes/yolo_abandon_02.py:72
↓ 1 callersFunctiondraw_trail
(img, bbox, names, object_id, identities=None, offset=(0, 0))
classes/yolo_abandon_01.py:81
↓ 1 callersMethodemit_res
(self, img_trail, img_box)
classes/yolo_abandon_02.py:419
↓ 1 callersMethodemit_res
(self, img_trail, img_box)
classes/yolo.py:298
↓ 1 callersMethodemit_res
(self, img_trail, img_box)
classes/yolo_abandon_03.py:341
↓ 1 callersFunctionentrypoint
This function is the ultralytics package entrypoint, it's responsible for parsing the command line arguments passed to the package. This
ultralytics/cfg/__init__.py:290
↓ 1 callersMethodeval_json
Evaluate and return JSON format of prediction statistics.
ultralytics/engine/validator.py:277
↓ 1 callersFunctionexif_size
Returns exif-corrected PIL size.
ultralytics/data/utils.py:54
↓ 1 callersFunctionexport
Export a YOLOv model to a specific format.
ultralytics/engine/exporter.py:954
↓ 1 callersMethodexport_coreml
YOLOv8 CoreML export.
ultralytics/engine/exporter.py:466
↓ 1 callersMethodexport_edgetpu
YOLOv8 Edge TPU export https://coral.ai/docs/edgetpu/models-intro/.
ultralytics/engine/exporter.py:679
↓ 1 callersMethodexport_engine
YOLOv8 TensorRT export https://developer.nvidia.com/tensorrt.
ultralytics/engine/exporter.py:508
↓ 1 callersMethodexport_ncnn
YOLOv8 ncnn export using PNNX https://github.com/pnnx/pnnx.
ultralytics/engine/exporter.py:404
↓ 1 callersMethodexport_openvino
YOLOv8 OpenVINO export.
ultralytics/engine/exporter.py:358
↓ 1 callersMethodexport_paddle
YOLOv8 Paddle export.
ultralytics/engine/exporter.py:390
↓ 1 callersMethodexport_pb
YOLOv8 TensorFlow GraphDef *.pb export https://github.com/leimao/Frozen_Graph_TensorFlow.
ultralytics/engine/exporter.py:648
↓ 1 callersMethodexport_saved_model
YOLOv8 TensorFlow SavedModel export.
ultralytics/engine/exporter.py:573
↓ 1 callersMethodexport_tfjs
YOLOv8 TensorFlow.js export.
ultralytics/engine/exporter.py:706
↓ 1 callersMethodexport_tflite
YOLOv8 TensorFlow Lite export.
ultralytics/engine/exporter.py:664
↓ 1 callersMethodexport_torchscript
YOLOv8 TorchScript model export.
ultralytics/engine/exporter.py:284
↓ 1 callersMethodfadeIn
(self)
ui/toast/demo.py:48
↓ 1 callersMethodfast_show_mask
( self, annotation, ax, random_color=False, bbox=None, points=
ultralytics/models/fastsam/prompt.py:194
↓ 1 callersMethodfast_show_mask_gpu
( self, annotation, ax, random_color=False, bbox=None, points=
ultralytics/models/fastsam/prompt.py:250
↓ 1 callersMethodfinal_eval
Performs final evaluation and validation for object detection YOLO model.
ultralytics/engine/trainer.py:548
↓ 1 callersMethodfinalize_metrics
Finalizes and returns all metrics.
ultralytics/engine/validator.py:235
↓ 1 callersFunctionfind_free_network_port
Finds a free port on localhost. It is useful in single-node training when we don't want to connect to a real main node but have to set the `M
ultralytics/utils/dist.py:15
↓ 1 callersMethodforward
Forward pass of the model on a single scale. Wrapper for `_forward_once` method. Args: x (torch.Tensor | dict):
ultralytics/nn/tasks.py:32
↓ 1 callersMethodforward
Runs inference on the YOLOv8 MultiBackend model. Args: im (torch.Tensor): The image tensor to perform inference on.
ultralytics/nn/autobackend.py:315
↓ 1 callersMethodforward
(self, x)
ultralytics/nn/modules/transformer.py:163
↓ 1 callersMethodforward_features
(self, x)
ultralytics/models/sam/modules/tiny_encoder.py:635
↓ 1 callersMethodforward_ffn
(self, tgt)
ultralytics/nn/modules/transformer.py:304
↓ 1 callersMethodforward_post
(self, src, src_mask=None, src_key_padding_mask=None, pos=None)
ultralytics/nn/modules/transformer.py:43
↓ 1 callersMethodforward_pre
(self, src, src_mask=None, src_key_padding_mask=None, pos=None)
ultralytics/nn/modules/transformer.py:53
↓ 1 callersFunctionfuse_conv_and_bn
Fuse Conv2d() and BatchNorm2d() layers https://tehnokv.com/posts/fusing-batchnorm-and-conv/.
ultralytics/utils/torch_utils.py:123
↓ 1 callersFunctionfuse_deconv_and_bn
Fuse ConvTranspose2d() and BatchNorm2d() layers.
ultralytics/utils/torch_utils.py:147
↓ 1 callersMethodgenerate
Segment the whole image. Args: im (torch.Tensor): The preprocessed image, (N, C, H, W). crop_n_layers (int): If >0, m
ultralytics/models/sam/predict.py:178
↓ 1 callersFunctiongenerate_crop_boxes
Generates a list of crop boxes of different sizes. Each layer has (2**i)**2 boxes for the ith layer.
ultralytics/models/sam/amg.py:182
↓ 1 callersFunctiongenerate_ddp_command
Generates and returns command for distributed training.
ultralytics/utils/dist.py:49
↓ 1 callersFunctiongenerate_ddp_file
Generates a DDP file and returns its file name.
ultralytics/utils/dist.py:26
↓ 1 callersMethodgenerate_results_dict
(self, model_name, t_onnx, t_engine, model_info)
ultralytics/utils/benchmarks.py:338
↓ 1 callersMethodgenerate_table_row
(self, model_name, t_onnx, t_engine, model_info)
ultralytics/utils/benchmarks.py:334
↓ 1 callersFunctionget_best_youtube_url
Retrieves the URL of the best quality MP4 video stream from a given YouTube video. This function uses the pafy or yt_dlp library to extract
ultralytics/data/loaders.py:376
↓ 1 callersMethodget_box_metrics
Compute alignment metric given predicted and ground truth bounding boxes.
ultralytics/utils/tal.py:141
↓ 1 callersFunctionget_cdn_group
Get contrastive denoising training group. This function creates a contrastive denoising training group with positive and negative samples fro
ultralytics/models/utils/ops.py:143
↓ 1 callersMethodget_dataloader
Get data loader from dataset path and batch size.
ultralytics/engine/validator.py:211
↓ 1 callersMethodget_dataset
Get train, val path from data dict if it exists. Returns None if data format is not recognized.
ultralytics/engine/trainer.py:435
↓ 1 callersFunctionget_default_args
Returns a dictionary of default arguments for a function. Args: func (callable): The function to inspect. Returns: (dict): A
ultralytics/utils/__init__.py:537
↓ 1 callersMethodget_desc
Get description of the YOLO model.
ultralytics/engine/validator.py:251
↓ 1 callersMethodget_dn_match_indices
Get the match indices for denoising. Args: dn_pos_idx (List[torch.Tensor]): A list includes positive indices of denoising.
ultralytics/models/utils/loss.py:272
↓ 1 callersMethodget_equivalent_kernel_bias
(self)
ultralytics/nn/modules/conv.py:171
↓ 1 callersMethodget_files
(self)
ultralytics/utils/benchmarks.py:225
↓ 1 callersFunctionget_git_origin_url
Retrieves the origin URL of a git repository. Returns: (str | None): The origin URL of the git repository.
ultralytics/utils/__init__.py:509
← previousnext →401–500 of 1,475, ranked by callers