Skip to content

[feat] canvas: add the character replacement workshop (#212) - #591

Open
Probiotics5333 wants to merge 2 commits into
ThinkFlowLab:mainfrom
Probiotics5333:codex/character-workshop-212
Open

Probiotics5333 wants to merge 2 commits into
ThinkFlowLab:mainfrom
Probiotics5333:codex/character-workshop-212

Conversation

@Probiotics5333

Copy link
Copy Markdown
Collaborator

概要

多镜头视频中的人物替换需要在一个工程里完成分段、绑定、生成和比较。本 PR 新增角色替换工坊,画布和 Agent 使用同一服务。

关联 #212。

改动

  • 支持按所选模型时长自动分镜、编辑片段、从画布资产库建立角色卡并框选绑定人物。
  • 将人物分析、可选关键帧参考和视频提示词编写接入单段及批量生成。保留候选选择、采纳和任务恢复。
  • 让结果轨跟随当前片段预览,并支持保留原片段、导出原片段、输出成片及下载。拼接使用原音轨和原片段时长。
  • 修复相关的工程冷读、候选预览、设置保存及模型回复处理。

验证

  • 本地 TypeScript/Vite 构建、双语文案、浏览器清单和生成契约检查通过。
  • 本地前端 1,036 项测试通过。相关 Python 套件 260 项通过、5 项跳过。存储冲突修复后又通过 10 项定向测试。
  • 工坊浏览器流程通过,使用真实媒体和模型替身覆盖绑定、候选预览、生成恢复及导出。真实生成效果以附图所示的手动预览为例。

工坊界面

角色替换工坊,原片人物绑定与候选视频预览

- Add a shared canvas and agent workflow for segment detection, character
  binding, prompt writing, optional frame references, and video candidates.
- Preserve the source timeline and audio when previewing or exporting clips
  and finished videos. Keep candidate selection and job recovery durable.
- Fix related project reads, media previews, and editor saves. Cover the
  shared workflow with backend and browser regression tests.

Refs: ThinkFlowLab#212
@github-actions github-actions Bot added area:agent Agent runtime, assistant chat and tools area:docs Documentation / 文档 area:provider Model providers and generation protocols area:timeline Timeline, subtitles and export labels Nov 29, 2026
## summary

Normalize the tooltip source to one final newline so the repository
pre-commit check accepts the file.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:agent Agent runtime, assistant chat and tools area:docs Documentation / 文档 area:provider Model providers and generation protocols area:timeline Timeline, subtitles and export

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant