|
|
|
|
|
|
|
|
## Welcome to GitHub Pages |
|
|
|
|
|
|
|
|
# COCO2YOLO |
|
|
|
|
|
COCO to YOLO converter |
|
|
|
|
|
|
|
|
You can use the [editor on GitHub](https://github.com/alexmihalyk23/COCO2YOLO/edit/gh-pages/index.md) to maintain and preview the content for your website in Markdown files. |
|
|
|
|
|
|
|
|
# Usage |
|
|
|
|
|
|
|
|
Whenever you commit to this repository, GitHub Pages will run [Jekyll](https://jekyllrb.com/) to rebuild the pages in your site, from the content in your Markdown files. |
|
|
|
|
|
|
|
|
`python COCO2YOLO.py -j coco.json -o path_to_dir` |
|
|
|
|
|
### Or download [Release](https://github.com/alexmihalyk23/COCO2YOLO/releases/tag/v1.0.0) and run |
|
|
|
|
|
`COCO2YOLO.exe -j coco.json -o path_to_dir` |
|
|
|
|
|
|
|
|
### Markdown |
|
|
|
|
|
|
|
|
|
|
|
Markdown is a lightweight and easy-to-use syntax for styling your writing. It includes conventions for |
|
|
|
|
|
|
|
|
|
|
|
```markdown |
|
|
|
|
|
Syntax highlighted code block |
|
|
|
|
|
|
|
|
|
|
|
# Header 1 |
|
|
|
|
|
## Header 2 |
|
|
|
|
|
### Header 3 |
|
|
|
|
|
|
|
|
|
|
|
- Bulleted |
|
|
|
|
|
- List |
|
|
|
|
|
|
|
|
|
|
|
1. Numbered |
|
|
|
|
|
2. List |
|
|
|
|
|
|
|
|
|
|
|
**Bold** and _Italic_ and `Code` text |
|
|
|
|
|
|
|
|
|
|
|
[Link](url) and ![Image](src) |
|
|
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
For more details see [GitHub Flavored Markdown](https://guides.github.com/features/mastering-markdown/). |
|
|
|
|
|
|
|
|
|
|
|
### Jekyll Themes |
|
|
|
|
|
|
|
|
|
|
|
Your Pages site will use the layout and styles from the Jekyll theme you have selected in your [repository settings](https://github.com/alexmihalyk23/COCO2YOLO/settings). The name of this theme is saved in the Jekyll `_config.yml` configuration file. |
|
|
|
|
|
|
|
|
|
|
|
### Support or Contact |
|
|
|
|
|
|
|
|
|
|
|
Having trouble with Pages? Check out our [documentation](https://docs.github.com/categories/github-pages-basics/) or [contact support](https://github.com/contact) and we’ll help you sort it out. |
|
|
|
|
|
|
|
|
# To test the conversion you can run test.py |
|
|
|
|
|
`python test.py -i img.jpg -t converted_to_yolo.txt` |
|
|
|
|
|
## Or |
|
|
|
|
|
`python test_with_labels.py -i img.jpg -t converted_to_yolo.txt -l labels.txxxxxxt` |