Commit
·
88daaf8
1
Parent(s):
bfce8d8
Update README.md
Browse files
README.md
CHANGED
@@ -70,6 +70,8 @@ ret.images[0].save("astronaut.png")
|
|
70 |
# image editing
|
71 |
image = Image.open(requests.get('https://github.com/baaivision/Emu/Emu2/examples/dog2.jpg?raw=true',stream=True).raw).convert('RGB')
|
72 |
prompt = [image, "wearing a rad hat on the beach."]
|
|
|
|
|
73 |
|
74 |
# grounding generation
|
75 |
def draw_box(left, top, right, bottom):
|
|
|
70 |
# image editing
|
71 |
image = Image.open(requests.get('https://github.com/baaivision/Emu/Emu2/examples/dog2.jpg?raw=true',stream=True).raw).convert('RGB')
|
72 |
prompt = [image, "wearing a rad hat on the beach."]
|
73 |
+
ret = pipe(prompt)
|
74 |
+
ret.images[0].save("dog_hat_beach.png")
|
75 |
|
76 |
# grounding generation
|
77 |
def draw_box(left, top, right, bottom):
|