|
|
|
This module contains optimized deep learning related operations used in the Ultralytics YOLO framework
|
|
|
|
|
|
|
|
## Non-max suppression
|
|
|
|
|
|
|
|
:::ultralytics.yolo.utils.ops.non_max_suppression
|
|
|
|
handler: python
|
|
|
|
options:
|
|
|
|
show_source: false
|
|
|
|
show_root_toc_entry: false
|
|
|
|
---
|
|
|
|
|
|
|
|
## Scale boxes
|
|
|
|
|
|
|
|
:::ultralytics.yolo.utils.ops.scale_boxes
|
|
|
|
handler: python
|
|
|
|
options:
|
|
|
|
show_source: false
|
|
|
|
show_root_toc_entry: false
|
|
|
|
---
|
|
|
|
|
|
|
|
## Scale image
|
|
|
|
|
|
|
|
:::ultralytics.yolo.utils.ops.scale_image
|
|
|
|
handler: python
|
|
|
|
options:
|
|
|
|
show_source: false
|
|
|
|
show_root_toc_entry: false
|
|
|
|
---
|
|
|
|
|
|
|
|
## clip boxes
|
|
|
|
|
|
|
|
:::ultralytics.yolo.utils.ops.clip_boxes
|
|
|
|
handler: python
|
|
|
|
options:
|
|
|
|
show_source: false
|
|
|
|
show_root_toc_entry: false
|
|
|
|
---
|
|
|
|
|
|
|
|
# Box Format Conversion
|
|
|
|
|
|
|
|
## xyxy2xywh
|
|
|
|
|
|
|
|
:::ultralytics.yolo.utils.ops.xyxy2xywh
|
|
|
|
handler: python
|
|
|
|
options:
|
|
|
|
show_source: false
|
|
|
|
show_root_toc_entry: false
|
|
|
|
---
|
|
|
|
|
|
|
|
## xywh2xyxy
|
|
|
|
|
|
|
|
:::ultralytics.yolo.utils.ops.xywh2xyxy
|
|
|
|
handler: python
|
|
|
|
options:
|
|
|
|
show_source: false
|
|
|
|
show_root_toc_entry: false
|
|
|
|
---
|
|
|
|
|
|
|
|
## xywhn2xyxy
|
|
|
|
|
|
|
|
:::ultralytics.yolo.utils.ops.xywhn2xyxy
|
|
|
|
handler: python
|
|
|
|
options:
|
|
|
|
show_source: false
|
|
|
|
show_root_toc_entry: false
|
|
|
|
---
|
|
|
|
|
|
|
|
## xyxy2xywhn
|
|
|
|
|
|
|
|
:::ultralytics.yolo.utils.ops.xyxy2xywhn
|
|
|
|
handler: python
|
|
|
|
options:
|
|
|
|
show_source: false
|
|
|
|
show_root_toc_entry: false
|
|
|
|
---
|
|
|
|
|
|
|
|
## xyn2xy
|
|
|
|
|
|
|
|
:::ultralytics.yolo.utils.ops.xyn2xy
|
|
|
|
handler: python
|
|
|
|
options:
|
|
|
|
show_source: false
|
|
|
|
show_root_toc_entry: false
|
|
|
|
---
|
|
|
|
|
|
|
|
## xywh2ltwh
|
|
|
|
|
|
|
|
:::ultralytics.yolo.utils.ops.xywh2ltwh
|
|
|
|
handler: python
|
|
|
|
options:
|
|
|
|
show_source: false
|
|
|
|
show_root_toc_entry: false
|
|
|
|
---
|
|
|
|
|
|
|
|
## xyxy2ltwh
|
|
|
|
|
|
|
|
:::ultralytics.yolo.utils.ops.xyxy2ltwh
|
|
|
|
handler: python
|
|
|
|
options:
|
|
|
|
show_source: false
|
|
|
|
show_root_toc_entry: false
|
|
|
|
---
|
|
|
|
|
|
|
|
## ltwh2xywh
|
|
|
|
|
|
|
|
:::ultralytics.yolo.utils.ops.ltwh2xywh
|
|
|
|
handler: python
|
|
|
|
options:
|
|
|
|
show_source: false
|
|
|
|
show_root_toc_entry: false
|
|
|
|
---
|
|
|
|
|
|
|
|
## ltwh2xyxy
|
|
|
|
|
|
|
|
:::ultralytics.yolo.utils.ops.ltwh2xyxy
|
|
|
|
handler: python
|
|
|
|
options:
|
|
|
|
show_source: false
|
|
|
|
show_root_toc_entry: false
|
|
|
|
---
|
|
|
|
|
|
|
|
## segment2box
|
|
|
|
|
|
|
|
:::ultralytics.yolo.utils.ops.segment2box
|
|
|
|
handler: python
|
|
|
|
options:
|
|
|
|
show_source: false
|
|
|
|
show_root_toc_entry: false
|
|
|
|
---
|
|
|
|
|
|
|
|
# Mask Operations
|
|
|
|
|
|
|
|
## resample_segments
|
|
|
|
|
|
|
|
:::ultralytics.yolo.utils.ops.resample_segments
|
|
|
|
handler: python
|
|
|
|
options:
|
|
|
|
show_source: false
|
|
|
|
show_root_toc_entry: false
|
|
|
|
---
|
|
|
|
|
|
|
|
## crop_mask
|
|
|
|
|
|
|
|
:::ultralytics.yolo.utils.ops.crop_mask
|
|
|
|
handler: python
|
|
|
|
options:
|
|
|
|
show_source: false
|
|
|
|
show_root_toc_entry: false
|
|
|
|
---
|
|
|
|
|
|
|
|
## process_mask_upsample
|
|
|
|
|
|
|
|
:::ultralytics.yolo.utils.ops.process_mask_upsample
|
|
|
|
handler: python
|
|
|
|
options:
|
|
|
|
show_source: false
|
|
|
|
show_root_toc_entry: false
|
|
|
|
---
|
|
|
|
|
|
|
|
## process_mask
|
|
|
|
|
|
|
|
:::ultralytics.yolo.utils.ops.process_mask
|
|
|
|
handler: python
|
|
|
|
options:
|
|
|
|
show_source: false
|
|
|
|
show_root_toc_entry: false
|
|
|
|
---
|
|
|
|
|
|
|
|
## process_mask_native
|
|
|
|
|
|
|
|
:::ultralytics.yolo.utils.ops.process_mask_native
|
|
|
|
handler: python
|
|
|
|
options:
|
|
|
|
show_source: false
|
|
|
|
show_root_toc_entry: false
|
|
|
|
---
|
|
|
|
|
|
|
|
## scale_segments
|
|
|
|
|
|
|
|
:::ultralytics.yolo.utils.ops.scale_segments
|
|
|
|
handler: python
|
|
|
|
options:
|
|
|
|
show_source: false
|
|
|
|
show_root_toc_entry: false
|
|
|
|
---
|
|
|
|
|
|
|
|
## masks2segments
|
|
|
|
|
|
|
|
:::ultralytics.yolo.utils.ops.masks2segments
|
|
|
|
handler: python
|
|
|
|
options:
|
|
|
|
show_source: false
|
|
|
|
show_root_toc_entry: false
|
|
|
|
---
|
|
|
|
|
|
|
|
## clip_segments
|
|
|
|
|
|
|
|
:::ultralytics.yolo.utils.ops.clip_segments
|
|
|
|
handler: python
|
|
|
|
options:
|
|
|
|
show_source: false
|
|
|
|
show_root_toc_entry: false
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|