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

Method forward

src/diffusers/models/embeddings.py:566–571  ·  view source on GitHub ↗
(self, image_embeds: torch.FloatTensor, hint: torch.FloatTensor)

Source from the content-addressed store, hash-verified

564 )
565
566 def forward(self, image_embeds: torch.FloatTensor, hint: torch.FloatTensor):
567 # image
568 time_image_embeds = self.image_proj(image_embeds)
569 time_image_embeds = self.image_norm(time_image_embeds)
570 hint = self.input_hint_block(hint)
571 return time_image_embeds, hint
572
573
574class AttentionPooling(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected