mirror of
https://github.com/lllyasviel/stable-diffusion-webui-forge.git
synced 2026-02-11 10:29:57 +00:00
Update forge_sampler.py
This commit is contained in:
@@ -67,8 +67,10 @@ def forge_sample(self, denoiser_params, cond_scale, cond_composition):
|
||||
if image_cond_in.shape[0] == x.shape[0] \
|
||||
and image_cond_in.shape[2] == x.shape[2] \
|
||||
and image_cond_in.shape[3] == x.shape[3]:
|
||||
uncond[0]['model_conds']['c_concat'] = CONDRegular(image_cond_in)
|
||||
cond[0]['model_conds']['c_concat'] = CONDRegular(image_cond_in)
|
||||
for i in range(len(uncond)):
|
||||
uncond[i]['model_conds']['c_concat'] = CONDRegular(image_cond_in)
|
||||
for i in range(len(cond)):
|
||||
cond[i]['model_conds']['c_concat'] = CONDRegular(image_cond_in)
|
||||
|
||||
if control is not None:
|
||||
for h in cond + uncond:
|
||||
|
||||
Reference in New Issue
Block a user