This commit is contained in:
lvmin 2023-08-10 13:06:18 -07:00
parent 3057dbaf42
commit 6d376f2fb0
1 changed files with 2 additions and 5 deletions

View File

@ -12,11 +12,8 @@ def sdxl_encode_adm_patched(self, **kwargs):
target_height = kwargs.get("target_height", height)
if kwargs.get("prompt_type", "") == "negative":
admk = 0.8
width *= admk
height *= admk
target_width *= admk
target_height *= admk
width *= 0.8
height *= 0.8
out = []
out.append(self.embedder(torch.Tensor([height])))