Skip to content

Commit

Permalink
yolo format documentation update (#295)
Browse files Browse the repository at this point in the history
* add info about coordinates in yolo format doc
  • Loading branch information
sstrehlk authored Jun 11, 2021
1 parent 64b01b7 commit b86a6eb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Support for import/export zip archives with images (<https://github.com/openvinotoolkit/datumaro/pull/273>)
- Subformat importers for VOC and COCO (<https://github.com/openvinotoolkit/datumaro/pull/281>)
- Support for KITTI dataset segmentation and detection format (<https://github.com/openvinotoolkit/datumaro/pull/282>)
- Updated YOLO format user manual (<https://github.com/openvinotoolkit/datumaro/pull/295>)

### Changed
-
Expand Down
5 changes: 3 additions & 2 deletions docs/formats/yolo_user_manual.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,12 @@ should contain information about labeled bounding boxes
for images:
```
# image1.txt:
# <label_index> <x> <y> <width> <height>
# <label_index> <x_center> <y_center> <width> <height>
0 0.250000 0.400000 0.300000 0.400000
3 0.600000 0.400000 0.400000 0.266667
```
Here `x`, `y`, `width`, and `height` are relative to the image's width and height.
Here `x_center`, `y_center`, `width`, and `height` are relative to the image's width and height.
The `x_center` and `y_center` are center of rectangle (are not top-left corner).

## Export to other formats

Expand Down

0 comments on commit b86a6eb

Please sign in to comment.