This commit is contained in:
parent
20ec435aa3
commit
07102d1c1a
|
|
@ -14,6 +14,9 @@ def sdxl_encode_adm_patched(self, **kwargs):
|
|||
if kwargs.get("prompt_type", "") == "negative":
|
||||
width *= 0.8
|
||||
height *= 0.8
|
||||
elif kwargs.get("prompt_type", "") == "positive":
|
||||
width *= 1.5
|
||||
height *= 1.5
|
||||
|
||||
out = []
|
||||
out.append(self.embedder(torch.Tensor([height])))
|
||||
|
|
|
|||
Loading…
Reference in New Issue