ComfyUI-YetAnotherSafetyChecker

ComfyUI-YetAnotherSafetyChecker
★ 6

安全过滤NSFW检测阈值控制GPU加速
基于AdamCodd/vit-base-nsfw-detector对图像进行NSFW评分并过滤,支持阈值与GPU加速,轻量快速便于实时筛查。
💡 对生成图像实时打分并按阈值屏蔽不当内容,配合Show Text微调阈值。
🍴 3 Forks💻 Python🔄 2024-07-19
📦
网盘下载
复制链接后前往夸克网盘下载
https://pan.quark.cn/s/e58c8376a81b
📄 README

Just a simple node to filter out NSFW outputs. This node utilizes AdamCodd/vit-base-nsfw-detector to score the outputs. I chose this model because it’s small, fast, and performed very well in my testing. Nudity tends to be scored in the 0.95+ range, but I’ve set the default to 0.8 as a safe baseline.

Usage

The node has 1 image input, 1 image output, a string output, a threshold slider and a cuda toggle. The first image output is the primary output. It will output black unless the input falls below the selected threshold. The string output outputs the score given to the image. This is intended to be used with a show text node to dial in your threshold setting. Finally, the node includes a toggle which will load the model on the gpu for faster processing.

Preview