Cleaner solution based on Reddit community feedback: - Patch content_analyser.py to return False (always safe) - Remove unused config file - Remove config volume mount from compose - Much simpler and more reliable than file deletion approach Credit: https://www.reddit.com/r/StableDiffusion/comments/1m2w5af/ 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
9 lines
328 B
Bash
Executable File
9 lines
328 B
Bash
Executable File
#!/bin/sh
|
|
echo "Patching Facefusion to disable NSFW filter..."
|
|
|
|
# Patch content_analyser.py to always return False (content is safe)
|
|
sed -i '197s/.*/\treturn False # Patched: NSFW filter disabled/' /facefusion/facefusion/content_analyser.py
|
|
|
|
echo "NSFW filter disabled. Starting Facefusion..."
|
|
exec python -u facefusion.py run
|