Add VSR video postprocessing pipeline#316
Open
gtong-nv wants to merge 7 commits into
Open
Conversation
Signed-off-by: Gangzheng Tong <gtong@nvidia.com>
Signed-off-by: Gangzheng Tong <gtong@nvidia.com>
Contributor
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> Signed-off-by: Gangzheng Tong <tonggangzheng@gmail.com>
Collaborator
Author
|
/ok to test 91f0c21 |
Signed-off-by: Gangzheng Tong <gtong@nvidia.com>
Replace the bespoke CLI postprocess mode selector with VideoPostprocessChainConfig.preset discovery, lazy FlashVSR pipeline building, finalize-on-failure handling, and runner-aligned defaults.
Collaborator
Author
|
/ok to test 89aab9c |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add VSR Video Postprocessing Pipeline
Summary
Adds a generic video postprocessing layer that runners can apply after video generation and before writing outputs. The first concrete implementation is FlashVSR, exposed as a lazy, swappable postprocessor that can be enabled from
flashdreams-run.Changes
flashdreams.infra.postprocess, includingVideoSpec,VideoChunk, processor/session interfaces, postprocess chaining, layout conversion, value-range conversion, and chunk concatenation.RunnerConfig.postprocessplus aRunner.postprocess_video_tensor()helper, then wired it into common single-stream offline runners before MP4 output.flashdreams-run --postprocess.*options for enabling FlashVSR presets without constructing VSR models during--no-instantiateconfig inspection.flashvsr.postprocess.FlashVSRPostProcessorConfig, which lazily builds FlashVSR from the first stream dimensions, coalesces arbitrary runner chunks into FlashVSR-compatible chunk sizes, and supports replicate-pad or drop tail handling.CLI options
Top-level postprocess flags are available on every runner and append a FlashVSR processor to the runner's configured chain when
modeis notnone:--postprocess.modenone,flashvsr-v1.1-sparse-2.0,flashvsr-v1.1-sparse-1.5,flashvsr-v1.1-full-attnnone--postprocess.scale2,42--postprocess.chunk-size8,1616--postprocess.devicecuda--postprocess.tail-policyreplicate_pad,dropreplicate_pad--postprocess.compile-network/--postprocess.no-compile-networkFalsetorch.compilein the VSR post-processor--postprocess.use-cuda-graph/--postprocess.no-use-cuda-graphFalseExample:
Inspect the resolved config without loading models: