Nodes/ComfyUI-InoNodes/Ino NSFW Detect
ComfyUI Node

Ino NSFW Detect

Classifies the image with Marqo/nsfw-image-detection-384. Returns the original image when SFW. When NSFW and blur_radius > 0, returns a Gaussian-blurred copy; set blur_radius to 0 for detect-only mode (image unchanged, is_nsfw still reflects the verdict). The model is downloaded once on first use and cached by the HuggingFace transformers cache.

By nobandegani·Created about a year ago·Updated 29 days ago· 5
Ino NSFW Detect
  • image
  • image
  • is_nsfw
  • nsfw_score
  • sfw_score
  • message
threshold0.50
blur_radius30
model_idMarqo/nsfw-image-detection-384
use_gpufalse
CategoryInoImageHelper

Inputs (5)

NameTypeDefaultDescription
imageIMAGE
thresholdFLOAT0.500–1NSFW score above which the image is flagged.
blur_radiusoptINT300–200Gaussian blur radius applied to flagged images. Set to 0 to skip blurring even when the image is flagged (detect-only mode).
model_idoptSTRINGMarqo/nsfw-image-detection-384HuggingFace model id. Must be an image-classification model with NSFW/SFW labels.
use_gpuoptBOOLEANfalseRun the classifier on CUDA when available. CPU is recommended to avoid evicting diffusion weights from VRAM.

Outputs (5)

NameTypeDescription
imageIMAGE
is_nsfwBOOLEAN
nsfw_scoreFLOAT
sfw_scoreFLOAT
messageSTRING