Skip to content

Commit 5b49881

Browse files
committed
Fix attr access
1 parent f38bafd commit 5b49881

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/sd_models_xl.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def get_learned_conditioning(self: sgm.models.diffusion.DiffusionEngine, batch:
3737
def apply_model(self: sgm.models.diffusion.DiffusionEngine, x, t, cond):
3838
"""WARNING: This function is called once per denoising iteration. DO NOT add
3939
expensive functionc calls such as `model.state_dict`. """
40-
if self.model.is_sdxl_inpaint:
40+
if self.is_sdxl_inpaint:
4141
x = torch.cat([x] + cond['c_concat'], dim=1)
4242

4343
return self.model(x, t, cond)

0 commit comments

Comments
 (0)