MCPcopy Create free account
hub / github.com/bbaaii/DreamDiffusion / forward

Method forward

code/dc_ldm/modules/diffusionmodules/model.py:594–604  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

592 padding=1)
593
594 def forward(self, x):
595 for i, layer in enumerate(self.model):
596 if i in [1,2,3]:
597 x = layer(x, None)
598 else:
599 x = layer(x)
600
601 h = self.norm_out(x)
602 h = nonlinearity(h)
603 x = self.conv_out(h)
604 return x
605
606
607class UpsampleDecoder(nn.Module):

Callers

nothing calls this directly

Calls 1

nonlinearityFunction · 0.85

Tested by

no test coverage detected