-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* (WIP) Annotation structures being constructed. - pycocotools and pyyaml requirements added. - I/O utils for json/yaml added. * Type hint variables are corrected. * sketched persistence methods for different format in Annotations class * updated annotation Dataclass to include more comprehensive detail of bounding box * implemented load_from_coco and persist_to_yolo method in Annotations class * annotations are now grouped by imagename in the internal representations of Annotations class. required updates also made to load_from_coco and persist_as_yolo methods * implemented persist_as_voc and load_from_voc methods in Annotations class * implemented persist_as_coco in Annotations class * added function to extract image dimesions from the image * load_from_yolo method added in Annotations class * defined docstring for all the class methods * documented the conversion process of annotations file across different formats * added pytest-depends as development dependency * using a small coco dataset, implemented unit tests for annotations file conversion * renamed persist_as_* methods to save_as_* methods (which are used by other python packages as well) * updated README.md, renamed persist_as_* to save_as_* * migrated the test dataset (used for unit testing) in the repository to hugging face * linting with flake8 and black --------- Co-authored-by: devrimcavusoglu <devrimcavusoglu@gmail.com>
- Loading branch information
1 parent
cda82ca
commit bcd2b18
Showing
14 changed files
with
863 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
""" | ||
https://medium.com/red-buffer/converting-a-custom-dataset-from-coco-format-to-yolo-format-6d98a4fd43fc | ||
https://blog.roboflow.com/train-yolov7-instance-segmentation-on-custom-data/ | ||
""" | ||
from pybboxes.annotations.base import Annotations |
Oops, something went wrong.