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 huggingface_hub import hf_hub_download from ultralytics import YOLO # pick the weights file from this repo's "Files and versions" tab weights = hf_hub_download("killjoyelite/anime-eye-yolov8", "<weights>.pt") model = YOLO(weights) 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: A growing set of self-generated anime and semi-realistic style images (AI-generated, primarily female characters), manually labeled with bounding boxes around each visible eye. Currently 286 images (v2.0)
- Training config: 100 epochs, image size 640, batch size 8
Performance (on validation split)
| Metric | Nano (yolov8n) | Small (yolov8s) |
|---|---|---|
| mAP50 | 0.982 | 0.989 |
| mAP50-95 | 0.663 | 0.670 |
| Precision | 0.997 | 0.981 |
| Recall | 0.964 | 0.954 |
Known limitations
- Detection on male character eyes is improved as of v2.0 but still less reliable than on female characters.
- Trained on anime and semi-realistic style images β also tested well on realistic styles, though not extensively validated across every art style.
- Dataset size (286 images as of v2.0) β strong validation metrics, but a larger dataset would improve robustness further.
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)
Easiest method: Search "eye" in ComfyUI-Manager's Install Models menu and install directly β no manual download needed.
Manual method:
- 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
- 973


