5c9b5ef69e
主要改动 1. 阿里云通用抠图接入(新增 platform-matting crate) 手搓阿里云 VIAPI 通用抠图接口(ACS3-HMAC-SHA256 签名),跨区输入走临时桶通道。 图片抠图升级为三档降级:BgFilter → 阿里云 → 本地键色兜底。 动作视频逐帧抠图改用阿里云,remove_editor_generated_green_screen_background 降为最后兜底。 2. 背景色不再写死绿色,改多背景色自动决策 动作视频背景色和生图一样从候选调色板自动选,选项继承。 3. 视觉背景色决策(修"蓝撞蓝") 让 LLM 看参考图选背景色(gpt-4o-mini 视觉模型,路由到 VectorEngine 视觉客户端),修复原纯文本盲选。 4. 背景色候选硬过滤器(新增 editor_screen_background_filter) 按参考图前景配色算 Lab 危险质量 + 皮肤专属三判据(ΔE 距离 / 色调投影 / RGB 分离)剔除撞色候选,LLM 只在安全集合里审美选。露肤角色自动收敛到冷区。新增"灰竹绿"候选补齐安全弧绿色段。 5. 源图合成到背景色(修视频背景变白) 透明源图先填成选定实色再发给 Ark,视频背景确定性等于抠图键色,不再赌模型服从提示词。 6. screenColorHex 结构化记录 + 死代码清理 四条链路统一把实际背景色写进 generation_inputs,修复生图链路"抠图背景色"字段从未生效的旧逻辑。 清理前端抠绿 + qwenSprite 死代码,移除一次性探针示例。 Reviewed-on: https://git.genarrative.world/git/GenarrativeAI/Genarrative/pulls/75 Reviewed-by: kdletters <kdletters@qq.com> Co-authored-by: Linghong <ink29535@proton.me> Co-committed-by: Linghong <ink29535@proton.me>
81 lines
3.1 KiB
TOML
81 lines
3.1 KiB
TOML
[package]
|
|
name = "api-server"
|
|
edition.workspace = true
|
|
version.workspace = true
|
|
license.workspace = true
|
|
|
|
[dependencies]
|
|
aes = { workspace = true }
|
|
async-stream = { workspace = true }
|
|
axum = { workspace = true, features = ["ws"] }
|
|
base64 = { workspace = true }
|
|
cbc = { workspace = true }
|
|
bytes = { workspace = true }
|
|
dotenvy = { workspace = true }
|
|
hex = { workspace = true }
|
|
image = { workspace = true, features = ["jpeg", "png", "webp"] }
|
|
http-body-util = { workspace = true }
|
|
reqwest = { workspace = true, features = ["json", "multipart", "rustls-tls"] }
|
|
webp = { workspace = true }
|
|
module-ai = { workspace = true }
|
|
module-assets = { workspace = true, features = ["server-service"] }
|
|
module-auth = { workspace = true }
|
|
module-big-fish = { workspace = true }
|
|
module-bark-battle = { workspace = true }
|
|
module-combat = { workspace = true }
|
|
module-creative-agent = { workspace = true }
|
|
module-custom-world = { workspace = true }
|
|
module-editor-agent = { workspace = true }
|
|
module-inventory = { workspace = true }
|
|
module-match3d = { workspace = true }
|
|
module-npc = { workspace = true }
|
|
module-puzzle = { workspace = true }
|
|
module-puzzle-clear = { workspace = true }
|
|
module-runtime = { workspace = true }
|
|
module-runtime-story = { workspace = true }
|
|
module-runtime-item = { workspace = true }
|
|
module-square-hole = { workspace = true }
|
|
module-story = { workspace = true }
|
|
module-visual-novel = { workspace = true }
|
|
platform-agent = { workspace = true }
|
|
platform-audio = { workspace = true }
|
|
platform-auth = { workspace = true }
|
|
platform-hyper3d = { workspace = true }
|
|
platform-image = { workspace = true }
|
|
platform-llm = { workspace = true }
|
|
platform-matting = { workspace = true }
|
|
platform-oss = { workspace = true }
|
|
platform-speech = { workspace = true }
|
|
platform-wechat = { workspace = true }
|
|
hmac = { workspace = true }
|
|
ring = { workspace = true }
|
|
serde = { workspace = true }
|
|
serde_json = { workspace = true }
|
|
sha1 = { workspace = true }
|
|
sha2 = { workspace = true }
|
|
shared-contracts = { workspace = true, features = ["oss-contracts"] }
|
|
shared-kernel = { workspace = true }
|
|
shared-logging = { workspace = true }
|
|
socket2 = { workspace = true }
|
|
spacetime-client = { workspace = true }
|
|
tokio = { workspace = true, features = ["macros", "rt-multi-thread", "net", "time", "sync", "fs", "io-util", "signal", "process"] }
|
|
tokio-stream = { workspace = true }
|
|
futures-util = { workspace = true }
|
|
time = { workspace = true, features = ["formatting"] }
|
|
tower-http = { workspace = true, features = ["trace"] }
|
|
tracing = { workspace = true }
|
|
opentelemetry = { workspace = true }
|
|
url = { workspace = true }
|
|
urlencoding = { workspace = true }
|
|
uuid = { workspace = true, features = ["v4"] }
|
|
zip = { workspace = true, features = ["deflate"] }
|
|
|
|
[target.'cfg(windows)'.dependencies]
|
|
windows-sys = { workspace = true, features = ["Win32_Foundation", "Win32_System_Diagnostics_ToolHelp", "Win32_System_ProcessStatus", "Win32_System_Threading"] }
|
|
|
|
[dev-dependencies]
|
|
base64 = { workspace = true }
|
|
http-body-util = { workspace = true }
|
|
reqwest = { workspace = true, features = ["json", "multipart", "rustls-tls"] }
|
|
tower = { workspace = true, features = ["util"] }
|