mirror of
https://github.com/lllyasviel/stable-diffusion-webui-forge.git
synced 2026-02-21 23:33:57 +00:00
Update forge_reference.py
This commit is contained in:
@@ -70,7 +70,9 @@ class PreprocessorReference(Preprocessor):
|
||||
return h
|
||||
|
||||
if flag != 'after':
|
||||
return
|
||||
return h
|
||||
|
||||
location = transformer_options['block']
|
||||
|
||||
sigma = transformer_options["sigmas"][0].item()
|
||||
if not (sigma_min <= sigma <= sigma_max):
|
||||
@@ -91,6 +93,9 @@ class PreprocessorReference(Preprocessor):
|
||||
if not (sigma_min <= sigma <= sigma_max):
|
||||
return sdp(q, k, v, transformer_options)
|
||||
|
||||
location = (transformer_options['block'][0], transformer_options['block'][1],
|
||||
transformer_options['block_index'])
|
||||
|
||||
if self.is_recording_style:
|
||||
a = 0
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user