img2img value unpack

unsure what caused this
This commit is contained in:
hlky 2022-08-28 04:17:12 +01:00
parent 4a393bdba9
commit 7518c3ac27
No known key found for this signature in database
GPG Key ID: 55A99F1E80D907D5

View File

@ -1109,7 +1109,7 @@ def img2img(prompt: str, image_editor_mode: str, init_info, mask_mode: str, mask
xi = x0 + noise
sigma_sched = sigmas[ddim_steps - t_enc - 1:]
model_wrap_cfg = CFGDenoiser(sampler.model_wrap)
samples_ddim, _ = K.sampling.__dict__[f'sample_{sampler.get_sampler_name()}'](model_wrap_cfg, xi, sigma_sched, extra_args={'cond': conditioning, 'uncond': unconditional_conditioning, 'cond_scale': cfg_scale}, disable=False)
samples_ddim = K.sampling.__dict__[f'sample_{sampler.get_sampler_name()}'](model_wrap_cfg, xi, sigma_sched, extra_args={'cond': conditioning, 'uncond': unconditional_conditioning, 'cond_scale': cfg_scale}, disable=False)
else:
x0, = init_data
sampler.make_schedule(ddim_num_steps=ddim_steps, ddim_eta=0.0, verbose=False)