This model is nipples detection model for ADetailer / ComfyUI-Impact-Pack extension.
Segmentation: Detects the edges of nipples and areolae
nipples_v2_yolov11s-seg.pt
nipples_yolov8s-seg.pt
BBox: Detects nipples with bounding box.
nipples_yolov8s.pt
Notice:
If nipples_v2_yolov11s-seg.pt (Segmentation model) doesn't work, please re-install ultralytics 8.3.216
https://github.com/Haoming02/sd-webui-forge-classic/issues/375#issuecomment-3563484160
https://github.com/Bing-su/adetailer/issues/817#issuecomment-3462595521
nipples_yolov8s-seg.pt and nipples_yolov8s.pt are old YOLO model, so ComfyUI with PyTorch 2.6 and later will prevent these models from loading for security reasons.
(In the case of ADetailer, the problem does not occur because ADetailer loads the model with weights_only=False forcibly)
The workaround is as follows:
Use nipples_v2_yolov11s-seg.pt (recommended)
Add model name to <user_directory>/default/ComfyUI-Impact-Subpack/model-whitelist.txt (refer https://github.com/ltdrdata/ComfyUI-Impact-Subpack#model-loading-configuration-related-to-weights_only)
Usage (ADetailer):
Put this model into ADetailer model folder. (in the case of AUTOMATIC1111 and Forge, "models/adetailer")
Relaunch webui.
Enable Adetailer and select this model.
Adjust threshold, denoising and padding as needed.
Usage (ComfyUI):
Install ComfyUI-Impact-Pack and ComfyUI-Impact-Subpack
Put this model into "/models/ultralytics/segm" (Segmentation model) or "/models/ultralytics/bbox" (BBox model)
Relaunch ComfyUI.
Create workflow using UltralyticsDetectorProvider node and Detailer node. (or drop ComfyUI_sample_workflow.png into ComfyUI and modify embedded workflow)
Adjust threshold, denoise, crop_factor, feather and so on as needed.
ADetailer configuration sample:
The recommended values vary depending on the model, character orientation, and breast size.
Detection model confidence threshold: 0.5
Inpaint mask blur: 8-16
Inpaint denoising strength: 0.3-0.4
Inpaint only masked padding, pixels: 48-96
Notes:
BBox model was trained with anime images only, so use for realistic images is not supported.
Segmentation model was trained with anime and realistic images.
If you get "RuntimeWarning: invalid value encountered in cast x_sample = x_sample.astype(np.uint8)" error message and get black masked image (after that, you only get whole black images unless restart webui) using ADetailer, PyTorch 2.7 and cu128, try changing Ultralytics device to CPU. Reference.

Description
Changed the detection model to YOLO11
The number of training and validation images was increased by approximately 2 times.
Changed training target image size from 640 to 1024
FAQ
Comments (13)
can change model type to `Detection`
@bluelovers THK, I changed the model type
it would be much appreciated if you add a json file for the workflow along side "ComfyUI_sample_workflow.PNG"
@napsumfur225 ComfyUI_sample_workflow.png contains the workflow metadata, so you can restore the workflow by dropping ComfyUI_sample_workflow.png into ComfyUI.
you think such a thing is usable in comfyui as well?
Please see the above description for instructions on how to use it with ComfyUI.
nuko_masshigura sorry for not reading, i didn't think it was possible so i just put out the question
It detects fine, but most of the time I get uneven nipples. the left and right sides have different colors or positions. is there a way to fix that?
@mosukoai It may not be a complete fix, but try the following:
- Decrease the denoising value
- Specify the sampler of Detailer individually and do not use Ancestral samplers for Detailer (for example, use "Euler" instead of "Euler a")
Sadly the V2 does not detect me anything on ReForge even with the settings.
same on Forgo Neo
@norim @DankMemeSpecialist If the Ultralytics version which is installed your Forge Classic / Neo is after 8.2.317, please re-install 8.3.216. I confirmed the issue with Forge Neo and confirmed that installing ultralytics 8.3.216 fixed the issue.
https://github.com/Haoming02/sd-webui-forge-classic/issues/375#issuecomment-3563484160
https://github.com/Bing-su/adetailer/issues/817#issuecomment-3462595521
Any chance for a female genital model? Your nipple model works well, but there isn't a decent model for the lady-bits.



