A small example package
Project description
yolosegment2labelme
yolosegment2labelme is a Python package that allows you to convert YOLO segmentation prediction results to LabelMe JSON format. This tool facilitates the annotation process by generating JSON files that are compatible with LabelMe and other labeling annotation tools.
Features
- Convert YOLO segmentation prediction results to LabelMe JSON format.
- Compatible with various YOLO models.
- Easy-to-use command-line interface.
- Supports batch processing of images.
- Customizable confidence threshold for predictions.
- Highly customizable and extensible for specific use cases.
Installation
You can install yolosegment2labelme via pip:
pip install yolosegment2labelme
Usage
After installation, you can use the yolosegment2labelme
command-line interface to convert YOLO segmentation prediction results to LabelMe JSON format. Here's a basic example:
yolosegment2labelme --images /path/to/images
or with custom yolo segmentation model
yolosegment2labelme --model yolov8n-seg.pt --images /path/to/images --conf 0.3
This command will process the images located in the specified directory (/path/to/images
), using the YOLO model weights file yolov8n-seg.pt
, and generate LabelMe JSON files with a confidence threshold of 0.3.
For more options and advanced usage, refer to the documentation.
Sample Images
The table below displays sample images along with their corresponding annotations generated using yolosegment2labelme:
Sample Images
Sample Image 1 | Sample Image 2 |
---|---|
Sample Annotation for Image 1 | Sample Annotation for Image 2 |
Sample Image 3 | Sample Image 4 |
---|---|
Sample Annotation for Image 3 | Sample Annotation for Image 4 |
Documentation
The documentation for yolosegment2labelme can be found on GitHub: yolosegment2labelme Documentation
Contributing
Contributions are welcome! If you'd like to contribute to yolosegment2labelme, please check out the Contribution Guidelines.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Authors
- Abonia Sojasingarayar - GitHub
Support
If you encounter any issues or have questions about yolosegment2labelme, please feel free to open an issue on GitHub: yolosegment2labelme Issues
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for yolosegment2labelme-0.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4716bc60b9377fe49f5e45128c3a2a70b829a3dfe01c07933e494b8e06a8f517 |
|
MD5 | 594a18b816d7bd7ebbd8ccbb0e602c7a |
|
BLAKE2b-256 | 60d1c457eea8ae3ad6c444bd5fe6d6235fd39db9619d092e06d1d191db3e55ac |
Hashes for yolosegment2labelme-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1ee6dadfbd86c1de3bec55ce1bf34fb4af819d7316b65b1760ff6382f585abc9 |
|
MD5 | b80d2b8a5a3cacf26e2f66c5afefc39c |
|
BLAKE2b-256 | 90335fa446ccebf1c8ff44b1020b59e9ab6da8ee4f6ace285e407cdacd68858e |