CivArchive
    Eyes detection (Adetailer) - v1.0
    NSFW
    Preview 2651323
    Preview 2650793
    Preview 2650794
    Preview 2650795
    Preview 2650835
    Preview 2650857
    Preview 2650866
    Preview 2650975
    Preview 2650996
    Preview 2651036
    Preview 2651084
    Preview 2651082
    Preview 8862286

    This model detects eyes so you can add more detail to the eyes.

    Can be used for:

    • Adding details to eyes

    • Enhance character specific eyes (Hu Tao, AI Hoshino, etc.)

    • Use with models for eyes

    How to use:

    Open Adetailer tab

    • Open detection tab

    • Insert you prompts, leave empty for same prompts as main generation

    • Decide confidence threshold (recommended 0.3-0.5) usually finds it around 0.8 or higher but might not find the eye if character has disfigured eye or looking away.

    • Mask only the top

      • Apply to top (2) highest confidence score.

      • Depends on the amount of eyes you want to detect, default would be 2!

      • Example: character with eyepatch only detect 1

      • Example: Kokushibo from demonslayer has 6 eyes so apply to top 6

      • 0 = default = no limit, all scores above threshold are applied

    • Mask Preprocessing set to merge to do all detections at the same time

      • Use this mainly for an image of a solo character

      • Have a higher threshold so background characters don't get applied

    • Inpainting, choose to leave settings the same as the main generation or custom

    How to install:

    1. Go to https://github.com/Bing-su/adetailer and install Adetailer

    2. Place the this file (Eyes.pt) in "stable-diffusion-webui\models\adetailer"

    3. and reload WebUI.

    Install for Automatic1111:

    1. Open "Extensions" tab.

    2. Open "Install from URL" tab in the tab.

    3. Enter https://github.com/Bing-su/adetailer.git to "URL for extension's git repository".

    4. Press "Install" button.

    5. Wait 5 seconds, and you will see the message "Installed into stable-diffusion-webui\extensions\adetailer. Use Installed tab to restart".

    6. Go to "Installed" tab, click "Check for updates", and then click "Apply and restart UI". (The next time you can also use this method to update extensions.)

    7. Completely restart A1111 webui including your terminal. (If you do not know what is a "terminal", you can reboot your computer: turn your computer off and turn it on again.)

    Check out my posts on my Pixiv: https://www.pixiv.net/en/users/20080642

    If you'd like to support me a little check out my ko-fi page: https://ko-fi.com/yukinoai

    If you want to see all my exclusive (and uncensored) posts check out my Patreon: https://www.patreon.com/Yukino_AI

    Description

    FAQ

    Comments (85)

    216272Sep 24, 2023· 1 reaction
    CivitAI

    Thank you so much! I've been waiting for this. The Eye Mask extension fails to detect anime eyes way too often and this one seems to work well but its hidden behind an API. Hopefully yours will do the trick!

    SnowyYukino
    Author
    Sep 24, 2023

    Hope it works for u, it did for me. When I learned about adetailer I got hyped. Learned making these detection models for computer vision applications for a company while in an internship. Could probably make more but not sure what and a bit time consuming xD

    peeledkotSep 24, 2023· 1 reaction
    CivitAI

    holy shit bro what a coincidence you saved my project

    SnowyYukino
    Author
    Sep 24, 2023

    Wdym? XD

    peeledkotSep 24, 2023

    @YukinoAI I am making a clothes-replacing app and needed an eye detection model to inpaint a superhero mask on top of the person's eyes. Now that I have tested your model, it only seems to work well for anime pics. Still thanks

    sciSep 24, 2023
    CivitAI

    1 issue: since both eyes are inpainted separetly, depending on the noise they might turn out different from eachother. for example one might be bigger than the other, or different shape pupil/different color.

    216272Sep 24, 2023· 5 reactions

    Not a issue. Just set it to 'merge' mode and they will be inpainted at the same time.

    SnowyYukino
    Author
    Sep 24, 2023

    Have learned about adetailer 2 days ago, so not fully into it yet, but would be nice to say if an one eye needs to be different like with lelouch from code geass, ruby/aqua from oshi no ko.
    This model can detect eyes separately but don't think you can choose which eye to prompt what...

    216272Sep 25, 2023

    @YukinoAI Consider making a feature request on the Adetailer github to sort detections by the X axis. I believe there is already a way to split the prompt across each inpaint though I've never tried it: link - so we only need to be able to sort them.

    TrefolderSep 25, 2023

    @Jilhbril Not sure how helpful this is but in case of regular ADetailer, the use of [SEP] seperates out characters when prompting multiple people, maybe it would work at least on a single person prompt in the same way?

    sciSep 25, 2023· 1 reaction

    @Jilhbril yep i found that out shortly after making this post :)

    pkayzeSep 25, 2023· 1 reaction
    CivitAI

    The "how to use" section doesn't actually tell me how to use this. What is it for? How do I use it?

    AI_nsteinSep 25, 2023

    ADetailer, once installed and enabled in your UI, will be a drop-down section below your image generation parameters in A1111. Expand it to find Enable ADetailer at the top, and settings below. These will be various options to select portions of an image to run a quick inpainting sequence on at the end of your generations when enabled.

    pkayzeSep 25, 2023· 4 reactions

    @noahspeaks257 Ok thanks for the info! But I don't see how this is different than just masking the exact area you want for inpainting. Is this for people who can't draw with a mouse or something?

    216272Sep 25, 2023· 2 reactions

    @pkayze Its for people who dont want to do it manually hundreds/thousands of times. By that kind of logic why use SD when you can just draw it yourself?

    pkayzeSep 25, 2023· 4 reactions

    @Jilhbril That's nowhere close to the same analogy. I don't see any batch function in the videos. It seems this is just picking the area for you (with varying confidence, meaning sometimes it may not do it properly) vs. you just putting clicking once with the mask button over each eye. Admittedly I haven't installed it and maybe there's more to it, but unless there's a batch feature where you can set it to it automatically and run on a batch of pics, I don't see how this is better.

    216272Sep 25, 2023· 1 reaction

    @pkayze Do you think you have to adjust its settings every time you change the prompt or something? The 'batch feature' is setting it up right and leaving it enabled while you keep making images and it will inpaint them for you automatically. You can adjust the confidence threshold so only what is very likely to be an eye will be detected and you can also limit it to the top 2 detections so it will ignore characters in the background etc... This is a very powerful tool that even has API and ControlNet support. Its pretty much automated inpainting without the manual labor if that's not something you are interested then that's fine I guess.

    EDIT: if you want to use this on existing imgs you would need to use the API since indeed a 'batch' feature like we have in the 'Extras' tab does not exist yet. Something to consider for a PR.

    SnowyYukino
    Author
    Sep 25, 2023

    @pkayze Updated the 'How to use' part, hope you will be able to use the benefit of this tool. Jilhbril said it best, its for automatically putting your generations instantly through img2img inpaint. Yes manually can be better but also worse. Same with using SD or drawing it yourself. I would recommend installing it and checking it out. Will be more models in the future to help generations. For example i'm thinking of making a anime hand detection model.

    sexner740Sep 25, 2023· 9 reactions
    CivitAI

    You can use them in ComfyUI too. Only copy Eyes.pt to \models\ultralytics\bbox\ in your ComfyUI Directory. You need ImpactNodes installed and then you can simple use the Eye Model with the FaceDetailer from ImpactNodes. Works perfect. Thank you so much for this Model!

    mrqwint22744Sep 25, 2023

    Big thanks!

    harariririSep 27, 2023

    Thanks, I can't figure out how to get it to do both eyes. It only does 1.

    EDIT:

    Sorry, I overcomplicated things by also using the samdetector. It works wonderfully!

    KINGLIFERJan 9, 2024

    @haraririri So to be clear do not use samdetector just bbox?

    narugo1992Sep 26, 2023· 1 reaction
    CivitAI

    Hello, we are working on something similar—developing a specialized data processing tool for anime. We've already annotated over 5,000 images of various anime and illustrations to detect characters' eyes in the frame. Would you be interested in sharing the dataset you used for training? In return, if you're open to it, we can also publicly share our annotated training set and models, enabling both of us to train higher-quality models. We hope you can consider this proposal.

    ttb2112Sep 27, 2023
    CivitAI

    Thank you for this! The other eye model for ADetailer I was using wasn't very good. This is better!

    M1dnightSep 27, 2023
    CivitAI

    Wow this has transformed my faces! thank you

    jiayu_office202Sep 30, 2023
    CivitAI

    if i use two model of adetailer, ( face and eyes ),which one will affect the rendering image first? if eyes first, then the face model will rerender the eyes ......

    mooseh111Sep 30, 2023

    They process in order, so do the face first and then the eyes

    2358567Sep 30, 2023
    CivitAI

    Hello! Works pretty good and fast! Only problem is that it doesn't seem to work with pupil shape LoRas!
    Although that may be incorrect as I still don't really know if I'm using it correctly, and was still too scared to move the mask processing sliders.

    Or maybe it just doesn't work if they are Inpainting LoRas?

    Any help would be great!

    - Copied from my review

    1100354Oct 1, 2023

    I thought you were supposed to put the lora reference in the detailer's prompt, under the adetailer tab. that seems to work for me. don't ask me though.. I'm a n00b

    SnowyYukino
    Author
    Oct 7, 2023· 1 reaction

    @goronplus Yea that's about right, it should show in prompts of example images if u search the data of the image on A1111 for exmaple

    worgensnackOct 1, 2023
    CivitAI

    I'm not sure if I'm using this right, I have the model selected, but it's not detecting any eyes. even when I set the detection threshold to .05 it still doesn't find any

    SnowyYukino
    Author
    Oct 7, 2023

    It's made using anime styled images so if you are making realistic images it might not work, other than that dunno what's wrong. Hope your problem is already fixed tho

    Noxy_Oct 20, 2023· 2 reactions
    CivitAI

    Even though this does help, the how to is pretty vague, especially at the part where it says to "apply top highest confidence score", it doesn't explain what it is clearly. It would be nice to have at least a recommended parameter so that noobs like me actually know where to go

    SnowyYukino
    Author
    Nov 1, 2023· 1 reaction

    Have changed it a bit, hope this helps! The tool has some guides as well for what all parameters do.

    Noxy_Nov 2, 2023

    @YukinoAI Thanks! and I can't wait for the hand detection!

    darkskyxJul 18, 2024

    I guess itis the part of "Mask only the top k largest (0 to disable)" because that's the option to control how much eyes you want to be detected.

    1685025Nov 20, 2023· 1 reaction
    CivitAI

    How do I prevent the eyes from rendering in different colors?

    Only when I turn this on does this happen.

    MaraderNov 22, 2023

    Try to add colors you don't wanna see in negative in adetailer or lower denoising strength a bit,

    1685025Nov 22, 2023

    @Marader Problem is that it's the same color just vastly different shades.
    I'll try lowering the denoising though.

    MaraderNov 22, 2023· 1 reaction

    @SirDigsbey There's an option in settings, image.png (917×95) (discordapp.net) add the "img2img_color_correction" and if you see this checkbox active image.png (513×64) (discordapp.net) try to disable it and see the results, i think i have similar problem and this relove it. Well that's for a1111, if you using another UI there's probably similar option.

    SophoriumNov 22, 2023· 2 reactions

    @SirDigsbey https://civitai.com/images/3494299 I have almost zero issues with that workflow. The trick is among other things to set the mask to merge, otherwise it paints both eyes without any context for the other.

    MaraderNov 22, 2023

    @Sophorium i think the problem was not with the workflow, but with keeping original color settings.

    SophoriumNov 22, 2023

    @Marader Ok well if it's not heterochromia then I dont know, other than reinforcing eyecolor on the adetailer prompt itself, mine are usually the same shade

    yamage77755Jan 12, 2024

    In the ADetailer tab, there is a Mask Preprocessing tab, right?

    Why don't you set the Mask merge mode to merge in that tab?

    I'm using translation software, so sorry if the sentences are strange.

    MaraderJan 12, 2024

    @yamage77755 didn't know you can merge two mask that not connected😲

    biyof24394819Apr 5, 2024

    Specify an eye color in a custom prompt for AD, without a bunch of (positive) chaff. Without a custom prompt, it's trying to put the contents of your entire prompt in every eye, and the color you get is whatever depending on prompt, denoising, etc. (Don't recommend merge, because then you change the direction the eyes are looking depending on padding->mask dilation and camera angle.)

    SnowyYukino
    Author
    Apr 6, 2024

    @biyof24394819 but merge helps to make eyes look identical and just keep looking at viewer or sideways for example in the prompt

    darkskyxDec 18, 2023
    CivitAI

    I installed it but it doesn't work... Only face_yolo is working for me. Do I need controlNet or something like that?
    Edit: Fixed, but Adetailed is still better...

    SnowyYukino
    Author
    Dec 20, 2023

    Not sure what your settings are but using face_yolo a default one means u have adetailer so then maybe your settings might be incorrect. Also this detection has been trained mainly on anime eyes, so if you are trying to use it on realistic images it might not work. Try setting confidence threshold to 0.1 and the mask only top .. to 2 and see what gets detected. If you have turned on preview image generation per x steps you can see what it detects for example (or just do denoising 1.0 and say black box in prompt) and check the description of this model for guide. Ofc test it with something like a portrait of a single person looking at viewer.

    darkskyxApr 22, 2024

    @SnowyYukino Compared to any face_yolov8 model is doesn't make changes... Even increasing denoising strenght with main values is not working for me, I don't see real changes. That's why I asked if I had to do something apart from installing. I basically wanted a model like face_yolov8 but only for eyes. Those work the best, but sometimes I don't want to change the expression. Probably yours makes very little changes?

    darkskyxApr 22, 2024

    @SnowyYukino Okay... This is what I meant: Here I tested all similar models to your pt model. Imgur: The magic of the Internet
    You need to select MERGED otherwise it won't show the best performance. I've seen another guy posting a picture with the recommended settings. I think you must say it in the description of your model.
    And even then, it is not better than Adetailer in my opinion... Probably because Adetailer has a better inner model for eyes.

    SnowyYukino
    Author
    Apr 27, 2024

    @darkskyx it already did say that...

    SnowyYukino
    Author
    Apr 27, 2024

    @darkskyx glad u found it yourself though but in recommended settings in the description it always said to set it to merged. U can also download an image from examples and see the settings there. This has been an issue for others before as well in other comments but sadly default settings don't turn on merged.

    SnowyYukino
    Author
    Apr 27, 2024

    Was also mentioned earlier with SirDigsbey's comment, but really just read description here everything setting u need to know for this model is explained there and has been since release of this model >_<

    SirHempyDec 21, 2023· 1 reaction
    CivitAI

    Anyone know of something similar for comfyUI? Or is there a way to load this in comfyui I am missing perhaps, lol?

    boudyJan 5, 2024· 7 reactions

    use face detailer (pipe) that comes with comfy impact pack, then move this model in comfyui models in bbox found in ultralytics (so basically move this model in /models/ultralytics/bbox/) then use it as if u are using face detailer (if u don't know how to use it, check facedetailer in comfy impact pack in github, they have a detailed guide with workflows) and it should work like normal face detailer, except now it uses eyes models, so it will detail eyes, i tried it and it's working perfectly, good luck!

    SirHempyJan 5, 2024· 2 reactions

    Awesome, sauce! Thanks a million that makes a heap a sense now that I think about it lol,

    KINGLIFERJan 9, 2024· 1 reaction

    @boudy In Arnold's voice from Predator. "Yooz SUN OF A BITCH!"

    @boudy this create 2 differents masks and is treated 1 at the time in the detailer leading very often to 2 different eyes as for result. in adetailer in a1111 they are corrected simultaneously that lead to a more consistent result.

    @bissonfrederic69429 Noticed. Did you find a solution?

    SnowyYukino
    Author
    Feb 13, 2025

    @jahagafalakajaha656 He said it in his post and in description/info of this model. Using "Merge" helps a lot!

    @jahagafalakajaha656 with flux it's not a prob anymore, but back in the time, yes i was using a crop portion of the face to do the detailer then merged back only the eyes to the original image with some special node, mask composite or something

    MyrrenJan 2, 2024
    CivitAI

    Hello, i use this one, but it makes weird color, like wrong inpaint on eyes.

    necromanserJan 16, 2024
    CivitAI

    Hii, i already downloaded, how to use it???, it's not safentors file

    FlawedCreatorJan 27, 2024· 1 reaction

    Click "Show More" in description, it gives detailed guide on how to install Adetailer extension and use the model for it

    KSinclaireFeb 1, 2024· 1 reaction
    CivitAI

    Is there a good way to prevent this from making changes to the entire face? I've tried reducing the mask dilation/erosion; but so far the only way I've gotten it to avoid inpainting the whole face is to reduce it to the point that it no longer does the eyes, either.

    SnowyYukino
    Author
    Mar 6, 2024

    for anime style generations with default setting in the description of this model u should be fine, there is also a option to only inpaint detected area, thus making no changes to the rest of the image. if you are making real looking images, or imagine with weird eyes, this might mean no eyes are detected but then nothing would happen cuz no detection = inpaint

    biamatsuoMar 21, 2024· 1 reaction
    CivitAI

    Does anyone know of Fooocus Ai is compatible with aDetailers?

    iJWiTGS8May 4, 2024· 8 reactions
    CivitAI

    for me, easily top 5 of the most "useful tools" for SD. I use it on 90%+ of my images https://civitai.com/user/iJWiTGS8/posts - thank you for this ❤️

    SnowyYukino
    Author
    May 5, 2024

    No problem! Want to make more detection models around summer when i have more time, so look forward to it.

    SeikikaiMay 15, 2024· 1 reaction
    CivitAI

    Have You Considered Creating A Model For Eyelashes Or Implement That In This Model? Ai Is Bad At Creating Symmetrical Eyelashes, And A Fix For This Would Be Very Useful.

    SnowyYukino
    Author
    May 20, 2024· 1 reaction

    will keep that in mind for a future model!

    sswamAug 22, 2025

    The eye detailer just detects eyes (including lashes, and potentially brows too if you expand it). Then when it inpaints, it will improve all of them.

    Rangiku209090Jun 22, 2024· 5 reactions
    CivitAI

    are there any pony XL ver?

    Patrol300Jun 25, 2024· 5 reactions

    This is segmentation\bbox model they are universal. From what I know civitai require to specify base model that's why is SD1.5 but this will work with any model since it doesn't affect generation (it's for detection on already existing image)

    SnowyYukino
    Author
    Jun 25, 2024· 11 reactions

    Correct, at the time I had to fill in a base model hence SD1.5 but it's universal and I've been using it with PonyXL models too!

    LeeAeronOct 13, 2024· 2 reactions
    CivitAI

    Thank You for Your work!!!

    SnowyYukino
    Author
    Oct 30, 2024

    No problem, wish I can do more but no time...

    no1idleFeb 26, 2025· 1 reaction
    CivitAI

    This is amazing, can i ask how i can "Apply to top (2) highest confidence score." if i am using Facedetailer with ComfyUI?

    Hola122May 29, 2025· 1 reaction
    CivitAI

    nice xừ

    lk74Oct 24, 2025· 15 reactions
    CivitAI

    For anyone having problem in ComfyUI with detailer generating 2 different eyes, here's a solution.

    1. Dont use FaceDetailer node. Use a combination of SEGS detector (hooking to this model) and SEGS Detailer.

    2. The output of SEGS detector should be passed through a SEGS Merge node before passing into the Detailer.

    This pretty much solves it for me.
    And it seems to me SEGS Merge is necessary. I tried converting them to mask, merge mask, then pass through MaskDetailer, but it doesnt work.

    Can you provide the workflow please, i am having hard time following this.

    lk74Jan 18, 2026

    @mynameisjimcarrey204 sorry, didn't checkup on this site for a while... I uploaded a rough demonstration workflow here

    https://civitai.com/models/2317764?modelVersionId=2607550

    MaruzenskyDec 28, 2025· 2 reactions
    CivitAI

    How to install this to ComfyUI?

    Modern_MeisterJan 7, 2026
    CivitAI

    Very good I don't generate images without it but 100% requires preprocessing Merge to be selected otherwise it'll ruin the results

    Detection
    SD 1.5

    Details

    Downloads
    46,516
    Platform
    CivitAI
    Platform Status
    Available
    Created
    9/24/2023
    Updated
    5/13/2026
    Deleted
    -

    Files

    eyesDetection_v10.zip

    Mirrors

    CivitAI (1 mirrors)

    Available On (1 platform)

    Same model published on other platforms. May have additional downloads or version variants.