Skip to content

Commit

Permalink
fix: inference on ref cond
Browse files Browse the repository at this point in the history
  • Loading branch information
pnsuau committed Jul 4, 2023
1 parent 350578e commit 13bd2d3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion models/palette_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,10 @@ def __init__(self, opt, rank):
for i in range(self.nb_classes_inference):
self.gen_visual_names.append("output_" + str(i + 1) + "_")

elif self.opt.alg_palette_cond_image_creation == "ref":
elif (
self.opt.alg_palette_cond_image_creation == "ref"
or "ref" in self.opt.alg_palette_conditioning
):
for i in range(self.inference_num):
self.gen_visual_names.append("cond_ref_" + str(i + 1) + "_")
self.gen_visual_names.append("output_" + str(i + 1) + "_")
Expand Down

0 comments on commit 13bd2d3

Please sign in to comment.