conditioning
¶
Conditioning stage for diffusion pipelines.
Classes¶
fastvideo.pipelines.stages.conditioning.ConditioningStage
¶
Bases: PipelineStage
Stage for applying conditioning to the diffusion process.
This stage handles the application of conditioning, such as classifier-free guidance, to the diffusion process.
Functions¶
fastvideo.pipelines.stages.conditioning.ConditioningStage.forward
¶
forward(batch: ForwardBatch, fastvideo_args: FastVideoArgs) -> ForwardBatch
Apply conditioning to the diffusion process.
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 applied conditioning. |
Source code in fastvideo/pipelines/stages/conditioning.py
fastvideo.pipelines.stages.conditioning.ConditioningStage.verify_input
¶
verify_input(batch: ForwardBatch, fastvideo_args: FastVideoArgs) -> VerificationResult
Verify conditioning stage inputs.
Source code in fastvideo/pipelines/stages/conditioning.py
fastvideo.pipelines.stages.conditioning.ConditioningStage.verify_output
¶
verify_output(batch: ForwardBatch, fastvideo_args: FastVideoArgs) -> VerificationResult
Verify conditioning stage outputs.