1
0
Fork 0

fix(api): use kwargs for dimensions

This commit is contained in:
Sean Sube 2023-01-14 22:45:35 -06:00
parent dabc2115aa
commit dd74bfc54a
1 changed files with 3 additions and 3 deletions

View File

@ -232,10 +232,10 @@ def run_txt2img_pipeline(model, provider, scheduler, prompt, negative_prompt, cf
latents = get_latents_from_seed(seed, width, height)
rng = np.random.RandomState(seed)
image = pipe(
image = pipe.text2img(
prompt,
height,
width,
height=height,
width=width,
generator=rng,
guidance_scale=cfg,
latents=latents,