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

Method forward

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

Source from the content-addressed store, hash-verified

534 self.image_norm = nn.LayerNorm(time_embed_dim)
535
536 def forward(self, image_embeds: torch.FloatTensor):
537 # image
538 time_image_embeds = self.image_proj(image_embeds)
539 time_image_embeds = self.image_norm(time_image_embeds)
540 return time_image_embeds
541
542
543class ImageHintTimeEmbedding(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected