patrickvonplaten commited on
Commit
d4e1921
1 Parent(s): 908f101
Files changed (2) hide show
  1. fantasy_landscape.png +2 -2
  2. run.py +5 -3
fantasy_landscape.png CHANGED

Git LFS Details

  • SHA256: 6dca035e2fb8a8151e022ac93bae463d1ee70a7ce1c070b1f3bfb9ac80b3e771
  • Pointer size: 132 Bytes
  • Size of remote file: 1.24 MB

Git LFS Details

  • SHA256: 7f7a658133413265000bb9d9db751e8eff77bd7f8640fc03ea4d096bfa77a61a
  • Pointer size: 132 Bytes
  • Size of remote file: 1.25 MB
run.py CHANGED
@@ -14,9 +14,11 @@ url = "https://huggingface.co/datasets/hf-internal-testing/diffusers-images/reso
14
 
15
  response = requests.get(url)
16
  init_image = Image.open(BytesIO(response.content)).convert("RGB")
17
- init_image = init_image.resize((768, 512))
18
 
19
  prompt = "A fantasy landscape, trending on artstation"
20
 
21
- images = pipe(init_image).images
22
- images[0].save("fantasy_landscape.png")
 
 
 
14
 
15
  response = requests.get(url)
16
  init_image = Image.open(BytesIO(response.content)).convert("RGB")
17
+ # init_image = init_image.resize((768, 512))
18
 
19
  prompt = "A fantasy landscape, trending on artstation"
20
 
21
+ images = pipe(4 * [init_image]).images
22
+
23
+ for i in range(images):
24
+ images[i].save(f"fantasy_landscape_{i}.png")