encoding ¶
Encoding stage for diffusion pipelines.
Classes¶
fastvideo.pipelines.stages.encoding.EncodingStage ¶
EncodingStage(vae: ParallelTiledVAE)
Bases: PipelineStage
Stage for encoding pixel space representations into latent space.
This stage handles the encoding of pixel-space video/images into latent representations for further processing in the diffusion pipeline.
Source code in fastvideo/pipelines/stages/encoding.py
Methods:¶
fastvideo.pipelines.stages.encoding.EncodingStage.forward ¶
forward(batch: ForwardBatch, fastvideo_args: FastVideoArgs) -> ForwardBatch
Encode pixel space representations into latent space.
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 encoded latents. |
Source code in fastvideo/pipelines/stages/encoding.py
fastvideo.pipelines.stages.encoding.EncodingStage.verify_input ¶
verify_input(batch: ForwardBatch, fastvideo_args: FastVideoArgs) -> VerificationResult
Verify encoding stage inputs.
Source code in fastvideo/pipelines/stages/encoding.py
fastvideo.pipelines.stages.encoding.EncodingStage.verify_output ¶
verify_output(batch: ForwardBatch, fastvideo_args: FastVideoArgs) -> VerificationResult
Verify encoding stage outputs.