mirror of
https://github.com/lllyasviel/stable-diffusion-webui-forge.git
synced 2026-02-08 17:09:59 +00:00
Update forge_reference.py
This commit is contained in:
@@ -103,6 +103,8 @@ class PreprocessorReference(Preprocessor):
|
||||
else:
|
||||
cond_mark = transformer_options['cond_mark'][:, None, None, None] # cond is 0
|
||||
rk, rv = self.recorded_attn1[location]
|
||||
rk = torch.cat([k, rk], dim=1)
|
||||
rv = torch.cat([v, rv], dim=1)
|
||||
return sdp(q, k, v, transformer_options)
|
||||
|
||||
unet.add_block_modifier(block_proc)
|
||||
|
||||
Reference in New Issue
Block a user