The output of [`BrushNetModel`]. Args: up_block_res_samples (`tuple[torch.Tensor]`): A tuple of upsample activations at different resolutions for each upsampling block. Each tensor should be of shape `(batch_size, channel * resolution, height //resolution, w
| 35 | |
| 36 | @dataclass |
| 37 | class BrushNetOutput(BaseOutput): |
| 38 | """ |
| 39 | The output of [`BrushNetModel`]. |
| 40 | |
| 41 | Args: |
| 42 | up_block_res_samples (`tuple[torch.Tensor]`): |
| 43 | A tuple of upsample activations at different resolutions for each upsampling block. Each tensor should |
| 44 | be of shape `(batch_size, channel * resolution, height //resolution, width // resolution)`. Output can be |
| 45 | used to condition the original UNet's upsampling activations. |
| 46 | down_block_res_samples (`tuple[torch.Tensor]`): |
| 47 | A tuple of downsample activations at different resolutions for each downsampling block. Each tensor should |
| 48 | be of shape `(batch_size, channel * resolution, height //resolution, width // resolution)`. Output can be |
| 49 | used to condition the original UNet's downsampling activations. |
| 50 | mid_down_block_re_sample (`torch.Tensor`): |
| 51 | The activation of the midde block (the lowest sample resolution). Each tensor should be of shape |
| 52 | `(batch_size, channel * lowest_resolution, height // lowest_resolution, width // lowest_resolution)`. |
| 53 | Output can be used to condition the original UNet's middle block activation. |
| 54 | """ |
| 55 | |
| 56 | up_block_res_samples: Tuple[torch.Tensor] |
| 57 | down_block_res_samples: Tuple[torch.Tensor] |
| 58 | mid_block_res_sample: torch.Tensor |
| 59 | |
| 60 | |
| 61 | class BrushNetModel(ModelMixin, ConfigMixin): |