[diffusion] Postprocess: implement frame interpolation using RIFE#19384
[diffusion] Postprocess: implement frame interpolation using RIFE#19384mickqian merged 14 commits intosgl-project:mainfrom
Conversation
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
You need to add test to the CI |
|
could you add side-by-side video to this PR |
mickqian
left a comment
There was a problem hiding this comment.
well done! a few question though:
- Is this gpu-intensive? if so, will it be faster if this is done as a separate
PipelineStage? - if it's CPU-intensive, will it increase cpu overhead dramatically, thus degrading the throughput?
|
Thank you so much for the review ! @Prozac614 I already addressed your comments. For this one
Do we need add CI for now or shall we add CI after this feature is stable? |
|
Thank you @mickqian for the review! For this comment:
I think it's gpu-intensive. Probably this could be faster as a separate |
Add CI before we merge this PR |
|
/tag-and-rerun-ci |
|
Additionally, by keeping model execution on the API server, is there a potential risk of triggering OOM under extreme concurrency scenarios. UPDATE: RIFE model execution on the API server only occurs when return_file_paths_only == False, should we integrate this into GPU worker? |
Thank you @A1c0r-Z for the review! I just checked RIFE actually runs on the GPU worker side in the default (and almost all practical) configurations, not on the API server. |
|
nicely done |
Motivation
Part of #18327, implement frame interpolation using RIFE v4.22 lite.
User can run with
sglang generate --model-path Wan-AI/Wan2.2-T2V-A14B-Diffusers --prompt "a dog running through a park" --num-frames 81 --enable-frame-interpolation --frame-interpolation-exp 1Modifications
Add a new module in runtime directory, port RIFE implementation and run it after generation.
Accuracy Tests
Before frame interpolation
before-frame-interpolation.mp4
After frame interpolation
after-frame-interploation.mp4
Benchmarking and Profiling
N/A
Checklist
Review Process
/tag-run-ci-label,/rerun-failed-ci,/tag-and-rerun-ci