Skip to content

Conversation

@cmdr2
Copy link
Contributor

@cmdr2 cmdr2 commented Mar 27, 2023

These changes are already present in the StableDiffusionPipeline and other classes. Borrowed these changes from: https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py#L517

This PR fixes the required positional argument: prompt error thrown by StableDiffusionInpaintPipelineLegacy when called with only prompt_embeds. For e.g. if using the compel library.

It also corrects the batch_size used when prompt_embeds are passed to the function (borrowed this change too from the SD pipeline).

Thanks!

cmdr2 added a commit to easydiffusion/sdkit that referenced this pull request Mar 27, 2023
@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Mar 27, 2023

The documentation is not available anymore as the PR was closed or merged.

@cmdr2 cmdr2 changed the title Fix error 'required positional argument: prompt' when Legacy Inpaint is called only with prompt_embeds Update the legacy inpainting SD pipeline, to allow calling it with only prompt_embeds (instead of always requiring a prompt) Mar 28, 2023
@patrickvonplaten
Copy link
Contributor

Great, good job on correcting this!

@patrickvonplaten patrickvonplaten merged commit 7d75681 into huggingface:main Mar 28, 2023
@cmdr2 cmdr2 deleted the legacy-inpaint-embeds branch March 29, 2023 03:41
w4ffl35 pushed a commit to w4ffl35/diffusers that referenced this pull request Apr 14, 2023
…ly prompt_embeds (instead of always requiring a prompt) (huggingface#2842)

Fix error 'required positional argument: prompt' when Legacy Inpaint is called only with prompt_embeds
yoonseokjin pushed a commit to yoonseokjin/diffusers that referenced this pull request Dec 25, 2023
…ly prompt_embeds (instead of always requiring a prompt) (huggingface#2842)

Fix error 'required positional argument: prompt' when Legacy Inpaint is called only with prompt_embeds
AmericanPresidentJimmyCarter pushed a commit to AmericanPresidentJimmyCarter/diffusers that referenced this pull request Apr 26, 2024
…ly prompt_embeds (instead of always requiring a prompt) (huggingface#2842)

Fix error 'required positional argument: prompt' when Legacy Inpaint is called only with prompt_embeds
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants