lllyasviel commited on
Commit
e0c2c01
·
1 Parent(s): 12df4d8
Files changed (1) hide show
  1. modules/adm_patch.py +2 -5
modules/adm_patch.py CHANGED
@@ -12,11 +12,8 @@ def sdxl_encode_adm_patched(self, **kwargs):
12
  target_height = kwargs.get("target_height", height)
13
 
14
  if kwargs.get("prompt_type", "") == "negative":
15
- admk = 0.8
16
- width *= admk
17
- height *= admk
18
- target_width *= admk
19
- target_height *= admk
20
 
21
  out = []
22
  out.append(self.embedder(torch.Tensor([height])))
 
12
  target_height = kwargs.get("target_height", height)
13
 
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])))