fix(#2184): VLM <people>标签解析+扩展外貌属性,修复信任链第4处断链 #2184
Reference in New Issue
Block a user
Delete Branch "fix/xml-people-portrait-prompt"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
根因
#2177 XML重构后VLM prompt契约改为顶层
<people has_person count gender age_range pose expression/>标签,人物信息不再是<product portrait_prompt="...">属性。worker的_xml_to_product只读product属性,VLM正确输出的<people has_person="true" gender="女" ...>被忽略,走默认"无人像",导致:修改
_xml_to_product解析顶层<people>标签:用xp.find_first(raw_text,"people")取人物属性,拼装portrait_prompt;兼容旧schema(product.portrait_prompt优先);无product标签但有人像时也构造结果<people>标签外貌属性:原6属性(has_person/count/gender/age_range/pose/expression)新增hair/skin_tone/face_shape/outfit共10属性,要求VLM给出具体描述(如hair="黑色长直发" outfit="白色衬衫"),凑够60-100字外貌描述供Seedream t2i生成高还原度AI人像验证
<people has_person="true" hair="齐肩微卷黑发" outfit="米色翻领衬衫" ...>→portrait_prompt="女性,青年人物,齐肩微卷黑发,自然肤色,鹅蛋脸型,身着米色翻领衬衫..."→preheat daemon正常启动Seedream t2i→render使用预热AI人像→Seedance走omni_ref+trust_chain→人物相似度>85%关联
🚀 预览环境已部署
🗑️ 预览环境已清理
PR #2184 已关闭或合并,对应的预览环境已被清理。