MCPcopy Create free account
hub / github.com/VisionXLab/OF-Diff / forward

Method forward

ldm/modules/diffusionmodules/model.py:773–782  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

771 )
772
773 def forward(self, x):
774 x = self.conv_in(x)
775 for block in self.res_block1:
776 x = block(x, None)
777 x = torch.nn.functional.interpolate(x, size=(int(round(x.shape[2]*self.factor)), int(round(x.shape[3]*self.factor))))
778 x = self.attn(x)
779 for block in self.res_block2:
780 x = block(x, None)
781 x = self.conv_out(x)
782 return x
783
784
785class MergedRescaleEncoder(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected