fix(nodes): fix inpaint cond logic for new compel version

thanks @StAlKeR7779
This commit is contained in:
psychedelicious 2023-07-18 22:39:34 +10:00
parent 8bc1fe38b3
commit c19d48abd0

View File

@ -147,8 +147,12 @@ class InpaintInvocation(BaseInvocation):
)
def get_conditioning(self, context):
c, extra_conditioning_info = context.services.latents.get(self.positive_conditioning.conditioning_name)
uc, _ = context.services.latents.get(self.negative_conditioning.conditioning_name)
positive_cond_data = context.services.latents.get(self.positive_conditioning.conditioning_name)
c = positive_cond_data.conditionings[0].embeds
extra_conditioning_info = positive_cond_data.conditionings[0].extra_conditioning
negative_cond_data = context.services.latents.get(self.negative_conditioning.conditioning_name)
uc = negative_cond_data.conditionings[0].embeds
return (uc, c, extra_conditioning_info)