Skip to content

[feat] character-replacement (6/N): submit FastH3 segments with native guides - #618

Open
FayeSpica wants to merge 3 commits into
ThinkFlowLab:mainfrom
FayeSpica:feat/character-replacement-6n-fasth3-guides
Open

FayeSpica wants to merge 3 commits into
ThinkFlowLab:mainfrom
FayeSpica:feat/character-replacement-6n-fasth3-guides

Conversation

@FayeSpica

@FayeSpica FayeSpica commented Dec 1, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Add opt-in native timeline guides for compatible self-hosted FastH3 deployments.
  • Preserve the requested segment frame count and optional seed. Extract the frozen guide video's frames in the requested order and submit them separately from ordinary reference uploads.
  • Drop the deployment opt-in on endpoint identity changes. Reject a mixture of raw-video guides and separate timeline keyframes.

Linked issue

Labels

  • type:feat, area:provider.

Test plan

  • On the signed candidate: 257 focused Python tests passed and 10 skipped. Frontend build, bilingual key check, generated contract check, example MP4 decode, and verification of both English error-message sets passed.
  • Independent candidate review: 90/100. Base 128230015ce8f58db7232317f51237bdf196b18e, head fbb8a3ff6f4679d897360fbdc5ec9a6129f4ab6e.
  • Release checks and the browser matrix remain to run on the updated head. No real provider was called.

Evidence that it works

The signed candidate reruns the multipart assertions. The archived MP4s below are from the provider-double run and archived at tested commit 78304e47fd619beff07615e53caae9b0661b0e7c. Both decode successfully and have identical bytes. They are linked as evidence only.

  • Actual captured multipart receipts show an anchor without guide files and two conditioned requests using source-frame orders 0→21 and 21→0, both mapped to output frames 0 and 21. Tests assert the extracted PNG bytes for the reverse request and verify that a deployment without opt-in submits nothing.
  • Synthetic input and decoded provider-double result. The provider double deliberately returns the synthetic input bytes.
  • No new visual controls or canvas interactions. The affected capability is the server-side provider request, verified by the multipart receipts.

Provider verification

  • Frame extraction uses real FFmpeg. HTTP acceptance, polling and download use an in-process double. No real model was called and visual generation quality is unverified.

Bilingual UI

  • Stable server errors use bilingual presentation.

@FayeSpica FayeSpica added type:feat New capability or behaviour area:provider Model providers and generation protocols labels Dec 1, 2026

@david6666666 david6666666 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

WITHHOLD 431c998 Refs #555

当前证据暂定 85/100,非批准分:范围 3/3、正确性 2/3、验证 2/3、主张证据 3/3、简洁度 3/3。

已下载 multipart 回执和两段视频,输入与返回文件的 SHA-256 完全相同,符合作者明确声明的替身行为,不当作模型生成证据。回执显示 124 帧、seed 812、两个独立导帧文件,源帧正反序分别映射输出帧 0 和 21。下一步优先用实际部署核对兼容性和接受行为;当前只证实请求编排与替身收发。没有实际调用模型,Release checks 尚未确认全绿,PR 是草稿。

English: The multipart request is evidenced against the provider double, not a real FastH3 deployment.

Dot,代表 @david6666666 作非表决审查。

…e guides

Signed-off-by: Weiming Liao <liaowm5@gmail.com>
Signed-off-by: Weiming Liao <liaowm5@gmail.com>
Signed-off-by: Weiming Liao <liaowm5@gmail.com>
@FayeSpica
FayeSpica force-pushed the feat/character-replacement-6n-fasth3-guides branch from 78304e4 to fbb8a3f Compare December 3, 2026 05:07
@FayeSpica
FayeSpica marked this pull request as ready for review December 3, 2026 05:14

@david6666666 david6666666 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Non-voting COMMENT · technical verdict: REQUEST CHANGES · fbb8a3f · Refs #555

Dot,代表 @david6666666。

导帧把同步 FFmpeg 带进了 async provider 的提交路径。在慢素材上,这不仅拖住当前分段,还会阻塞同一 event loop 的其他请求和取消处理。请把读素材和导帧移到现有的异步阻塞任务边界,补一个慢导帧时其他请求仍能推进的回归。

已核对同 SHA multipart 回执:普通 anchor 没带导帧;正反序各上传两张导帧,目标帧都是 0、21,保留 124 帧与 seed 812。实际下载的两段归档 MP4 均可解码、SHA-256 相同,是作者明确标注的 provider double 回显,不代表真实 FastH3 部署接受了请求或生成成功。

Ran: 核对 diff、#555、回执及媒体,检查 同 SHA Release。Not run: 未调用真实 provider、未独立跑应用;Release Python 尚未完成。

当前证据暂定 73/100,非批准分:范围 3/3、正确性 1/3、验证 2/3、主张证据 3/3、简洁度 2/3。

raise mixed_h3_guide_error()
try:
(data, _, _), = references(self.store, task['projectId'], [guide['assetId']])
images = extract_video_frames(data, guide['frames'])

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里的 form() 是从 async generate() 直接调用的,读素材和 FFmpeg 都是同步的。慢素材导帧时,其他会话和取消请求也得等,不只是当前任务慢。能把这段放到现有 blocking() 边界,并加一条慢导帧时并发请求仍能推进的测试吗?

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:provider Model providers and generation protocols type:feat New capability or behaviour

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants