black-forest-labs / flux

Official inference repo for FLUX.1 models
Apache License 2.0
15.34k stars 1.1k forks source link

Add nsfw check for prompt and fastAPI demo script #162

Open lone17 opened 4 weeks ago

lone17 commented 4 weeks ago
LordMatyc commented 1 week ago

Hola

CHJ85 commented 3 days ago

There are already two nsfw checks in place that you can activate via parameters. Also, simply saying "nsfw" ain't gonna do much. You have to explicitly let the model know what is and what isn't "nsfw". Because NSFW is just an idea. And it's also subjective. To most people, nsfw means gore and porn. To some, even nudity or seeing a butt and a penis is nsfw. Depends who you ask and what country you visit. But overall, FLUX is quite good at spotting "inappropriate" content. Even without these checks enabled, it's usually quite safe for work.