feat: build custom Facefusion image with NSFW filter patch baked in
This commit is contained in:
8
ai/Dockerfile
Normal file
8
ai/Dockerfile
Normal file
@@ -0,0 +1,8 @@
|
||||
FROM facefusion/facefusion:3.5.0-cpu
|
||||
|
||||
# Patch content_analyser.py to disable NSFW filter
|
||||
RUN sed -i '197s/.*/\treturn False # Patched: NSFW filter disabled/' /facefusion/facefusion/content_analyser.py && \
|
||||
grep -q 'return False.*Patched' /facefusion/facefusion/content_analyser.py || (echo "ERROR: Patch failed!" && exit 1)
|
||||
|
||||
# Verify patch was applied
|
||||
RUN echo "NSFW filter patch successfully applied to image"
|
||||
Reference in New Issue
Block a user