The output of [`ControlNetModel`]. Args: down_block_res_samples (`tuple[torch.Tensor]`): A tuple of downsample activations at different resolutions for each downsampling block. Each tensor should be of shape `(batch_size, channel * resolution, height //resol
| 45 | |
| 46 | @dataclass |
| 47 | class ControlNetOutput(BaseOutput): |
| 48 | """ |
| 49 | The output of [`ControlNetModel`]. |
| 50 | |
| 51 | Args: |
| 52 | down_block_res_samples (`tuple[torch.Tensor]`): |
| 53 | A tuple of downsample activations at different resolutions for each downsampling block. Each tensor should |
| 54 | be of shape `(batch_size, channel * resolution, height //resolution, width // resolution)`. Output can be |
| 55 | used to condition the original UNet's downsampling activations. |
| 56 | mid_down_block_re_sample (`torch.Tensor`): |
| 57 | The activation of the middle block (the lowest sample resolution). Each tensor should be of shape |
| 58 | `(batch_size, channel * lowest_resolution, height // lowest_resolution, width // lowest_resolution)`. |
| 59 | Output can be used to condition the original UNet's middle block activation. |
| 60 | """ |
| 61 | |
| 62 | down_block_res_samples: Tuple[torch.Tensor] |
| 63 | mid_block_res_sample: torch.Tensor |
| 64 | |
| 65 | |
| 66 | class ControlNetConditioningEmbedding(nn.Module): |