mirror of
https://github.com/lllyasviel/stable-diffusion-webui-forge.git
synced 2026-02-23 00:03:57 +00:00
Update forge_reference.py
This commit is contained in:
@@ -54,6 +54,9 @@ class PreprocessorReference(Preprocessor):
|
||||
start_percent = float(unit.guidance_start)
|
||||
end_percent = float(unit.guidance_end)
|
||||
|
||||
if process.sd_model.is_sdxl:
|
||||
style_fidelity = style_fidelity ** 3.0 # sdxl is very sensitive to reference so we lower the weights
|
||||
|
||||
vae = process.sd_model.forge_objects.vae
|
||||
# This is a powerful VAE with integrated memory management, bf16, and tiled fallback.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user