feat(conditioning): add regional prompting and SEP-local LoRAs

This commit is contained in:
Artificial Sweetener
2026-07-31 22:05:57 -04:00
parent 74f68ba05a
commit 250ee42ea1
56 changed files with 5636 additions and 456 deletions
@@ -62,6 +62,7 @@ def sample_mixture_of_diffusers(
latent_tile_batch_size: int,
preview_context: DetailPreviewContext | None = None,
differential_diffusion: bool = False,
allow_full_context_masks: bool = False,
) -> Latent:
"""Sample a latent with a cloned model patched for Mixture of Diffusers."""
@@ -72,8 +73,16 @@ def sample_mixture_of_diffusers(
latent_tile_height=latent_tile_height,
latent_tile_batch_size=latent_tile_batch_size,
)
reject_unsupported_conditioning(positive, sampler_label=SAMPLER_LABEL)
reject_unsupported_conditioning(negative, sampler_label=SAMPLER_LABEL)
reject_unsupported_conditioning(
positive,
sampler_label=SAMPLER_LABEL,
allow_full_context_masks=allow_full_context_masks,
)
reject_unsupported_conditioning(
negative,
sampler_label=SAMPLER_LABEL,
allow_full_context_masks=allow_full_context_masks,
)
sampler = sampling_samplers.resolve_sampler(sampler_name)
sigmas = sampling_schedulers.calculate_sigmas(