feat: AI换脸+海报门控——PROTECTED_TOOLS加face-swap/poster-maker; /ai/face-swap处理器(403授权提示/log_usage/multipart/换脸主流程走ai/img图链路); 换脸引擎懒加载(buffalo_l+inswapper_128, CPUExecutionProvider, 多脸取最大); Dockerfile pip装insightface+COPY face-models(855MB不入库)
This commit is contained in:
1 parent
0cec894ba8
commit
5d79d653ac
3 files changed
+151
-2
No files matched your search
@@ -7,7 +7,10 @@ RUN apt-get update \
|
||||
# models are pre-downloaded on the host (build env has no internet)
|
||||
RUN pip install --no-cache-dir piper-tts faster-whisper
|
||||
RUN pip install --no-cache-dir -i https://pypi.tuna.tsinghua.edu.cn/simple "rembg[cpu]"
|
||||
# AI 换脸: insightface(纯Python wheel 免编译) + buffalo_l人脸检测 + inswapper_128换脸模型(宿主已预置)
|
||||
RUN pip install --no-cache-dir -i https://pypi.tuna.tsinghua.edu.cn/simple insightface
|
||||
COPY hf-cache /root/.cache/huggingface
|
||||
COPY face-models /app/face-models
|
||||
COPY piper-models /app/piper-models
|
||||
# AI 图片: u2net 抠图模型(预下载) + waifu2x-ncnn-vulkan 无损放大(CPU)
|
||||
COPY ai-models/u2net.onnx /root/.u2net/u2net.onnx
|
||||
|
||||
Reference in new issue
Block a user