MCPcopy Create free account
hub / github.com/TencentARC/BrushNet / ControlNetOutput

Class ControlNetOutput

src/diffusers/models/controlnet.py:47–63  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

45
46@dataclass
47class 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 midde 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
66class ControlNetConditioningEmbedding(nn.Module):

Callers 2

forwardMethod · 0.90
forwardMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected