You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

2.4 KiB

description keywords
Explore detailed documentation for Ultralytics utility operations. Learn about methods like segment2box, make_divisible, clip_boxes, and many more. Ultralytics YOLO, Utility Operations, segment2box, make_divisible, clip_boxes, scale_image, xywh2xyxy, xyxy2xywhn, xywh2ltwh, ltwh2xywh, segments2boxes, crop_mask, process_mask, scale_masks, masks2segments

Reference for ultralytics/utils/ops.py

!!! Note

This file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/utils/ops.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/utils/ops.py). If you spot a problem please help fix it by [contributing](https://docs.ultralytics.com/help/contributing/) a [Pull Request](https://github.com/ultralytics/ultralytics/edit/main/ultralytics/utils/ops.py) 🛠. Thank you 🙏!

::: ultralytics.utils.ops.Profile




::: ultralytics.utils.ops.segment2box




::: ultralytics.utils.ops.scale_boxes




::: ultralytics.utils.ops.make_divisible




::: ultralytics.utils.ops.non_max_suppression




::: ultralytics.utils.ops.clip_boxes




::: ultralytics.utils.ops.clip_coords




::: ultralytics.utils.ops.scale_image




::: ultralytics.utils.ops.xyxy2xywh




::: ultralytics.utils.ops.xywh2xyxy




::: ultralytics.utils.ops.xywhn2xyxy




::: ultralytics.utils.ops.xyxy2xywhn




::: ultralytics.utils.ops.xywh2ltwh




::: ultralytics.utils.ops.xyxy2ltwh




::: ultralytics.utils.ops.ltwh2xywh




::: ultralytics.utils.ops.xyxyxyxy2xywhr




::: ultralytics.utils.ops.xywhr2xyxyxyxy




::: ultralytics.utils.ops.ltwh2xyxy




::: ultralytics.utils.ops.segments2boxes




::: ultralytics.utils.ops.resample_segments




::: ultralytics.utils.ops.crop_mask




::: ultralytics.utils.ops.process_mask_upsample




::: ultralytics.utils.ops.process_mask




::: ultralytics.utils.ops.process_mask_native




::: ultralytics.utils.ops.scale_masks




::: ultralytics.utils.ops.scale_coords




::: ultralytics.utils.ops.masks2segments




::: ultralytics.utils.ops.convert_torch2numpy_batch




::: ultralytics.utils.ops.clean_str