longcat_refine_timestep
¶
LongCat refinement timestep preparation stage.
This stage prepares special timesteps for LongCat refinement that start from t_thresh.
Classes¶
fastvideo.pipelines.stages.longcat_refine_timestep.LongCatRefineTimestepStage
¶
Bases: PipelineStage
Stage for preparing timesteps specific to LongCat refinement.
For refinement, we need to start from t_thresh instead of t=1.0, so we: 1. Generate normal timesteps for num_inference_steps 2. Filter to only keep timesteps < t_thresh * 1000 3. Prepend t_thresh * 1000 as the first timestep
Source code in fastvideo/pipelines/stages/longcat_refine_timestep.py
Functions¶
fastvideo.pipelines.stages.longcat_refine_timestep.LongCatRefineTimestepStage.forward
¶
forward(batch: ForwardBatch, fastvideo_args: FastVideoArgs) -> ForwardBatch
Prepare refinement-specific timesteps.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
batch
|
ForwardBatch
|
The current batch information. |
required |
fastvideo_args
|
FastVideoArgs
|
The inference arguments. |
required |
Returns:
| Type | Description |
|---|---|
ForwardBatch
|
The batch with refinement timesteps. |