mirror of
https://github.com/lllyasviel/Fooocus.git
synced 2026-08-16 13:13:16 +02:00
i
This commit is contained in:
@@ -12,11 +12,8 @@ def sdxl_encode_adm_patched(self, **kwargs):
|
|||||||
target_height = kwargs.get("target_height", height)
|
target_height = kwargs.get("target_height", height)
|
||||||
|
|
||||||
if kwargs.get("prompt_type", "") == "negative":
|
if kwargs.get("prompt_type", "") == "negative":
|
||||||
admk = 0.8
|
width *= 0.8
|
||||||
width *= admk
|
height *= 0.8
|
||||||
height *= admk
|
|
||||||
target_width *= admk
|
|
||||||
target_height *= admk
|
|
||||||
|
|
||||||
out = []
|
out = []
|
||||||
out.append(self.embedder(torch.Tensor([height])))
|
out.append(self.embedder(torch.Tensor([height])))
|
||||||
|
|||||||
Reference in New Issue
Block a user