BAAI
/

ryanzhangfan commited on
Commit
a41a2dc
1 Parent(s): f58720c

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +3 -3
README.md CHANGED
@@ -68,13 +68,13 @@ pipe.to("cuda")
68
  # text-to-image
69
  prompt = "impressionist painting of an astronaut in a jungle"
70
  ret = pipe(prompt)
71
- ret.images[0].save("astronaut.png")
72
 
73
  # image editing
74
  image = Image.open(requests.get('https://github.com/baaivision/Emu/Emu2/examples/dog.jpg?raw=true',stream=True).raw).convert('RGB')
75
  prompt = [image, "wearing a red hat on the beach."]
76
  ret = pipe(prompt)
77
- ret.images[0].save("dog_hat_beach.png")
78
 
79
  # grounding generation
80
  def draw_box(left, top, right, bottom):
@@ -110,7 +110,7 @@ prompt = [
110
  dog3,
111
  ]
112
  ret = pipe(prompt)
113
- ret.images[0].save("three_dogs.png")
114
 
115
  # Autoencoding
116
  # to enable the autoencoding mode, you can only input exactly one image as prompt
 
68
  # text-to-image
69
  prompt = "impressionist painting of an astronaut in a jungle"
70
  ret = pipe(prompt)
71
+ ret.image.save("astronaut.png")
72
 
73
  # image editing
74
  image = Image.open(requests.get('https://github.com/baaivision/Emu/Emu2/examples/dog.jpg?raw=true',stream=True).raw).convert('RGB')
75
  prompt = [image, "wearing a red hat on the beach."]
76
  ret = pipe(prompt)
77
+ ret.image.save("dog_hat_beach.png")
78
 
79
  # grounding generation
80
  def draw_box(left, top, right, bottom):
 
110
  dog3,
111
  ]
112
  ret = pipe(prompt)
113
+ ret.image.save("three_dogs.png")
114
 
115
  # Autoencoding
116
  # to enable the autoencoding mode, you can only input exactly one image as prompt