Glasses/Sunglasses BBox/Segmentation for ADetailer
Credits to mnemic for this article and Anzhc for this ADetailer model (see for more information)
Installation:
Download the zip archive
Extract the model into your ADetailer model folder
For the WebUIs like Auto1111, Forge and SD.next it should be in models/adetailer
For ComfyUI it should be in models/ultralytics/segm (or models/ultralytics/bbox for the bbox version)
Start it up (full restart if already had it open) and select the model from the ADetailer tab/node (tip for webui: you can go to Settings→Adetailer and change the number of models that can be used up to 10, very useful if you want to use more than 2 ADetailer models)
Make sure to have correct Detection thresholds/inpaint strength and so on for your images
Generate them glasses!
Works pretty well for detecting glasses or sunglasses. Might have trouble detecting glasses with tiny frame (like those transparent ones). I might work more on this in the future. Please tell me what you think. Thanks! 😊
Description
Initial Bounding Box version
FAQ
Comments (6)
Is there a way to use segmentation only (without bbox)? Every node I use reports an error that bbox isn't connected when I use segm only. Thank you for making this! ^^
@Futopia Make sure that the segm models are in: models/ultralytics/segm/segmmodel.safetensors
Likewise for the bbox: models/ultralytics/bbox/bboxmodel.safetensors
Nodes from the impact pack should work for this. I can try to make a draft workflow if you need it. Here are the nodes to use: UtralyticsDetectorProvider (with the segm out and a segm model selected) → SEGM Detector (Detailer) → Detailer (SEGS) → Done.
Hope this fixes your issue and enjoy the model ❤️.
@Pitpe11 All the guides and workflow I went through and this... just works... Thank you so much! The eyes are beautiful! ^^ Though there was no "SEGM Detector (Detailer)" in the list. I used "SEGM Detector (SEGS)" instead, and it worked perfectly. Nothing really needed fixing, I just needed some knowledge, which you provided. Now I can use segms for hair and skin too. Not sure I'll need to, but it's nice to have the option. Thanks again! ❤️
Hey! Just started using these and you can just connect the BBox from the Ultralytics detector even if you're not loading a BBox model. It'll just ignore it, but the input will be happy to be connected. It's worked fine for all my detailers so far. Hope that helps anyone who sees this in the future!
There's a "Detection" model type now you could change this to, so people can find it easier. I'm commenting this on most Yolo models that are still stuck in "Other".
@32Bitshifter Oh awesome, thanks for letting me know. I'll update the details. ❤️








