mirror of
https://github.com/lllyasviel/stable-diffusion-webui-forge.git
synced 2026-04-30 03:01:15 +00:00
Update forge_reference.py
This commit is contained in:
@@ -82,7 +82,7 @@ class PreprocessorReference(Preprocessor):
|
|||||||
self.recorded_h[location] = h
|
self.recorded_h[location] = h
|
||||||
else:
|
else:
|
||||||
cond_mark = transformer_options['cond_mark'][:, None, None, None] # cond is 0
|
cond_mark = transformer_options['cond_mark'][:, None, None, None] # cond is 0
|
||||||
recorded_h = self.recorded_h[location]
|
rh = self.recorded_h[location]
|
||||||
b = 0
|
b = 0
|
||||||
|
|
||||||
return h
|
return h
|
||||||
@@ -102,7 +102,7 @@ class PreprocessorReference(Preprocessor):
|
|||||||
self.recorded_attn1[location] = (k, v)
|
self.recorded_attn1[location] = (k, v)
|
||||||
else:
|
else:
|
||||||
cond_mark = transformer_options['cond_mark'][:, None, None, None] # cond is 0
|
cond_mark = transformer_options['cond_mark'][:, None, None, None] # cond is 0
|
||||||
recorded_attn1 = self.recorded_attn1[location]
|
rk, rv = self.recorded_attn1[location]
|
||||||
b = 0
|
b = 0
|
||||||
|
|
||||||
return sdp(q, k, v, transformer_options)
|
return sdp(q, k, v, transformer_options)
|
||||||
|
|||||||
Reference in New Issue
Block a user