Skip to content

Improve the end-to-end character replacement workflow - #555

Draft
FayeSpica wants to merge 6 commits into
ThinkFlowLab:mainfrom
FayeSpica:feat/character-replacement-workflow
Draft

FayeSpica wants to merge 6 commits into
ThinkFlowLab:mainfrom
FayeSpica:feat/character-replacement-workflow

Conversation

@FayeSpica

@FayeSpica FayeSpica commented Nov 28, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Start from the original video and user-supplied portraits. Plan replacements by person and shot, pin the exact input versions, and check that segment prompts match the saved references before publication.
  • Publish an executable segment plan on the canvas. Track anchors, continuations, and per-segment results so the agent and user can inspect a run and retry individual takes.
  • Assemble approved replacements with untouched source ranges and the source soundtrack. Check cut positions, asset versions, and rendered media against the saved plan.

Linked issue

  • Confirm a linked issue or mark this as standalone.

Labels

  • Suggested labels are type:feat, area:harness, area:canvas, and area:timeline.

Test plan

  • Local: 116 focused Python tests and 65 frontend tests passed. TypeScript, i18n, and generated contract checks passed.
  • Before requesting review: Run a fresh browser and real-provider workflow from planning through assembly.
  • Left to CI: Full Release checks.

Evidence that it works

Goodnight character replacement canvas with source segments, portraits, timeline, and Pi chat

The Goodnight canvas shows the five source segments, two reference portraits, source audio, generation nodes, the editable timeline, and the Pi chat. This records the project setup and segment execution in progress. Full real-provider assembly and creative acceptance are still pending.

  • Attach a fresh Agent run showing its saved plan, segment execution, and verified timeline output.

Provider verification

  • The scope of real-provider verification still needs to be completed. In the local Goodnight experiment, the Agent encountered a catalog lock. A separate API run produced an opening clip using Turbo v1.2, with visible reference-portrait leakage and a Jensen identity mismatch. Speaker binding and end-to-end creative quality remain unverified.

Bilingual UI

  • Verify the changed canvas flows and workflow instructions in both zh-CN and en-US.

Comment on lines +12 to +18
PROMPT_TEMPLATE = Environment(
loader=FileSystemLoader(Path(__file__).resolve().parent),
autoescape=False,
trim_blocks=True,
lstrip_blocks=True,
undefined=StrictUndefined,
).get_template("head_prompt.jinja")
## summary
Bind chat references to exact source versions and prepare H3 segment guides from saved inputs.
Run segment generation and final assembly through the shared Pipeline and validate frame delivery.

Signed-off-by: Weiming Liao <liaowm5@gmail.com>
@FayeSpica
FayeSpica force-pushed the feat/character-replacement-workflow branch from 49ab560 to 7636269 Compare November 29, 2026 05:03
FayeSpica and others added 5 commits November 29, 2026 15:59
## summary
Define source tracks and portrait identities separately, render per-shot
visibility and face continuity, and preserve the synchronized source audio cue.

Signed-off-by: Weiming Liao <liaowm5@gmail.com>
Signed-off-by: Weiming Liao <liaowm5@gmail.com>
## summary

Record per-shot wardrobe and action, preserve close-up framing, and prefer 768p for supported FastH3 head replacements.

Validate guide slots against group-to-solo cuts and cover the prompt and planning rules with focused tests.

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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants