This commit is contained in:
toom1996
2026-10-18 17:42:10 +08:00
parent 1b06bd5bda
commit 1de1ec46a6
58 changed files with 5281 additions and 19191 deletions

View File

@ -127,3 +127,22 @@ s4:
base_url: "" # 留空自动推导 https://toomstudio.s3.bitiful.net
style_display: "high" # 高清公开样式名(须在缤纷云控制台建 public 样式 high);或填查询串 w=1080&q=80&fmt=webp
style_thumb: "thumb" # 列表缩略图公开样式名(控制台建 public 样式 thumb);仅用于列表/卡片等小尺寸场景,详情页与大图仍用 style_display。留空则回落 style_display
# 视觉服务(FashionSigLIP):入库时把每张图编码成 768 维归一化向量写入 image_embeddings,
# 后台图集页据此提示「疑似同款」(仅提示,不做任何自动去重)。
# - 服务为独立进程(D:\project\fashion-siglip),仅监听回环地址。
# - enabled=false(默认)时完全跳过 embed 调用;服务不可用/超时/维度不符一律降级为「不写向量」,
# 绝不阻断入库。连续失败达 fail_threshold 次后熔断冷却 5 分钟。
# - dim 须与模型一致(Marqo/marqo-fashionSigLIP 实测 768 维)。
# - similar_threshold 为「疑似同款」余弦相似度阈值,已用真实 runway 数据实测校准:
# 排除同图集后,「不同图」的跨图集最佳相似度上限约 0.90,而「同一张照片」的重复落在 1.0000,
# 故取空隙中点 0.93(0.68 时实测 100% 的图都会挂提示,纯噪音)。
# 环境变量覆盖:VISION_ENABLED / VISION_ENDPOINT / VISION_TIMEOUT / VISION_DIM /
# VISION_SIMILAR_THRESHOLD / VISION_FAIL_THRESHOLD
vision:
enabled: false # env: VISION_ENABLED
endpoint: "http://127.0.0.1:8900" # env: VISION_ENDPOINT
timeout_seconds: 5 # env: VISION_TIMEOUT
dim: 768 # env: VISION_DIM
similar_threshold: 0.93 # env: VISION_SIMILAR_THRESHOLD
fail_threshold: 3 # env: VISION_FAIL_THRESHOLD