Instructions to use killjoyelite/anime-eye-yolov8 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- ultralytics
How to use killjoyelite/anime-eye-yolov8 with ultralytics:
from ultralytics import YOLOvv8 model = YOLOvv8.from_pretrained("killjoyelite/anime-eye-yolov8") source = 'http://images.cocodataset.org/val2017/000000039769.jpg' model.predict(source=source, save=True) - Notebooks
- Google Colab
- Kaggle
Anime Eye Detector (YOLOv8)
A YOLOv8 object detection model fine-tuned to detect eyes in anime-style character art, intended for use with ComfyUI + Impact Pack for automated eye detailing/inpainting workflows (similar to how face_yolov8n.pt and hand_yolov8n.pt are used).
Model details (YOLOv8n and YOLOv8s)
- Base model:
yolov8n.pt/yolov8s.pt(Ultralytics) - Task: Object detection, single class (
eye) - Training data: 212 self-generated anime-style images (AI-generated, primarily female characters), manually labeled with bounding boxes around each visible eye
- Training config: 100 epochs, image size 640, batch size 8
Performance (on validation split)
| Metric | Nano (yolov8n) | Small (yolov8s) |
|---|---|---|
| mAP50 | 0.995 | 0.994 |
| mAP50-95 | 0.681 | 0.705 |
| Precision | 0.998 | 0.971 |
| Recall | 1.000 | 1.000 |
Known limitations
- Trained predominantly on female anime characters β detection on male character eyes is less reliable and may miss detections.
- Struggles with very large, cartoony/chibi-style eyes that deviate significantly from standard anime proportions or sometimes closeup of faces (WIP).
- Trained entirely on a single generation style/checkpoint's output β may generalize less well to very different art styles (e.g. heavily stylized, painterly, or non-anime art) than to mainstream anime/semi-realistic anime styles.
- Small dataset (212 images) β while validation metrics are strong, real-world robustness across the full diversity of anime art is inherently more limited than a larger, more varied dataset would provide.
If you find specific failure cases, feel free to open a discussion β this is a good candidate for community-driven dataset expansion over time.
Examples
Detection preview β the model correctly finds eyes across different poses/styles:
Eye color change/Eye fixing β using the detected eye region with Detailer (SEGS) to redraw eye color/detail from a prompt, while keeping the rest of the image untouched:
Usage (ComfyUI)
- Download the size you want (
eye_yolov8n.ptoreye_yolov8s.pt) from the Files tab. - Rename it if you want and place it in:
ComfyUI/models/ultralytics/bbox/ - Restart ComfyUI.
- In your workflow:
Load Image β UltralyticsDetectorProvider (select the eye detector model) β BboxDetectorSEGS β Detailer (SEGS) - Recommended
Detailer (SEGS)starting settings for eye detailing:guide_size: 512denoise: 0.5β0.7 (lower = closer to the original eye, higher = more prompt-driven reinterpretation)feather: 5β10
License
Released under the MIT License. Training images were self-generated by the author; users should independently verify licensing terms of any base checkpoint used to generate their own training/inference images if that matters for their use case.
- Downloads last month
- 70


