Skip to content

Commit

Permalink
fix: inference_num for reference img
Browse files Browse the repository at this point in the history
  • Loading branch information
pnsuau authored and pnsuau committed Sep 14, 2023
1 parent bd51510 commit e444ba1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion models/palette_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,9 @@ def inference(self):
cls=cur_class,
ddim_num_steps=self.ddim_num_steps,
ddim_eta=self.ddim_eta,
ref=self.ref_A if hasattr(self, "ref_A") else None,
ref=self.ref_A[: self.inference_num]
if hasattr(self, "ref_A")
else None,
)

name = "output_" + str(i + 1)
Expand Down

0 comments on commit e444ba1

Please sign in to comment.