https://github.com/aprilnea/label-match
Matching the datas generated by labelme and labelimg.
https://github.com/aprilnea/label-match
dataset deep-learning labelimg labelimg-tool labelme labelme-json labelme-tool labels yolo
Last synced: 7 months ago
JSON representation
Matching the datas generated by labelme and labelimg.
- Host: GitHub
- URL: https://github.com/aprilnea/label-match
- Owner: AprilNEA
- License: mit
- Created: 2022-09-28T11:52:59.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-11-09T03:37:48.000Z (almost 3 years ago)
- Last Synced: 2025-01-16T09:55:48.957Z (9 months ago)
- Topics: dataset, deep-learning, labelimg, labelimg-tool, labelme, labelme-json, labelme-tool, labels, yolo
- Language: Python
- Homepage:
- Size: 70.3 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# label-match
This is a script that will match the labels of labelimg and labelme of the same image one by one and output them
together in another file.## Run
### Prepare in advance
1. An empty folder to hold your output files
2. A folder full of labelme label datasThere are only one standard output format of labelme and you can get an
example [here](https://github.com/wkentaro/labelme/blob/main/examples/tutorial/apc2016_obj3.json).3. A folder full of labelimg label datas
You can get further information [here](https://roboflow.com/formats/yolo-darknet-txt)
The label output format of labelimg is YOLO Darknet TXT, ex:
```
1 0.408 0.302 0.104 0.15
1 0.245 0.424 0.046 0.08
```4. A file containing a list of labelimg labels
You should separate your labels with spaces
### 1.Poetry(recommend)
```shell
poetry run python3 label-match.py \
--labelme_dir \
--labelimg_dir \
--output_dir \
--classes_file
```_*_: poetry will help you install dependencies when you first run it.
### 2.Pip3
Install environment first:
```shell
pip3 install -r requirements.txt
```Then run it:
```shell
python3 label-match.py \
--labelme_dir \
--labelimg_dir \
--output_dir \
--classes_file
```## Contribute
[commit message guidelines](https://github.com/angular/angular/blob/22b96b9/CONTRIBUTING.md#-commit-message-guidelines)
### TODO lists
- [ ] Add test module
- [x] Add log module
- [x] Use external label lists
- [ ] better matching algorithm
- [ ] Add conversion options
- [x] Async I/O