Downloads · 30 days
24
2% of all-time downloads
MnLgt/yolo-human-parse
yolo-human-parse is a image classification model from MnLgt. Use it when you need a label for an image. It is set up for transformers. The card lists the license as apache-2.0.
This repository contains a fine-tuned YOLO (You Only Look Once) segmentation model designed to detect and segment various human body parts and objects in images.
Downloads · 30 days
24
2% of all-time downloads
All-time downloads
1K
Public
Repo size
4.3 GB
Likes
13
Public
Click a slice to open those files.
.pt3.5 GB · 100%
From the Hugging Face model README
This repository contains a fine-tuned YOLO (You Only Look Once) segmentation model designed to detect and segment various human body parts and objects in images.
The model is based on the YOLO architecture and has been fine-tuned to detect and segment the following classes:
To use this model, you'll need to have the appropriate YOLO framework installed. Please follow these steps:
Clone this repository:
git clone https://github.com/your-username/yolo-segmentation-human-parts.git
cd yolo-segmentation-human-parts
Install the required dependencies:
pip install -r requirements.txt
To use the model for inference, you can use the following Python script:
from ultralytics import YOLO
# Load the model
model = YOLO('path/to/your/model.pt')
# Perform inference on an image
results = model('path/to/your/image.jpg')
# Process the results
for result in results:
boxes = result.boxes # Bounding boxes
masks = result.masks # Segmentation masks
# Further processing...
If you want to further fine-tune the model on your own dataset, please follow these steps:
data.yaml file to reflect your dataset structure and classes.python train.py --img 640 --batch 16 --epochs 100 --data data.yaml --weights yolov5s-seg.pt
To evaluate the model's performance on your test set, use:
python val.py --weights path/to/your/model.pt --data data.yaml --task segment
Contributions to improve the model or extend its capabilities are welcome. Please submit a pull request or open an issue to discuss proposed changes.
This project is licensed under the MIT License - see the LICENSE file for details.