Skip to content

inpaint pipelines #187

Answered by deltheil
heorhiikalaichev asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @heorhiikalaichev - yes, we do support inpainting. You can find an example with SD 1.5 part of the test suite:

sd15 = sd15_inpainting
n_steps = 30
prompt = "a large white cat, detailed high-quality professional image, sitting on a chair, in a kitchen"
negative_prompt = "lowres, bad anatomy, bad hands, cropped, worst quality"
clip_text_embedding = sd15.compute_clip_text_embedding(text=prompt, negative_text=negative_prompt)
sd15.set_num_inference_steps(n_steps)
sd15.set_inpainting_conditions(kitchen_dog, kitchen_dog_mask)
manual_seed(2)
x = torch.randn(1, 4, 64

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by deltheil
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #186 on January 17, 2024 08:28.