Skip to content

Commit b288fb0

Browse files
Small refactor of some vae code. (Comfy-Org#9787)
1 parent f73b176 commit b288fb0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • comfy/ldm/modules/diffusionmodules

comfy/ldm/modules/diffusionmodules/model.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ def forward(self, x):
145145

146146
class ResnetBlock(nn.Module):
147147
def __init__(self, *, in_channels, out_channels=None, conv_shortcut=False,
148-
dropout, temb_channels=512, conv_op=ops.Conv2d):
148+
dropout=0.0, temb_channels=512, conv_op=ops.Conv2d):
149149
super().__init__()
150150
self.in_channels = in_channels
151151
out_channels = in_channels if out_channels is None else out_channels
@@ -183,7 +183,7 @@ def __init__(self, *, in_channels, out_channels=None, conv_shortcut=False,
183183
stride=1,
184184
padding=0)
185185

186-
def forward(self, x, temb):
186+
def forward(self, x, temb=None):
187187
h = x
188188
h = self.norm1(h)
189189
h = self.swish(h)

0 commit comments

Comments
 (0)