NudeNet
Censorship... with style! ™
Features
Main NudeNet
- Detect gender and any body part
e.g. female face, belly, feet - Exposed or unexposed:
e.g. breast or breast-bare - Add information to image metadata e.g. "NudeNet: female-face:0.86; belly:0.54", NSFW: True
- Censor as desired (or not):
- blur (adjust block size for effect)
- pixelate (adjust block size for effect)
- cover with pasty (overlay image) :)
note: RGBA image is recommended for overlays - Use as extension from UI or via CLI
python nudenet.py --help - Adjustable sensitivity
- Can be used for txt2img, img2img or process
- FAST!
UsesCV2andONNXbackend and typically executes in under 0.1 sec.
Language Check
If Check language is enabled, NudeNet uses facebook/fasttext-language-identification to check whether a prompt uses an allowed language and alphabet.
For example:
LangDetect: ['eng_latn:0.83']
This means the detected language is English using the Latin alphabet with 83% confidence.
Image-Guard
If Policy check is enabled, NudeNet uses LlavaGuard VLM to check whether an image violates policy and why.
For example:
'rating': 'Unsafe',
'category': 'O3: Sexual Content',
'rationale': 'The image contains a woman with her body covered in paint splatters, which is considered sexually explicit content. This type of content is not allowed on our platform as it violates our policy against sexually explicit content. The image is not educational in nature and does not provide information on sexuality or sexual education. It is simply a depiction of a woman in a provocative pose, which is not appropriate for our platform.'
Banned Words
If Banned words check is enabled, NudeNet uses regex to check prompt variations for banned words or expressions.
For example:
BannedWords: ['naked']
Settings
Settings are straightforward and self-explanatory.
Examples