mirror of
https://github.com/lllyasviel/stable-diffusion-webui-forge.git
synced 2026-02-08 00:49:56 +00:00
Update forge_reference.py
This commit is contained in:
@@ -82,7 +82,7 @@ class PreprocessorReference(Preprocessor):
|
||||
self.recorded_h[location] = h
|
||||
else:
|
||||
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
|
||||
|
||||
return h
|
||||
@@ -102,7 +102,7 @@ class PreprocessorReference(Preprocessor):
|
||||
self.recorded_attn1[location] = (k, v)
|
||||
else:
|
||||
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
|
||||
|
||||
return sdp(q, k, v, transformer_options)
|
||||
|
||||
Reference in New Issue
Block a user