labelme2yolov7segmentation


Namelabelme2yolov7segmentation JSON
Version 2.0.0 PyPI version JSON
download
home_pagehttps://github.com/Tlaloc-Es/labelme2yolov7segmentation
SummaryConvert LabelMe format to yolov7 for segmentation.
upload_time2022-12-11 13:49:29
maintainer
docs_urlNone
authorTlaloc-Es
requires_python
licenseMIT
keywords
VCS
bugtrack_url
requirements attrs black bleach certifi cffi charset-normalizer click commonmark cryptography docutils exceptiongroup idna importlib-metadata iniconfig jaraco.classes jeepney keyring more-itertools mypy-extensions numpy packaging pathspec pkginfo platformdirs pluggy pycparser pydantic Pygments pyparsing pytest readme-renderer requests requests-toolbelt rfc3986 rich SecretStorage six tomli twine typing_extensions urllib3 webencodings zipp
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # LabelMe2Yolov7Segmentation

This repository was designed in order to label images using [LabelMe](https://github.com/wkentaro/labelme) and transform to [YoloV7](https://github.com/WongKinYiu/yolov7) format for instance segmentation

## Instalation

`pip install labelme2yolov7segmentation`

## Usage

First of all, make your dataset with LabelMe, after that call to the following command

`labelme2yolo --source-path /labelme/dataset --output-path /another/path`

The arguments are:

* `--source-path`: That indicates the path where are the json output of LabelMe and their images, both will have been in the same folder
* `--output-path`: The path where you will save the converted files and a copy of the images following the yolov7 folder estructure

### Expected output

If you execute the following command:

`labelme2yolo --source-path /labelme/dataset --output-path /another/datasets`

You will get something like this

```bash
datasets
├── images
│   ├── train
│   │   ├── img_1.jpg
│   │   ├── img_2.jpg
│   │   ├── img_3.jpg
│   │   ├── img_4.jpg
│   │   └── img_5.jpg
│   └── val
│       ├── img_6.jpg
│       └── img_7.jpg
├── labels
│   ├── train
│   │   ├── img_1.txt
│   │   ├── img_2.txt
│   │   ├── img_3.txt
│   │   ├── img_4.txt
│   │   └── img_5.txt
│   └── val
│       ├── img_6.txt
│       └── img_7.txt
├── labels.txt
├── test.txt
└── train.txt
```

## Donation

If you want to contribute you can make a donation at https://www.buymeacoffee.com/tlaloc, thanks in advance

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/Tlaloc-Es/labelme2yolov7segmentation",
    "name": "labelme2yolov7segmentation",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "",
    "author": "Tlaloc-Es",
    "author_email": "",
    "download_url": "",
    "platform": null,
    "description": "# LabelMe2Yolov7Segmentation\n\nThis repository was designed in order to label images using [LabelMe](https://github.com/wkentaro/labelme) and transform to [YoloV7](https://github.com/WongKinYiu/yolov7) format for instance segmentation\n\n## Instalation\n\n`pip install labelme2yolov7segmentation`\n\n## Usage\n\nFirst of all, make your dataset with LabelMe, after that call to the following command\n\n`labelme2yolo --source-path /labelme/dataset --output-path /another/path`\n\nThe arguments are:\n\n* `--source-path`: That indicates the path where are the json output of LabelMe and their images, both will have been in the same folder\n* `--output-path`: The path where you will save the converted files and a copy of the images following the yolov7 folder estructure\n\n### Expected output\n\nIf you execute the following command:\n\n`labelme2yolo --source-path /labelme/dataset --output-path /another/datasets`\n\nYou will get something like this\n\n```bash\ndatasets\n\u251c\u2500\u2500 images\n\u2502   \u251c\u2500\u2500 train\n\u2502   \u2502   \u251c\u2500\u2500 img_1.jpg\n\u2502   \u2502   \u251c\u2500\u2500 img_2.jpg\n\u2502   \u2502   \u251c\u2500\u2500 img_3.jpg\n\u2502   \u2502   \u251c\u2500\u2500 img_4.jpg\n\u2502   \u2502   \u2514\u2500\u2500 img_5.jpg\n\u2502   \u2514\u2500\u2500 val\n\u2502       \u251c\u2500\u2500 img_6.jpg\n\u2502       \u2514\u2500\u2500 img_7.jpg\n\u251c\u2500\u2500 labels\n\u2502   \u251c\u2500\u2500 train\n\u2502   \u2502   \u251c\u2500\u2500 img_1.txt\n\u2502   \u2502   \u251c\u2500\u2500 img_2.txt\n\u2502   \u2502   \u251c\u2500\u2500 img_3.txt\n\u2502   \u2502   \u251c\u2500\u2500 img_4.txt\n\u2502   \u2502   \u2514\u2500\u2500 img_5.txt\n\u2502   \u2514\u2500\u2500 val\n\u2502       \u251c\u2500\u2500 img_6.txt\n\u2502       \u2514\u2500\u2500 img_7.txt\n\u251c\u2500\u2500 labels.txt\n\u251c\u2500\u2500 test.txt\n\u2514\u2500\u2500 train.txt\n```\n\n## Donation\n\nIf you want to contribute you can make a donation at https://www.buymeacoffee.com/tlaloc, thanks in advance\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Convert LabelMe format to yolov7 for segmentation.",
    "version": "2.0.0",
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "8e03e51f988a7063eb01932d7618ca42",
                "sha256": "3347876efa64737620ced78defb6ade3672d21bf5ce5e73339fa0c631fcb4838"
            },
            "downloads": -1,
            "filename": "labelme2yolov7segmentation-2.0.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "8e03e51f988a7063eb01932d7618ca42",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 5515,
            "upload_time": "2022-12-11T13:49:29",
            "upload_time_iso_8601": "2022-12-11T13:49:29.875162Z",
            "url": "https://files.pythonhosted.org/packages/a5/40/b8a5e87566d8804229e85807a0be43b4f9ddc353f5594506a160b706d10c/labelme2yolov7segmentation-2.0.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2022-12-11 13:49:29",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "Tlaloc-Es",
    "github_project": "labelme2yolov7segmentation",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [
        {
            "name": "attrs",
            "specs": [
                [
                    "==",
                    "22.1.0"
                ]
            ]
        },
        {
            "name": "black",
            "specs": [
                [
                    "==",
                    "22.10.0"
                ]
            ]
        },
        {
            "name": "bleach",
            "specs": [
                [
                    "==",
                    "5.0.1"
                ]
            ]
        },
        {
            "name": "certifi",
            "specs": [
                [
                    "==",
                    "2022.9.24"
                ]
            ]
        },
        {
            "name": "cffi",
            "specs": [
                [
                    "==",
                    "1.15.1"
                ]
            ]
        },
        {
            "name": "charset-normalizer",
            "specs": [
                [
                    "==",
                    "2.1.1"
                ]
            ]
        },
        {
            "name": "click",
            "specs": [
                [
                    "==",
                    "8.1.3"
                ]
            ]
        },
        {
            "name": "commonmark",
            "specs": [
                [
                    "==",
                    "0.9.1"
                ]
            ]
        },
        {
            "name": "cryptography",
            "specs": [
                [
                    "==",
                    "38.0.4"
                ]
            ]
        },
        {
            "name": "docutils",
            "specs": [
                [
                    "==",
                    "0.19"
                ]
            ]
        },
        {
            "name": "exceptiongroup",
            "specs": [
                [
                    "==",
                    "1.0.4"
                ]
            ]
        },
        {
            "name": "idna",
            "specs": [
                [
                    "==",
                    "3.4"
                ]
            ]
        },
        {
            "name": "importlib-metadata",
            "specs": [
                [
                    "==",
                    "5.1.0"
                ]
            ]
        },
        {
            "name": "iniconfig",
            "specs": [
                [
                    "==",
                    "1.1.1"
                ]
            ]
        },
        {
            "name": "jaraco.classes",
            "specs": [
                [
                    "==",
                    "3.2.3"
                ]
            ]
        },
        {
            "name": "jeepney",
            "specs": [
                [
                    "==",
                    "0.8.0"
                ]
            ]
        },
        {
            "name": "keyring",
            "specs": [
                [
                    "==",
                    "23.11.0"
                ]
            ]
        },
        {
            "name": "more-itertools",
            "specs": [
                [
                    "==",
                    "9.0.0"
                ]
            ]
        },
        {
            "name": "mypy-extensions",
            "specs": [
                [
                    "==",
                    "0.4.3"
                ]
            ]
        },
        {
            "name": "numpy",
            "specs": [
                [
                    "==",
                    "1.23.5"
                ]
            ]
        },
        {
            "name": "packaging",
            "specs": [
                [
                    "==",
                    "21.3"
                ]
            ]
        },
        {
            "name": "pathspec",
            "specs": [
                [
                    "==",
                    "0.10.2"
                ]
            ]
        },
        {
            "name": "pkginfo",
            "specs": [
                [
                    "==",
                    "1.9.2"
                ]
            ]
        },
        {
            "name": "platformdirs",
            "specs": [
                [
                    "==",
                    "2.6.0"
                ]
            ]
        },
        {
            "name": "pluggy",
            "specs": [
                [
                    "==",
                    "1.0.0"
                ]
            ]
        },
        {
            "name": "pycparser",
            "specs": [
                [
                    "==",
                    "2.21"
                ]
            ]
        },
        {
            "name": "pydantic",
            "specs": [
                [
                    "==",
                    "1.10.2"
                ]
            ]
        },
        {
            "name": "Pygments",
            "specs": [
                [
                    "==",
                    "2.13.0"
                ]
            ]
        },
        {
            "name": "pyparsing",
            "specs": [
                [
                    "==",
                    "3.0.9"
                ]
            ]
        },
        {
            "name": "pytest",
            "specs": [
                [
                    "==",
                    "7.2.0"
                ]
            ]
        },
        {
            "name": "readme-renderer",
            "specs": [
                [
                    "==",
                    "37.3"
                ]
            ]
        },
        {
            "name": "requests",
            "specs": [
                [
                    "==",
                    "2.28.1"
                ]
            ]
        },
        {
            "name": "requests-toolbelt",
            "specs": [
                [
                    "==",
                    "0.10.1"
                ]
            ]
        },
        {
            "name": "rfc3986",
            "specs": [
                [
                    "==",
                    "2.0.0"
                ]
            ]
        },
        {
            "name": "rich",
            "specs": [
                [
                    "==",
                    "12.6.0"
                ]
            ]
        },
        {
            "name": "SecretStorage",
            "specs": [
                [
                    "==",
                    "3.3.3"
                ]
            ]
        },
        {
            "name": "six",
            "specs": [
                [
                    "==",
                    "1.16.0"
                ]
            ]
        },
        {
            "name": "tomli",
            "specs": [
                [
                    "==",
                    "2.0.1"
                ]
            ]
        },
        {
            "name": "twine",
            "specs": [
                [
                    "==",
                    "4.0.2"
                ]
            ]
        },
        {
            "name": "typing_extensions",
            "specs": [
                [
                    "==",
                    "4.4.0"
                ]
            ]
        },
        {
            "name": "urllib3",
            "specs": [
                [
                    "==",
                    "1.26.13"
                ]
            ]
        },
        {
            "name": "webencodings",
            "specs": [
                [
                    "==",
                    "0.5.1"
                ]
            ]
        },
        {
            "name": "zipp",
            "specs": [
                [
                    "==",
                    "3.11.0"
                ]
            ]
        }
    ],
    "lcname": "labelme2yolov7segmentation"
}
        
Elapsed time: 0.01736s