2026-04-14 18:09:57 +08:00
2026-04-14 17:00:32 +08:00
2026-04-14 16:59:26 +08:00
2026-04-14 18:09:57 +08:00
2026-04-14 18:09:57 +08:00
2026-04-14 17:00:32 +08:00

ComfyUI-YoloNSFW

English | 中文

A ComfyUI custom node for NSFW (Not Safe For Work) content detection using YOLO models. Automatically detect and optionally blur adult content in images.

This node uses the Erax AI erax-ai/EraX-NSFW-V1.0 model.

Installation

Prerequisites

  • Python 3.10+
  • ComfyUI installed

Install the Node

cd ComfyUI/custom_nodes
git clone https://github.com/er1cw00/ComfyUI-YoloNSFW.git
cd ComfyUI-YoloNSFW
pip install -r requirements.txt

Restart ComfyUI

Model Setup

Models are automatically downloaded on first use and stored in:

ComfyUI/models/nsfw/
├── models/
│   └── nsfw/   
│       ├── erax_nsfw_yolo11n.pt  # Lightweight, fastest
│       ├── erax_nsfw_yolo11s.pt  # Balanced
│       └── erax_nsfw_yolo11m.pt  # Best accuracy, slower

Source: erax-ai/EraX-NSFW-V1.0

Or you can manually download from the link above and place them in the directory.

Usage

Blur Modes

  • none: Returns original image without any blur
  • full: Applies Gaussian blur to the entire image
  • partial: Applies Gaussian blur only to detected NSFW regions (if any)

Screenshot

License

MIT License

S
Description
No description provided
Readme
205 KiB
Languages
Python 100%