build full-size latents for outpainting
This commit is contained in:
parent
de13d2d6ef
commit
23ddbc6b10
|
@ -268,12 +268,12 @@ def run_inpaint_pipeline(model, provider, scheduler, prompt, negative_prompt, cf
|
|||
pipe = load_pipeline(OnnxStableDiffusionInpaintPipeline,
|
||||
model, provider, scheduler)
|
||||
|
||||
latents = get_latents_from_seed(seed, width, height)
|
||||
rng = np.random.RandomState(seed)
|
||||
|
||||
extra = 256
|
||||
full_source, full_mask, full_noise, full_dims = expand_image(source_image, mask_image, (extra, extra, extra, extra))
|
||||
full_width, full_height = full_dims
|
||||
latents = get_latents_from_seed(seed, full_width, full_height)
|
||||
|
||||
image = pipe(
|
||||
prompt,
|
||||
|
|
Loading…
Reference in New Issue