mirror of
https://github.com/kohya-ss/sd-scripts.git
synced 2026-04-08 22:35:09 +00:00
make slicing vae compatible with latest diffusers
This commit is contained in:
@@ -62,7 +62,7 @@ def cat_h(sliced):
|
|||||||
return x
|
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.upsample is None and _self.downsample is None
|
||||||
assert _self.norm1.num_groups == _self.norm2.num_groups
|
assert _self.norm1.num_groups == _self.norm2.num_groups
|
||||||
assert temb is None
|
assert temb is None
|
||||||
|
|||||||
Reference in New Issue
Block a user