3 ms·
"Stable Diffusion" is referring to one specific set of models, which were trained on a dataset including some porn. The official implementation has a second mo
by gpm 4y ago
"Stable Diffusion" is referring to one specific set of models, which were trained on a dataset including some porn.
The official implementation has a second model that detects pornography, and replaces outputs including it with a picture of this dude https://www.youtube.com/watch?v=dQw4w9WgXcQ https://www.youtube.com/watch?v=dQw4w9WgXcQ (Not kidding). Removing that is a really simple a one line change in the official script.
- nextaccountic 4y agoI guess the question is whether this toggle is available in the GUI, or if someone has to edit source code
- Gigachad 4y agoFor the CLI version, there was no UI, you have to open the python file and stub out the NSFW check. (trivial though)
- paulgb 4y ago> Not kidding I was amused by this when reading the source. Here’s the function that loads the replacement. https://github.com/CompVis/stable-diffusion/blob/69ae4b35e0a0f6ee1af8bb9a5d0016ccb27e36dc/scripts/txt2img.py#L79 https://github.com/CompVis/stable-diffusion/blob/69ae4b35e0a... It looks like removing line 309 of the same file would disable the check, but I haven’t tried it.
- artdigital 4y agoThis is the line to change to disable the nsfw filter: https://github.com/CompVis/stable-diffusion/blob/69ae4b35e0a0f6ee1af8bb9a5d0016ccb27e36dc/scripts/txt2img.py#L309 https://github.com/CompVis/stable-diffusion/blob/69ae4b35e0a...
- nsfw_hacker 4y agoI dont see this line in V2.1