MCPcopy
hub / github.com/Stability-AI/generative-models / __init__

Method __init__

sgm/modules/diffusionmodules/openaimodel.py:1234–1242  ·  view source on GitHub ↗
(self, in_channels=3, model_channels=64)

Source from the content-addressed store, hash-verified

1232
1233 class Dummy(nn.Module):
1234 def __init__(self, in_channels=3, model_channels=64):
1235 super().__init__()
1236 self.input_blocks = nn.ModuleList(
1237 [
1238 TimestepEmbedSequential(
1239 conv_nd(2, in_channels, model_channels, 3, padding=1)
1240 )
1241 ]
1242 )
1243
1244 model = UNetModel(
1245 use_checkpoint=True,

Callers 11

__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls 2

conv_ndFunction · 0.85

Tested by

no test coverage detected