Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 789 Bytes

README.md

File metadata and controls

26 lines (18 loc) · 789 Bytes

sdapi-scripts

scripts for sdapi in Stable Diffusion web UI


CensorScript.py

modified from extension: stable-diffusion-webui-nsfw-censor

I make it running as a selectable script, so you can control NSFW content through sdapi.

NSFW check: run safety_checker, it may take seconds for checking and print results in console:

result

NSFW with mosaic: add mosaic to NSFW content:

images

SDAPI Request

add two paramters below:

txt2imgreq.script_name = "CensorScript"
txt2imgreq.script_args = [true,true]

WebUI interface

setting