mirror of
https://github.com/lllyasviel/Fooocus.git
synced 2026-08-16 13:13:16 +02:00
add nsfw image censoring
activatable via config, uses CompVis/stable-diffusion-safety-checker
This commit is contained in:
@@ -268,6 +268,11 @@ default_overwrite_switch = get_config_item_or_set_default(
|
||||
default_value=-1,
|
||||
validator=lambda x: isinstance(x, int)
|
||||
)
|
||||
default_black_out_nsfw = get_config_item_or_set_default(
|
||||
key='default_black_out_nsfw',
|
||||
default_value=False,
|
||||
validator=lambda x: isinstance(x, bool)
|
||||
)
|
||||
|
||||
|
||||
def add_ratio(x):
|
||||
|
||||
Reference in New Issue
Block a user