MCPcopy Create free account
hub / github.com/OpenImagingLab/FlashVSR / forward

Method forward

diffsynth/models/sdxl_ipadapter.py:25–28  ·  view source on GitHub ↗
(self, image_embeds)

Source from the content-addressed store, hash-verified

23 self.norm = torch.nn.LayerNorm(cross_attention_dim)
24
25 def forward(self, image_embeds):
26 clip_extra_context_tokens = self.proj(image_embeds).reshape(-1, self.clip_extra_context_tokens, self.cross_attention_dim)
27 clip_extra_context_tokens = self.norm(clip_extra_context_tokens)
28 return clip_extra_context_tokens
29
30
31class IpAdapterModule(torch.nn.Module):

Callers

nothing calls this directly

Calls 1

normMethod · 0.80

Tested by

no test coverage detected