replicate / cog-flux

Cog inference for flux models
https://replicate.com/black-forest-labs/flux-dev
Apache License 2.0
272 stars 28 forks source link

Improve NSFW image handling #7

Closed zsxkib closed 2 months ago

zsxkib commented 2 months ago

Title: Improve NSFW Image Handling

What this does:

Why we're doing this: Previously, if any image was NSFW, the entire batch would be discarded, which was frustrating if only one image was problematic. Now, we handle this more intelligently.

What the code was doing:

What it does now:

This change makes our image generation more useful and less frustrating for users, allowing them to receive more usable images even if some in the batch were inappropriate.