Closed Kryptortio closed 1 year ago
Tried installing the stable-diffusion-webui-nsfw-censor extension and that one works fine so I guess it's not a dependency issue. I thought that maybe I had to install CompVis/stable-diffusion-safety-checker
somehow but looks like it's available.
If anyone needs a workaround for this, open the file \stable-diffusion-webui\extensions\sd-webui-stable-horde-worker\stable_horde\job.py
and go to line 207, there you can add some words to the blacklist. E.g. "blacklist": ["nude","naked"]
that will stop a lot of NSFW requests and you can keep adding words if you want.
Would it make sense to move this into StableHordeConfig
and expose it in the configuration UI?
I can confirm the filter is blocking stuff which isn't actually NSFW. To test it I modified my copy to save the actual image to my local drive when submitting a censored image, and this was one example of an image which got blocked:
Edit: I think I found the problem, I'll submit a PR after some more testing to make sure.
Is there existing issue for this?
Does this happen on the latest commit?
What happened?
Changed to not allow NSFW but then everything gets censored.
For example this prompt
easter bunny with a easter egg with the Bitcoin logo, ((realistic)), ((RTX)), highres, ((photorealistic)), dreamlikeart
got censored with the black "NSFW content detected and the client requested it to be blocked".I have tried several images now but everything gets blocked. I get the black censor sometimes when NSFW is allowed as well but I assume that's because the client actually requested it.
Steps to reproduce
No response
What did you expect to happen?
Not accept prompts from stable horde with NSFW words in them.
Stable Diffusion WebUI Commit SHA
22bcc7be428c94e9408f589966c2040187245d81
What operating system are you seeing the problem on?
Windows 11 / 10 / 8
What browsers are you seeing the problem on?
Firefox
Additional information
sd-webui-stable-horde-worker commit hash a3e67b51f706fcca7004656b54eee296a748d8a4
Only using standard extensions and sd-webui-controlnet.