This commit is contained in:
lvmin 2023-08-10 14:16:29 -07:00
parent 20ec435aa3
commit 07102d1c1a
1 changed files with 3 additions and 0 deletions

View File

@ -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])))