--- description: Explore detailed documentation for Ultralytics utility operations. Learn about methods like segment2box, make_divisible, clip_boxes, and many more. keywords: 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 Full source code for 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). Help us fix any issues you see by submitting a [Pull Request](/help/contributing/) 🛠️. Thank you 🙏! --- ## ::: ultralytics.utils.ops.Profile

--- ## ::: ultralytics.utils.ops.coco80_to_coco91_class

--- ## ::: 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.xyn2xy

--- ## ::: ultralytics.utils.ops.xywh2ltwh

--- ## ::: ultralytics.utils.ops.xyxy2ltwh

--- ## ::: ultralytics.utils.ops.ltwh2xywh

--- ## ::: 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.clean_str