mirror of
https://github.com/lllyasviel/stable-diffusion-webui-forge.git
synced 2026-07-21 21:01:24 +08:00
disable
This commit is contained in:
parent
72430419dd
commit
cd837f4fed
@ -1,7 +1,7 @@
|
||||
import gradio as gr
|
||||
from lib_spectrum.forecaster import SpectrumNode
|
||||
|
||||
from modules import scripts
|
||||
from modules import scripts, shared
|
||||
from modules.infotext_utils import PasteField
|
||||
from modules.ui_components import InputAccordion
|
||||
|
||||
@ -93,6 +93,10 @@ class SpectrumForForge(scripts.Script):
|
||||
if not enable:
|
||||
return
|
||||
|
||||
if shared.opts.skip_early_cond > 0.0 or shared.opts.s_min_uncond > 0.0:
|
||||
print('Spectrum does not support "Ignore/Skip Negative Prompt" optimizations...')
|
||||
return
|
||||
|
||||
unet = p.sd_model.forge_objects.unet
|
||||
unet = SpectrumNode.patch(unet, p.steps, *args)
|
||||
p.sd_model.forge_objects.unet = unet
|
||||
|
||||
Loading…
Reference in New Issue
Block a user