Skip to content

Commit 5f8ab7b

Browse files
committed
self.config
1 parent f789325 commit 5f8ab7b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/diffusers/models/controlnets/controlnet_z_image.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -300,8 +300,8 @@ def forward(
300300
f_patch_size=1,
301301
conditioning_scale: float = 1.0,
302302
):
303-
assert patch_size in self.all_patch_size
304-
assert f_patch_size in self.all_f_patch_size
303+
assert patch_size in self.config.all_patch_size
304+
assert f_patch_size in self.config.all_f_patch_size
305305

306306
bsz = len(x)
307307
device = x[0].device

0 commit comments

Comments
 (0)