MCPcopy Create free account

hub / github.com/YaoaoY/yolov8_GUI / functions

Functions1,475 in github.com/YaoaoY/yolov8_GUI

↓ 182 callersMethodappend
Appends a new transform to the existing list of transforms.
ultralytics/data/augment.py:60
↓ 152 callersMethodget
Return the value of the specified key if it exists; otherwise, return the default value.
ultralytics/utils/__init__.py:163
↓ 135 callersMethodinfo
Logs model info. Args: detailed (bool): Show detailed information about model. verbose (bool): Controls verb
ultralytics/engine/model.py:188
↓ 106 callersMethodcat
Concatenate a new MaskData object to the current one.
ultralytics/models/sam/amg.py:59
↓ 69 callersMethodto
Sends the model to the given device. Args: device (str): device
ultralytics/engine/model.py:384
↓ 59 callersMethodcpu
Return a copy of the Results object with all tensors on CPU memory.
ultralytics/engine/results.py:128
↓ 53 callersMethoditems
Return an ItemsView of the MaskData object.
ultralytics/models/sam/amg.py:39
↓ 50 callersMethodconnect
(self)
classes/sql_connect.py:39
↓ 48 callersMethodnumpy
Return a copy of the Results object with all tensors as numpy arrays.
ultralytics/engine/results.py:135
↓ 42 callersMethodtime
Get current time.
ultralytics/utils/ops.py:49
↓ 40 callersFunctioncolorstr
Colors a string https://en.wikipedia.org/wiki/ANSI_escape_code, i.e. colorstr('blue', 'hello world').
ultralytics/utils/__init__.py:586
↓ 35 callersMethodtolist
Converts list of transforms to a standard Python list.
ultralytics/data/augment.py:64
↓ 31 callersFunctioncheck_requirements
Check if installed dependencies meet YOLOv8 requirements and attempt to auto-update if needed. Args: requirements (Union[Path, str,
ultralytics/utils/checks.py:202
↓ 28 callersMethodconcatenate
Concatenate a list of Bboxes objects into a single Bboxes object. Args: boxes_list (List[Bboxes]): A list of Bboxes obje
ultralytics/utils/instance.py:136
↓ 27 callersMethodinfo
Prints model information Args: verbose (bool): if True, prints out the model information. Defaults to False
ultralytics/nn/tasks.py:159
↓ 22 callersMethodshow_status
(self, msg)
main.py:292
↓ 22 callersMethodupdate
Args: results (tuple): A tuple of (p, r, ap, f1, ap_class)
ultralytics/utils/metrics.py:627
↓ 21 callersMethodclose
(self)
classes/sql_connect.py:83
↓ 21 callersMethodsave
Saves the current settings to the YAML file.
ultralytics/utils/__init__.py:779
↓ 18 callersMethodrun
(self)
classes/yolo.py:102
↓ 17 callersMethodload
Transfers parameters with matching names and shapes from 'weights' to model.
ultralytics/engine/model.py:178
↓ 16 callersMethod__init__
(self, c1, c2, n=1)
ultralytics/nn/modules/block.py:140
↓ 16 callersMethodfrom_numpy
Convert a numpy array to a tensor. Args: x (np.ndarray): The array to be converted. Returns: (
ultralytics/nn/autobackend.py:439
↓ 16 callersMethodshow
Display an image in a window using OpenCV imshow().
ultralytics/engine/predictor.py:317
↓ 14 callersMethodclip
Clips bounding boxes, segments, and keypoints values to stay within image boundaries.
ultralytics/utils/instance.py:317
↓ 14 callersFunctionemojis
Return platform-dependent emoji-safe version of string.
ultralytics/utils/__init__.py:229
↓ 14 callersMethodkeys
Return a list of non-empty attribute names.
ultralytics/engine/results.py:161
↓ 14 callersFunctionplot_images
Plot image grid with labels.
ultralytics/utils/plotting.py:363
↓ 13 callersFunctioncheck_version
Check current version against the required minimum version. Args: current (str): Current version. minimum (str): Required mi
ultralytics/utils/checks.py:92
↓ 13 callersMethodrun_callbacks
Run all existing callbacks associated with a particular event.
ultralytics/engine/trainer.py:162
↓ 12 callersMethod__init__
Initialize Conv layer with given arguments including activation.
ultralytics/nn/modules/conv.py:29
↓ 12 callersMethodfromarray
Update self.im from a numpy array.
ultralytics/utils/plotting.py:250
↓ 12 callersFunctionget_cfg
Load and merge configuration data from a file or dictionary. Args: cfg (str | Path | Dict | SimpleNamespace): Configuration data.
ultralytics/cfg/__init__.py:97
↓ 12 callersMethodrectangle
Add rectangle to image (PIL-only).
ultralytics/utils/plotting.py:215
↓ 12 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/utils/__init__.py:313
↓ 10 callersMethod__init__
(self, in_features, hidden_features=None, out_features=None, act_layer=nn.GELU, drop=0.)
ultralytics/models/sam/modules/tiny_encoder.py:213
↓ 10 callersMethodlabel_loss_items
Returns a loss dict with labelled training loss items tensor
ultralytics/engine/trainer.py:502
↓ 10 callersMethodprocess_batch
Update confusion matrix for object detection task. Args: detections (Array[N, 6]): Detected bounding boxes and their ass
ultralytics/utils/metrics.py:209
↓ 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/engine/model.py:152
↓ 9 callersMethodconvert_bbox
Convert bounding box format.
ultralytics/utils/instance.py:209
↓ 9 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/utils/files.py:83
↓ 9 callersMethodstop
(self)
main.py:502
↓ 9 callersMethodtext
Adds text to an image using PIL or cv2.
ultralytics/utils/plotting.py:219
↓ 9 callersMethodtrain
(self, mode=True)
ultralytics/models/sam/modules/tiny_encoder.py:274
↓ 9 callersMethodupdate
Update the boxes, masks, and probs attributes of the Results object.
ultralytics/engine/results.py:118
↓ 9 callersFunctionwrap_ok_return_value
(data: Any)
utils/flask_utils.py:69
↓ 9 callersFunctionxyxy2xywh
Convert bounding box coordinates from (x1, y1, x2, y2) format to (x, y, width, height) format. Args: x (np.ndarray | torch.Tensor):
ultralytics/utils/ops.py:356
↓ 8 callersMethodchange_val
(self, x, flag)
main.py:528
↓ 8 callersFunctionde_parallel
De-parallelize a model: returns single-GPU model if model is of type DP or DDP.
ultralytics/utils/torch_utils.py:313
↓ 8 callersMethodinfo
Logs model info. Args: detailed (bool): Show detailed information about model. verbose (bool): Controls verb
ultralytics/models/nas/model.py:47
↓ 8 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/utils/__init__.py:359
↓ 8 callersMethodnew
Return a new Results object with the same image, path, and names.
ultralytics/engine/results.py:156
↓ 8 callersMethodplot
Plot the confusion matrix using seaborn and save it to a file. Args: normalize (bool): Whether to normalize the confusio
ultralytics/utils/metrics.py:268
↓ 8 callersFunctionselect_device
Selects PyTorch Device. Options are device = None or 'cpu' or 0 or '0' or '0,1,2,3'.
ultralytics/utils/torch_utils.py:65
↓ 8 callersMethodtrack
Perform object tracking on the input source using the registered trackers. Args: source (str, optional): The input sourc
ultralytics/engine/model.py:248
↓ 8 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/utils/ops.py:373
↓ 8 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/utils/__init__.py:285
↓ 7 callersMethodadd
Args: offset (tuple | list | int): the offset for four coords.
ultralytics/utils/instance.py:117
↓ 7 callersMethodapply
Apply object detection on a raw frame using specified method.
ultralytics/trackers/utils/gmc.py:72
↓ 7 callersFunctionclean_url
Strip auth from URL, i.e. https://url.com/file.txt?auth -> https://url.com/file.txt.
ultralytics/utils/__init__.py:803
↓ 7 callersMethoddevice
Returns device if PyTorch model.
ultralytics/engine/model.py:414
↓ 7 callersMethodget_list
(self, sql, args=None)
classes/sql_connect.py:51
↓ 7 callersMethodmean_results
Mean of results, return mp, mr, map50, map.
ultralytics/utils/metrics.py:606
↓ 6 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/utils/metrics.py:52
↓ 6 callersMethodclass_result
class-aware result, return p[i], r[i], ap50[i], ap[i].
ultralytics/utils/metrics.py:610
↓ 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/utils/__init__.py:484
↓ 6 callersFunctionmodel_info_for_loggers
Return model info dict with useful model information. Example for YOLOv8n: {'model/parameters': 3151904, 'model/GFLOPs': 8.
ultralytics/utils/torch_utils.py:206
↓ 6 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/utils/downloads.py:120
↓ 6 callersMethodsetup_model
load/create/download model for any task.
ultralytics/engine/trainer.py:441
↓ 6 callersMethodshow_image
(img_src, label)
main.py:199
↓ 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:92
↓ 5 callersMethod__init__
Initialize the BboxLoss module with regularization maximum and DFL settings.
ultralytics/utils/loss.py:57
↓ 5 callersMethod__init__
Initialize an ensemble of models.
ultralytics/nn/tasks.py:484
↓ 5 callersMethod__init__
Args: dim (int): Number of input channels. num_heads (int): Number of attention heads in each ViT block.
ultralytics/models/sam/modules/encoders.py:317
↓ 5 callersFunction_log_plots
(plots, step)
ultralytics/utils/callbacks/wb.py:17
↓ 5 callersFunction_log_plots
(plots, prefix='')
ultralytics/utils/callbacks/dvc.py:43
↓ 5 callersFunctionap_per_class
Computes the average precision per class for object detection evaluation. Args: tp (np.ndarray): Binary array indicating whether the
ultralytics/utils/metrics.py:410
↓ 5 callersFunctionattempt_load_one_weight
Loads a single model weights.
ultralytics/nn/tasks.py:621
↓ 5 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/utils/metrics.py:75
↓ 5 callersFunctioncheck_dict_alignment
This function checks for any mismatched keys between a custom configuration list and a base configuration list. If any mismatched keys are fo
ultralytics/cfg/__init__.py:165
↓ 5 callersFunctioncheck_file
Search/download file (if necessary) and return path.
ultralytics/utils/checks.py:312
↓ 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/utils/checks.py:45
↓ 5 callersFunctioncheck_imshow
Check if environment supports image displays.
ultralytics/utils/checks.py:341
↓ 5 callersFunctioncheck_path
(path)
utils/main_utils.py:5
↓ 5 callersFunctioncheck_yaml
Search/download YAML file (if necessary) and return path, checking suffix.
ultralytics/utils/checks.py:336
↓ 5 callersMethoddenormalize
Denormalizes boxes, segments, and keypoints from normalized coordinates.
ultralytics/utils/instance.py:229
↓ 5 callersFunctiondeprecation_warn
Issue a deprecation warning when a deprecated argument is used, suggesting an updated argument.
ultralytics/utils/__init__.py:795
↓ 5 callersMethodexport
Export model. Args: **kwargs : Any other args accepted by the predictors. To see all args check 'configuration' section
ultralytics/engine/model.py:325
↓ 5 callersFunctionexport_formats
YOLOv8 export formats.
ultralytics/engine/exporter.py:76
↓ 5 callersMethodfitness
Model fitness as a weighted combination of metrics.
ultralytics/utils/metrics.py:622
↓ 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/utils/__init__.py:432
↓ 5 callersMethodmul
Args: scale (tuple | list | int): the scale for four coords.
ultralytics/utils/instance.py:103
↓ 5 callersMethodpredict_cli
Method used for CLI prediction. It uses always generator as outputs as not required by CLI mode.
ultralytics/engine/predictor.py:199
↓ 5 callersMethodprofile
(self)
ultralytics/utils/benchmarks.py:184
↓ 5 callersMethodrun_callbacks
Runs all registered callbacks for a specific event.
ultralytics/engine/predictor.py:350
↓ 5 callersFunctiontime_sync
PyTorch-accurate time.
ultralytics/utils/torch_utils.py:116
↓ 5 callersMethodval
Validate a model on a given dataset. Args: data (str): The dataset to validate on. Accepts all formats accepted by yolo
ultralytics/engine/model.py:272
↓ 5 callersFunctionwrap_error_return_value
(message: str)
utils/flask_utils.py:77
↓ 4 callersMethod__init__
(self, dataset, pre_transform=None, p=0.0)
ultralytics/data/augment.py:273
next →1–100 of 1,475, ranked by callers