Commit
•
1e9bf07
1
Parent(s):
51388a7
Update README.md
Browse filesResolve the Image example
README.md
CHANGED
@@ -42,11 +42,11 @@ pipe = StableDiffusionInpaintPipeline.from_pretrained(
|
|
42 |
revision="fp16",
|
43 |
torch_dtype=torch.float16,
|
44 |
)
|
45 |
-
prompt = "
|
46 |
#image and mask_image should be PIL images.
|
47 |
#The mask structure is white for inpainting and black for keeping as is
|
48 |
image = pipe(prompt=prompt, image=image, mask_image=mask_image).images[0]
|
49 |
-
image.save("./
|
50 |
```
|
51 |
|
52 |
**How it works:**
|
@@ -57,7 +57,7 @@ image.save("./yellow_cat_on_park_bench.png")
|
|
57 |
|
58 |
`prompt` | `Output`
|
59 |
:-------------------------:|:-------------------------:|
|
60 |
-
<span style="position: relative;bottom: 150px;">
|
61 |
|
62 |
### Original GitHub Repository
|
63 |
|
|
|
42 |
revision="fp16",
|
43 |
torch_dtype=torch.float16,
|
44 |
)
|
45 |
+
prompt = "a mecha robot sitting on a bench"
|
46 |
#image and mask_image should be PIL images.
|
47 |
#The mask structure is white for inpainting and black for keeping as is
|
48 |
image = pipe(prompt=prompt, image=image, mask_image=mask_image).images[0]
|
49 |
+
image.save("./a_mecha_robot_sitting_on_a_bench.png")
|
50 |
```
|
51 |
|
52 |
**How it works:**
|
|
|
57 |
|
58 |
`prompt` | `Output`
|
59 |
:-------------------------:|:-------------------------:|
|
60 |
+
<span style="position: relative;bottom: 150px;">a mecha robot sitting on a bench</span> | <img src="https://huggingface.co/datasets/ameerazam08/images/blob/main/2.png" alt="drawing" width="300"/>
|
61 |
|
62 |
### Original GitHub Repository
|
63 |
|