mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
Rename sequential as private variable
This commit is contained in:
parent
b7c6c63005
commit
cd1bc1595a
@ -19,7 +19,7 @@ class StableDiffusionBackend:
|
||||
self.unet = unet
|
||||
self.scheduler = scheduler
|
||||
config = get_config()
|
||||
self.sequential_guidance = config.sequential_guidance
|
||||
self._sequential_guidance = config.sequential_guidance
|
||||
|
||||
def latents_from_embeddings(self, ctx: DenoiseContext, ext_manager: ExtensionsManager):
|
||||
if ctx.inputs.init_timestep.shape[0] == 0:
|
||||
@ -67,7 +67,7 @@ class StableDiffusionBackend:
|
||||
# Note: The current handling of conditioning doesn't feel very future-proof.
|
||||
# This might change in the future as new requirements come up, but for now,
|
||||
# this is the rough plan.
|
||||
if self.sequential_guidance:
|
||||
if self._sequential_guidance:
|
||||
ctx.negative_noise_pred = self.run_unet(ctx, ext_manager, "negative")
|
||||
ctx.positive_noise_pred = self.run_unet(ctx, ext_manager, "positive")
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user