make slicing vae compatible with latest diffusers

This commit is contained in:
Kohya S
2023-11-26 18:12:04 +09:00
parent c61e3bf4c9
commit 764e333fa2

View File

@@ -62,7 +62,7 @@ def cat_h(sliced):
return x
def resblock_forward(_self, num_slices, input_tensor, temb):
def resblock_forward(_self, num_slices, input_tensor, temb, **kwargs):
assert _self.upsample is None and _self.downsample is None
assert _self.norm1.num_groups == _self.norm2.num_groups
assert temb is None