Skip to content

Commit

Permalink
fix: wrong number of model forward signature parameters check
Browse files Browse the repository at this point in the history
  • Loading branch information
beniz committed Oct 5, 2023
1 parent b0cae09 commit 868b55b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/modules/palette_denoise_fn.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def forward(self, input, embed_noise_level, cls, mask, ref):
if "mask" in self.conditioning:
input = torch.cat([input, mask_embed], dim=1)

if self.model_nargs == 4: # ref from dataloader with reference image
if self.model_nargs == 3: # ref from dataloader with reference image
out = self.model(input, embedding, ref)
else:
out = self.model(input, embedding)
Expand Down

0 comments on commit 868b55b

Please sign in to comment.