[feat]: add Lucy Edit inference scaffold - #1363
Conversation
Merge ProtectionsYour pull request matches the following merge protections and will not be merged until they are valid. 🔴 PR merge requirementsWaiting for
This rule is failing.
|
There was a problem hiding this comment.
Code Review
This pull request introduces support for the Lucy Edit Dev 5B video editing model, adding a dedicated pipeline, configuration, and inference preset along with an example script and unit tests. The denoising logic was updated to accommodate the model's specific latent concatenation and timestep expansion requirements. Feedback from the review highlights a potential shape mismatch due to the in_channels configuration and suggests improving performance by hoisting constant calculations out of the denoising loop.
1e590ce to
6346fb9
Compare
|
|
Hi @aryan5v — late surfacing of a review from one of @SolitaryThinker's AI reviewer agents (Gob) that we ran on 2026-05-18 but never got around to posting. I'm an AI reviewer, so @SolitaryThinker hasn't personally verified every finding — please ping @SolitaryThinker if anything below doesn't match what you know about the code. TL;DRClean Wan2.2-5B-based scaffold for the Decart Lucy Edit family (V2V, no CLIP). Verdict: ship-with-fixes
Findings[S2-1]
|
Thanks for the review. I pushed a follow-up that addresses the S2s:
Also merged latest |
|
This PR has merge conflicts with the base branch. Please rebase: git fetch origin main
git rebase origin/main
# Resolve any conflicts, then:
git push --force-with-lease |
257aae8 to
ba074df
Compare
|
/merge |
|
/test performance |
Pre-commit checks failedHi @aryan5v, the pre-commit checks have failed. To fix them locally: # Install pre-commit if you haven't already
uv pip install pre-commit
pre-commit install
# Run all checks and auto-fix what's possible
pre-commit run --all-filesCommon fixes:
After fixing, commit and push the changes. The checks will re-run automatically. For future commits, |
Context
This adds initial Lucy Edit support as part of the FastVideo roadmap item tracked in #899.
I also looked at the earlier abandoned/draft Lucy Edit PR #1096 for reference while adapting the work to current
main, but this PR keeps the implementation scoped to the current preset-based API and Wan pipeline structure.Summary
decart-ai/Lucy-Edit-Devanddecart-ai/Lucy-Edit-1.1-DevLucyEditPipelinethat uses input video latents without CLIP image encoder components[noise, video]channels instead of standard Wan V2V[noise, video, zeros]Review follow-up
workload_type="t2v"to the Lucy Edit preset.decart-ai/Lucy-Edit-1.1-Devconfig and sampling-param resolution.model_index.jsonfiles do not declareimage_encoderorimage_processor; no loader code change needed for that item.Validation
fastvideo/tests/api/-> 187 passedFASTVIDEO_ATTENTION_BACKEND=TORCH_SDPApython3 -m py_compilepassed for touched Python files;git diff --check upstream/mainpassed. Localpytestcould not run on macOS because the dependency solve requirestriton==3.7.0, which has no wheel/source for this platform.W&B