MCPcopy Create free account
hub / github.com/YuxuanSnow/Human3Diffusion / forward

Method forward

core/unet_timeImage_cond.py:184–190  ·  view source on GitHub ↗
(self, x, t_emb=None)

Source from the content-addressed store, hash-verified

182 self.attns = nn.ModuleList(attns)
183
184 def forward(self, x, t_emb=None):
185 x = self.nets[0](x, t_emb)
186 for attn, net in zip(self.attns, self.nets[1:]):
187 if attn:
188 x = attn(x)
189 x = net(x, t_emb)
190 return x
191
192class UpBlock_cond(nn.Module):
193 def __init__(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected