stable-diffusion-webui icon indicating copy to clipboard operation
stable-diffusion-webui copied to clipboard

Add NSFW filter to preview images

Open yspacedev opened this issue 2 years ago • 2 comments

This does cause a performance hit, but with parallel processing, it's not much.

This has been tested on an earlier version of the code, but it should still work.

yspacedev avatar Oct 31 '22 22:10 yspacedev

This will throw an error on the first generation after SD is started for whatever reason (has to do with NoneType and a function). After that, it works fine.

yspacedev avatar Nov 01 '22 13:11 yspacedev

This happens during the first final image safety check. For whatever reason the preview images are checked with no errors.

yspacedev avatar Nov 01 '22 22:11 yspacedev

nsfw detection is in an extension now; if you want, you can copy it and add your improvements there

AUTOMATIC1111 avatar Jan 04 '23 15:01 AUTOMATIC1111

is there any way to get the nsfw extension working with the API?

jamesblackwell avatar Feb 28 '23 09:02 jamesblackwell