feat: 新增AI换脸与AI海报生成两个授权应用——换脸(insightface buffalo_l+inswapper_128本机CPU推理, POST /ai/face-swap, consent必填, 多脸取最大); 海报(25套模板9分类, 改文字/换图片/AI生成配图与背景/图层增删排序/背景预设, 按宽高比匹配上游尺寸档位, 导出1080x1440 PNG); license.ts与relay PROTECTED_TOOLS双端注册使pricing/buy自动+2; relay副本同步(Dockerfile装insightface+COPY face-models不入库)
This commit is contained in:
1 parent
afe73922cc
commit
67c320a2de
14 files changed
+1552
-8
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