patrickvonplaten
commited on
Commit
•
d4e1921
1
Parent(s):
908f101
up
Browse files- fantasy_landscape.png +2 -2
- run.py +5 -3
fantasy_landscape.png
CHANGED
Git LFS Details
|
Git LFS Details
|
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 |
-
|
|
|
|
|
|
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")
|