InvokeAI/ldm/invoke
Lincoln Stein b159b2fe42 add support for safety checker (NSFW filter)
Now you can activate the Hugging Face `diffusers` library safety check
for NSFW and other potentially disturbing imagery.

To turn on the safety check, pass --safety_checker at the command
line. For developers, the flag is `safety_checker=True` passed to
ldm.generate.Generate(). Once the safety checker is turned on, it
cannot be turned off unless you reinitialize a new Generate object.

When the safety checker is active, suspect images will be blurred and
a warning icon is added. There is also a warning message printed in
the CLI, but it can be a little hard to see because of its positioning
in the output stream.

There is a slight but noticeable delay when the safety checker runs.

Note that invisible watermarking is *not* currently implemented. The
watermark code distributed by the CompViz distribution uses a library
that does not seem to be able to retrieve the watermarks it creates,
and it does not appear that Hugging Face `diffusers` or other SD
distributions are doing any watermarking.
2022-10-23 22:26:18 -04:00
..
generator add support for safety checker (NSFW filter) 2022-10-23 22:26:18 -04:00
restoration Correct color channels in upscale using array slicing 2022-10-20 16:52:07 -04:00
args.py add support for safety checker (NSFW filter) 2022-10-23 22:26:18 -04:00
conditioning.py rename all modules from ldm.dream to ldm.invoke 2022-10-08 11:37:23 -04:00
devices.py rename all modules from ldm.dream to ldm.invoke 2022-10-08 11:37:23 -04:00
image_util.py rename all modules from ldm.dream to ldm.invoke 2022-10-08 11:37:23 -04:00
log.py rename all modules from ldm.dream to ldm.invoke 2022-10-08 11:37:23 -04:00
model_cache.py add support for loading VAE autoencoders 2022-10-23 09:33:15 -04:00
pngwriter.py add option to CLI and pngwriter that allows user to set PNG compression level 2022-10-17 22:27:47 -04:00
readline.py Merge branch 'model-switching' into development 2022-10-21 21:27:59 -04:00
seamless.py Split seamless config into separate file 2022-10-17 19:31:20 -04:00
server_legacy.py Add back old dream.py as legacy_api.py 2022-10-12 20:35:56 -04:00
server.py Generalize facetool strength argument 2022-10-14 00:03:06 -04:00
txt2mask.py add !mask command to view output of clipseg 2022-10-20 06:56:50 -04:00