mirror of
https://github.com/vladmandic/automatic
synced 2026-09-11 07:18:44 +02:00
add ip adapter and hdr latent control
This commit is contained in:
@@ -17,6 +17,7 @@ import modules.errors as errors
|
||||
from modules.processing import StableDiffusionProcessing, create_random_tensors
|
||||
import modules.prompt_parser_diffusers as prompt_parser_diffusers
|
||||
from modules.sd_hijack_hypertile import hypertile_set
|
||||
from modules.processing_correction import correction_callback
|
||||
|
||||
|
||||
def process_diffusers(p: StableDiffusionProcessing, seeds, prompts, negative_prompts):
|
||||
@@ -71,7 +72,8 @@ def process_diffusers(p: StableDiffusionProcessing, seeds, prompts, negative_pro
|
||||
raise AssertionError('Interrupted...')
|
||||
time.sleep(0.1)
|
||||
|
||||
def diffusers_callback(_pipe, step: int, _timestep: int, kwargs: dict):
|
||||
def diffusers_callback(_pipe, step: int, timestep: int, kwargs: dict):
|
||||
latents = correction_callback(p, timestep, kwargs)
|
||||
latents = kwargs['latents']
|
||||
shared.state.sampling_step = step
|
||||
shared.state.current_latent = latents
|
||||
|
||||
Reference in New Issue
Block a user