Science Score: 44.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (6.7%) to scientific vocabulary
Keywords
Repository
ImageNet file xml format to Darknet text format
Basic Info
- Host: GitHub
- Owner: isabek
- Language: Python
- Default Branch: master
- Size: 15.6 KB
Statistics
- Stars: 144
- Watchers: 1
- Forks: 40
- Open Issues: 1
- Releases: 4
Topics
Metadata Files
README.md
XmlToTxt
ImageNet file xml format to Darknet text format. Works well with directories and subdirectories.
Installation
bash
sudo pip install -r requirements.txt
Usage
bash
python xmltotxt.py -c cls.txt -xml xml -out out
Mandatory arguments
bash
-xml
Optional arguments
bash
-c, -out
Example
Input xml file.
xml
<annotation>
<filename>image-0000016.jpg</filename>
<size>
<width>1920</width>
<height>1080</height>
</size>
<object>
<name>sedan</name>
<bndbox>
<xmin>75</xmin>
<ymin>190</ymin>
<xmax>125</xmax>
<ymax>210</ymax>
</bndbox>
</object>
</annotation>
Output text file.
text
5 0.052083 0.185185 0.026042 0.018519
Motivation
I used Darknet for real-time object detection and classification. Sometimes you need to collect your own training dataset for train your model. I collected training dataset images and fine awesome tool for labeling images. But it generates xml files. So I needed to implement tool which translates from ImageNet xml format to Darknet text format. Also compatible with latest YOLOv5 by Ultralytics.
Owner
- Name: Isabek Tashiev
- Login: isabek
- Kind: user
- Location: Tallinn, Estonia
- Company: AlienGain
- Website: https://www.linkedin.com/in/itashiev
- Repositories: 147
- Profile: https://github.com/isabek
Citation (CITATION.cff)
cff-version: 1.2.0
message: "If you use this software, please cite it as below."
authors:
- family-names: Tashiev
given-names: Isabek
title: "XmlToTxt"
version: 1.0.3
doi: 10.5281/zenodo.7213207
date-released: 2022-10-16
GitHub Events
Total
- Watch event: 3
- Fork event: 1
Last Year
- Watch event: 3
- Fork event: 1
Dependencies
- declxml ==0.9.1