Skip to content

u/SweetLikeACandy

In this archive from Sep 2024 to Aug 2026

0
posts
271
comments
0
media
781
score
1 saved before deletion

I run the project through a llm locally since I don't want to install the thing, below is the summary. In short yes, there are other checks involved you have to bypass/disable them manually like we did with the previous 2.

The NSFW detection logic is primarily handled in facefusion\facefusion\content_analyser.py. Key functions include:

  • detect_nsfw(vision_frame): Uses three models (nsfw_1, nsfw_2, nsfw_3) to detect NSFW content; returns True if at least two models agree (thresholds: 0.2 for nsfw_1, 0.25 for nsfw_2, 10.5 for nsfw_3).
  • analyse_frame(vision_frame): Calls detect_nsfw for individual frames.
  • analyse_image(image_path): Reads the image and analyzes it.
  • analyse_video(video_path, trim_frame_start, trim_frame_end): Analyzes frames at video FPS intervals; returns True if >10% of checked frames are NSFW.
  • analyse_stream(vision_frame, video_fps): Checks frames periodically during streaming.

These checks are invoked in workflows before processing:

  • In facefusion\facefusion\workflows\image_to_image.py:38-39, analyse_image is called; if NSFW, returns error code 3.
  • In facefusion\facefusion\workflows\image_to_video.py:47-48, analyse_video is called; if NSFW, returns error code 3.
  • In facefusion\facefusion\streamer.py:30-32, analyse_stream releases the camera capture if NSFW.
  • In facefusion\facefusion\uis\components\preview.py:226-238, analyse_frame obscures the frame if NSFW.
1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

โ†orโ†’
Previous / next file
โ†‘orโ†“
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.