Commit
·
f93c550
1
Parent(s):
06bbba2
- modules/adm_patch.py +3 -0
modules/adm_patch.py
CHANGED
|
@@ -14,6 +14,9 @@ def sdxl_encode_adm_patched(self, **kwargs):
|
|
| 14 |
if kwargs.get("prompt_type", "") == "negative":
|
| 15 |
width *= 0.8
|
| 16 |
height *= 0.8
|
|
|
|
|
|
|
|
|
|
| 17 |
|
| 18 |
out = []
|
| 19 |
out.append(self.embedder(torch.Tensor([height])))
|
|
|
|
| 14 |
if kwargs.get("prompt_type", "") == "negative":
|
| 15 |
width *= 0.8
|
| 16 |
height *= 0.8
|
| 17 |
+
elif kwargs.get("prompt_type", "") == "positive":
|
| 18 |
+
width *= 1.5
|
| 19 |
+
height *= 1.5
|
| 20 |
|
| 21 |
out = []
|
| 22 |
out.append(self.embedder(torch.Tensor([height])))
|