Add https://youtu.be/3VryynorQeo to README and fix converter.py Docs (#7883)
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com> Co-authored-by: UltralyticsAssistant <web@ultralytics.com>
This commit is contained in:
parent
9bdd784bcc
commit
7ac65dc33b
3 changed files with 14 additions and 11 deletions
|
|
@ -336,6 +336,7 @@ def convert_dota_to_yolo_obb(dota_root_path: str):
|
|||
|
||||
Notes:
|
||||
The directory structure assumed for the DOTA dataset:
|
||||
|
||||
- DOTA
|
||||
├─ images
|
||||
│ ├─ train
|
||||
|
|
@ -345,6 +346,7 @@ def convert_dota_to_yolo_obb(dota_root_path: str):
|
|||
└─ val_original
|
||||
|
||||
After execution, the function will organize the labels into:
|
||||
|
||||
- DOTA
|
||||
└─ labels
|
||||
├─ train
|
||||
|
|
@ -489,14 +491,15 @@ def yolo_bbox2segment(im_dir, save_dir=None, sam_model="sam_b.pt"):
|
|||
|
||||
Notes:
|
||||
The input directory structure assumed for dataset:
|
||||
|
||||
- im_dir
|
||||
├─ 001.jpg
|
||||
├─ ..
|
||||
├─ NNN.jpg
|
||||
└─ NNN.jpg
|
||||
- labels
|
||||
├─ 001.txt
|
||||
├─ ..
|
||||
├─ NNN.txt
|
||||
└─ NNN.txt
|
||||
"""
|
||||
from ultralytics.data import YOLODataset
|
||||
from ultralytics.utils.ops import xywh2xyxy
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue