FaceFusion 3.2.0 — How to Disable NSFW Filter
So, the old method using PROBABILITY_LIMIT
doesn’t work anymore in FaceFusion 3.2.0 (based on this update 28-04-2025).
But here’s a new way that worked for me — no coding skills needed, just follow these steps:
🚧 Steps:
-
Open this file:
- Go into the
facefusion
folder - Then open the file
facefusion/content_analyser.py
like in this github using notepad or any text editor. - In pinokio:
pinokio/api/facefusion-pinokio.git/facefusion/facefusion/content_analyser.py
or just click the View Folder:
- Go into the
-
Find this part in the file:
- Look for the line that starts with:
def detect_nsfw
- This section is where FaceFusion checks if content is NSFW (Not Safe for Work).
- You’ll see several lines below it that are indented (moved slightly to the right). That’s normal.
- Find this line:
keep_indices = numpy.where(nsfw_scores_raw > 0.2)[0]
- Change it to:
keep_indices = numpy.where(nsfw_scores_raw < 0.0)[0]
✅ That’s the only change.
⚠️ Important:
- Don’t change the spacing in front of the line.
- Python uses indentation (spaces at the beginning of lines) to group code.
- If you break the spacing, the app might crash with a "IndentationError".
- Make sure you use
< 0.0
, not just< 0
, or it might not work right.
-
Save and Restart
- Save the file after editing.
- Restart FaceFusion if it’s already running.
⚠️ Reminder
This disables the NSFW filter — so be responsible with what you use. (I'll be damned, really? I'm too much of a hypocrite for this..)
This is just from trial and error — no guarantee it’ll always work.