MCPcopy Create free account

hub / github.com/YaoaoY/yolov8_GUI / functions

Functions1,475 in github.com/YaoaoY/yolov8_GUI

↓ 2 callersFunctioncfg2task
Guess from YAML dictionary.
ultralytics/nn/tasks.py:776
↓ 2 callersFunctioncheck_cls_dataset
Checks a classification dataset such as Imagenet. This function accepts a `dataset` name and attempts to retrieve the corresponding dataset
ultralytics/data/utils.py:270
↓ 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/utils/checks.py:159
↓ 2 callersFunctionclassify_transforms
(size=224, mean=(0.0, 0.0, 0.0), std=(1.0, 1.0, 1.0))
ultralytics/data/augment.py:798
↓ 2 callersMethodclose_mosaic
Sets mosaic, copy_paste and mixup options to 0.0 and builds transformations.
ultralytics/data/dataset.py:164
↓ 2 callersMethodcreat_labels
(self, detections, img_box, model)
classes/yolo.py:328
↓ 2 callersFunctioncrop_len
Crops bounding boxes to the size of the input image.
ultralytics/models/sam/amg.py:193
↓ 2 callersFunctiondist2bbox
Transform distance(ltrb) to box(xywh or xyxy).
ultralytics/utils/tal.py:261
↓ 2 callersFunctiondownload
Downloads and unzips files concurrently if threads > 1, else sequentially.
ultralytics/utils/downloads.py:261
↓ 2 callersMethoddrawDialog
(self, event: QPaintEvent, painter: QPainter, flags: str)
ui/toast/toast.py:143
↓ 2 callersFunctiondraw_trail
(img, bbox, names,object_id, identities=None, offset=(0, 0))
classes/paint_trail.py:42
↓ 2 callersFunctionfeature_visualization
Visualize feature maps of a given model module during inference. Args: x (torch.Tensor): Features to be visualized. module_t
ultralytics/utils/plotting.py:548
↓ 2 callersMethodflipud
Flips the coordinates of bounding boxes, segments, and keypoints vertically.
ultralytics/utils/instance.py:291
↓ 2 callersMethodforward
Function generates the YOLOv5 network's final layer.
ultralytics/nn/tasks.py:488
↓ 2 callersMethodforward
Args: pred_bboxes (torch.Tensor): [l, b, query, 4] pred_scores (torch.Tensor): [l, b, query, num_classes]
ultralytics/models/utils/loss.py:219
↓ 2 callersMethodforward_with_coords
Positionally encode points that are not normalized to [0,1].
ultralytics/models/sam/modules/encoders.py:306
↓ 2 callersFunctionfunc
Make HTTP requests with retries and timeouts, with optional progress tracking.
ultralytics/hub/utils.py:113
↓ 2 callersMethodfuse
Fuse PyTorch Conv2d and BatchNorm2d layers.
ultralytics/engine/model.py:199
↓ 2 callersMethodfuse_convs
Fuse parallel convolutions.
ultralytics/nn/modules/conv.py:57
↓ 2 callersMethodgating_distance
Compute gating distance between state distribution and measurements. A suitable distance threshold can be obtained from `chi2inv95`. If
ultralytics/trackers/utils/kalman_filter.py:197
↓ 2 callersFunctiongd_outputs
TensorFlow GraphDef model output node names.
ultralytics/engine/exporter.py:96
↓ 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_cam_num
(self)
utils/AtestCamera.py:9
↓ 2 callersMethodget_class_number
(self, detections)
classes/yolo.py:361
↓ 2 callersFunctionget_cpu_info
Return a string with system CPU information, i.e. 'Apple M2'.
ultralytics/utils/torch_utils.py:55
↓ 2 callersMethodget_dataloader
Returns dataloader derived from torch.data.Dataloader.
ultralytics/engine/trainer.py:492
↓ 2 callersMethodget_dense_pe
Returns the positional encoding used to encode point prompts, applied to a dense set of points the shape of the image encoding.
ultralytics/models/sam/modules/encoders.py:162
↓ 2 callersMethodget_dists
Calculates the distance between tracks and detections using IOU and fuses scores.
ultralytics/trackers/byte_tracker.py:305
↓ 2 callersFunctionget_flops
Return a YOLO model's FLOPs.
ultralytics/utils/torch_utils.py:229
↓ 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/utils/__init__.py:495
↓ 2 callersFunctionget_hash
Returns a single hash value of a list of paths (files or dirs).
ultralytics/data/utils.py:46
↓ 2 callersMethodget_image_and_label
Get and return label information from the dataset.
ultralytics/data/base.py:242
↓ 2 callersMethodget_model
Get model and raise NotImplementedError for loading cfg files.
ultralytics/engine/trainer.py:484
↓ 2 callersFunctionget_num_params
Return the total number of parameters in a YOLO model.
ultralytics/utils/torch_utils.py:196
↓ 2 callersFunctionget_rel_pos
Get relative positional embeddings according to the relative positions of query and key sizes. Args: q_size (int): size of qu
ultralytics/models/sam/modules/encoders.py:483
↓ 2 callersMethodget_save_dir
(self)
ultralytics/engine/predictor.py:111
↓ 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/cfg/__init__.py:214
↓ 2 callersFunctionimg2label_paths
Define label paths as a function of image paths.
ultralytics/data/utils.py:40
↓ 2 callersMethodinit_track
Initialize object tracking with detections and scores using STrack algorithm.
ultralytics/trackers/byte_tracker.py:301
↓ 2 callersFunctioninverse_sigmoid
(x, eps=1e-5)
ultralytics/nn/modules/utils.py:34
↓ 2 callersFunctionious
Compute cost based on IoU :type atlbrs: list[tlbr] | np.ndarray :type atlbrs: list[tlbr] | np.ndarray :rtype ious np.ndarray
ultralytics/trackers/utils/matching.py:73
↓ 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/utils/__init__.py:393
↓ 2 callersFunctionis_jupyter
Check if the current script is running inside a Jupyter Notebook. Verified on Colab, Jupyterlab, Kaggle, Paperspace. Returns: (b
ultralytics/utils/__init__.py:379
↓ 2 callersFunctionis_parallel
Returns True if model is of type DP or DDP.
ultralytics/utils/torch_utils.py:308
↓ 2 callersMethoditerative_sigma_clipping
(self, data, sigma=2, max_iters=3)
ultralytics/utils/benchmarks.py:244
↓ 2 callersMethodkpts
Plot keypoints on the image. Args: kpts (tensor): Predicted keypoints with shape [17, 3]. Each keypoint has (x, y, confidence).
ultralytics/utils/plotting.py:168
↓ 2 callersMethodload
Loads settings from the YAML file.
ultralytics/utils/__init__.py:775
↓ 2 callersMethodload_yolo_model
(self)
classes/yolo.py:321
↓ 2 callersMethodloss
Compute loss Args: batch (dict): Batch to compute loss on preds (torch.Tensor | List[torch.Tensor]): Predict
ultralytics/nn/tasks.py:202
↓ 2 callersFunctionmake_divisible
Returns nearest x divisible by divisor.
ultralytics/utils/torch_utils.py:282
↓ 2 callersMethodmark_removed
Mark the track as removed.
ultralytics/trackers/basetrack.py:64
↓ 2 callersFunctionmask_iou
Calculate masks IoU. Args: mask1 (torch.Tensor): A tensor of shape (N, n) where N is the number of ground truth objects and n is the
ultralytics/utils/metrics.py:131
↓ 2 callersMethodmulti_gmc
Update state tracks positions and covariances using a homography matrix.
ultralytics/trackers/byte_tracker.py:48
↓ 2 callersMethodnext_id
Increment and return the global track ID counter.
ultralytics/trackers/basetrack.py:43
↓ 2 callersMethodnormalize
Normalize bounding boxes, segments, and keypoints to image dimensions.
ultralytics/utils/instance.py:241
↓ 2 callersFunctionparse_key_value_pair
Parse one 'key=value' pair and return key and value.
ultralytics/cfg/__init__.py:268
↓ 2 callersFunctionparse_model
Parse a YOLO model.yaml dictionary into a PyTorch model.
ultralytics/nn/tasks.py:648
↓ 2 callersMethodpause
(self)
classes/car_chart.py:85
↓ 2 callersMethodplot
Plots the detection results on an input RGB image. Accepts a numpy array (cv2) or a PIL Image. Args: conf (bool): Whethe
ultralytics/engine/results.py:165
↓ 2 callersMethodplot
(self, annotations, output, bbox=None, points=None,
ultralytics/models/fastsam/prompt.py:95
↓ 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/data/utils.py:138
↓ 2 callersMethodpred_to_json
Converts YOLO predictions to COCO JSON format.
ultralytics/models/yolo/pose/val.py:169
↓ 2 callersMethodproject
Project state distribution to measurement space. Parameters ---------- mean : ndarray The state's mean vector (8
ultralytics/trackers/utils/kalman_filter.py:106
↓ 2 callersMethodproject
Project state distribution to measurement space. Parameters ---------- mean : ndarray The state's mean vector (8
ultralytics/trackers/utils/kalman_filter.py:333
↓ 2 callersMethodprompt_inference
Predict masks for the given input prompts, using the currently set image. Args: im (torch.Tensor): The preprocessed imag
ultralytics/models/sam/predict.py:105
↓ 2 callersMethodre_activate
Reactivates a previously lost track with a new detection.
ultralytics/trackers/byte_tracker.py:79
↓ 2 callersMethodrecognize_res
(self, iter_model)
classes/yolo_abandon_02.py:394
↓ 2 callersMethodrecognize_res
(self, iter_model)
classes/yolo.py:251
↓ 2 callersMethodrecognize_res
(self, iter_model)
classes/yolo_abandon_03.py:294
↓ 2 callersMethodrelease_capture
(self)
classes/yolo.py:369
↓ 2 callersFunctionremove_small_regions
Remove small disconnected regions or holes in a mask, returning the mask and a modification indicator.
ultralytics/models/sam/amg.py:247
↓ 2 callersMethodreset
Reset iterator. This is useful when we want to modify settings of dataset while training.
ultralytics/data/build.py:40
↓ 2 callersMethodresult
Return annotated image as array.
ultralytics/utils/plotting.py:255
↓ 2 callersMethodright
(self, Form)
ui/custom_grips.py:213
↓ 2 callersMethodrun_callbacks
Execute all callbacks for a given event.
ultralytics/engine/exporter.py:928
↓ 2 callersFunctionsave_img
(name, img, path)
utils/flask_utils.py:48
↓ 2 callersMethodsave_one_txt
Save YOLO detections to a txt file in normalized coordinates in a specific format.
ultralytics/models/yolo/detect/val.py:212
↓ 2 callersFunctionsave_res_img
(res_img, detections, name = 'default.jpg')
app.py:372
↓ 2 callersFunctionsmooth
Box filter of fraction f.
ultralytics/utils/metrics.py:319
↓ 2 callersFunctionspaces_in_path
Context manager to handle paths with spaces in their names. If a path contains spaces, it replaces them with underscores, copies the file/dir
ultralytics/utils/files.py:31
↓ 2 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/utils/torch_utils.py:379
↓ 2 callersMethodsub_stracks
DEPRECATED CODE in https://github.com/ultralytics/ultralytics/pull/1890/ stracks = {t.track_id: t for t in tlista} for t in tlistb:
ultralytics/trackers/byte_tracker.py:337
↓ 2 callersMethodtlwh_to_tlbr
Converts tlwh bounding box format to tlbr format.
ultralytics/trackers/byte_tracker.py:156
↓ 2 callersFunctiontorch_safe_load
This function attempts to load a PyTorch model with the torch.load() function. If a ModuleNotFoundError is raised, it catches the error, logs
ultralytics/nn/tasks.py:541
↓ 2 callersMethodtrain
Trains the model on a given dataset. Args: trainer (BaseTrainer, optional): Customized trainer. **kwargs (An
ultralytics/engine/model.py:346
↓ 2 callersMethodtransforms
Returns transform of the loaded model.
ultralytics/engine/model.py:419
↓ 2 callersFunctionuncrop_boxes_xyxy
Uncrop bounding boxes by adding the crop box offset.
ultralytics/models/sam/amg.py:216
↓ 2 callersFunctionunzip_file
Unzips a *.zip file to the specified path, excluding files containing strings in the exclude list. If the zipfile does not contain a single
ultralytics/utils/downloads.py:42
↓ 2 callersMethodupdate
Updates a setting value in the current settings.
ultralytics/utils/__init__.py:783
↓ 2 callersMethodupdate
Read stream `i` frames in daemon thread.
ultralytics/data/loaders.py:76
↓ 2 callersMethodupdate
Update the YOLOv8 instance with new track and frame ID.
ultralytics/trackers/bot_sort.py:54
↓ 2 callersMethodupload_model
Upload a model checkpoint to Ultralytics HUB. Args: epoch (int): The current training epoch. weights (str):
ultralytics/hub/session.py:139
↓ 2 callersFunctionv8_transforms
Convert images to a size suitable for YOLOv8 training.
ultralytics/data/augment.py:766
↓ 2 callersMethodwarmup
Warm up the model by running one forward pass with a dummy input. Args: imgsz (tuple): The shape of the dummy input tens
ultralytics/nn/autobackend.py:451
↓ 2 callersMethodwith_pos_embed
Add position embeddings if given.
ultralytics/nn/modules/transformer.py:39
↓ 2 callersMethodwith_pos_embed
(tensor, pos)
ultralytics/nn/modules/transformer.py:301
↓ 2 callersFunctionyaml_print
Pretty prints a yaml file or a yaml-formatted dictionary. Args: yaml_file: The file path of the yaml file or a yaml-formatted dictio
ultralytics/utils/__init__.py:335
↓ 2 callersFunctionyolo_res
(before_img_path, name)
app.py:335
↓ 1 callersMethodTarget_setText
(self, num)
main.py:187
↓ 1 callersMethod__init__
Initialize TryExcept class with optional message and verbosity settings.
ultralytics/utils/__init__.py:615
← previousnext →201–300 of 1,475, ranked by callers