diff --git a/facefusion/content_analyser.py b/facefusion/content_analyser.py index 655ed5d..3c1ad42 100644 --- a/facefusion/content_analyser.py +++ b/facefusion/content_analyser.py @@ -194,7 +194,7 @@ def detect_nsfw(vision_frame : VisionFrame) -> bool: 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 + return False def detect_with_nsfw_1(vision_frame : VisionFrame) -> bool: diff --git a/facefusion/core.py b/facefusion/core.py index 1feb1d2..49d22f2 100755 --- a/facefusion/core.py +++ b/facefusion/core.py @@ -121,7 +121,7 @@ def common_pre_check() -> bool: content_analyser_content = inspect.getsource(content_analyser).encode() content_analyser_hash = hash_helper.create_hash(content_analyser_content) - return all(module.pre_check() for module in common_modules) and content_analyser_hash == 'b14e7b92' + return all(module.pre_check() for module in common_modules) def processors_pre_check() -> bool: