DEV Community

Cover image for How to Remove NSFW Filter in FaceFusion 3.3.2
Tak23
Tak23

Posted on • Edited on

How to Remove NSFW Filter in FaceFusion 3.3.2

FaceFusion has undergone significant improvements in the 3.3.0 update.
Installation time has been reduced from approximately 8 minutes to 40 seconds.
However, although not officially announced in the 3.3.1 update,
the previously known modification to “content_analyser.py” alone
is no longer sufficient to disable the NSFW Filter.
There are countermeasures available(No code), so please contact us if you are interested.
We do not consider it appropriate to post them here directly.

This countermeasure reflects the strong will of the developers and copyright holders,

and we generally agree with the statement in the official FAQ:

“We don't allow NSFW content due to ethical considerations.”

However, while “ethical considerations” are necessary,

shouldn't this be left to the discretion of individual users?

We also consider this to be a valid point.

Top comments (4)

Collapse
 
luchinco profile image
Luca • Edited

How can I disable the NSFW filter in FaceFusion 3.3.2 - Pinokio? Can you give me specific instructions? Thank you!
Reply luchinco@hotmail.com

Collapse
 
tak23 profile image
Tak23

With the 3.3.1 update, the previously known modification to content_analyser.py is no longer sufficient.
A modification has been added to core.py to detect file tampering and stop execution.
You can use AI to compare core.py with previous versions, find the modified parts, and take appropriate action.
There are also ways to respond without coding. Please check them out.
aiprovideos.com/facefusion-3-3-2-h...

Collapse
 
zachneverdies profile image
zachneverdies

In your content_analyser.py replace the following:

Replace

def analyse_frame(vision_frame : VisionFrame) -> bool:
    return detect_nsfw(vision_frame)
Enter fullscreen mode Exit fullscreen mode

With

def analyse_frame(vision_frame: VisionFrame) -> bool:
    return False
Enter fullscreen mode Exit fullscreen mode

Replace

def detect_nsfw(vision_frame : VisionFrame) -> bool:
    is_nsfw_1 = detect_with_nsfw_1(vision_frame)
    is_nsfw_2 = detect_with_nsfw_2(vision_frame)
    is_nsfw_3 = detect_with_nsfw_3(vision_frame)
    return is_nsfw_1 and is_nsfw_2 or is_nsfw_1 and is_nsfw_3 or is_nsfw_2 and is_nsfw_3
Enter fullscreen mode Exit fullscreen mode

With

def detect_nsfw(vision_frame: VisionFrame) -> bool:
    return False
Enter fullscreen mode Exit fullscreen mode

Next, in core.py, replace

is_valid = hash_helper.check_module_hash(content_analyser, 'content_analyser')
return all(module.pre_check() for module in common_modules) and is_valid
Enter fullscreen mode Exit fullscreen mode

With

is_valid = True
return all(module.pre_check() for module in common_modules) and is_valid
Enter fullscreen mode Exit fullscreen mode

Some comments may only be visible to logged-in visitors. Sign in to view all comments.