patrickvonplaten
commited on
Commit
•
ace7d89
1
Parent(s):
d975c9c
up
Browse files- fantasy_landscape_0.png +2 -2
- fantasy_landscape_1.png +2 -2
- fantasy_landscape_2.png +2 -2
- fantasy_landscape_3.png +2 -2
- run.py +2 -4
fantasy_landscape_0.png
CHANGED
Git LFS Details
|
Git LFS Details
|
fantasy_landscape_1.png
CHANGED
Git LFS Details
|
Git LFS Details
|
fantasy_landscape_2.png
CHANGED
Git LFS Details
|
Git LFS Details
|
fantasy_landscape_3.png
CHANGED
Git LFS Details
|
Git LFS Details
|
run.py
CHANGED
@@ -6,10 +6,10 @@ import time
|
|
6 |
|
7 |
from diffusers import DiffusionPipeline
|
8 |
|
9 |
-
pipe = DiffusionPipeline.from_pretrained("
|
10 |
pipe.to("cuda")
|
11 |
|
12 |
-
url = "https://huggingface.co/datasets/hf-internal-testing/diffusers-images/resolve/main/stable_unclip/image%20(
|
13 |
#url = "https://huggingface.co/datasets/hf-internal-testing/diffusers-images/resolve/main/stable_unclip/image%20(10).png"
|
14 |
#url = "https://huggingface.co/datasets/hf-internal-testing/diffusers-images/resolve/main/stable_unclip/image%20(10).png"
|
15 |
#url = "https://huggingface.co/datasets/hf-internal-testing/diffusers-images/resolve/main/stable_unclip/image%20(10).png"
|
@@ -18,8 +18,6 @@ response = requests.get(url)
|
|
18 |
init_image = Image.open(BytesIO(response.content)).convert("RGB")
|
19 |
# init_image = init_image.resize((768, 512))
|
20 |
|
21 |
-
prompt = "A fantasy landscape, trending on artstation"
|
22 |
-
|
23 |
images = pipe(4 * [init_image]).images
|
24 |
|
25 |
for i in range(len(images)):
|
|
|
6 |
|
7 |
from diffusers import DiffusionPipeline
|
8 |
|
9 |
+
pipe = DiffusionPipeline.from_pretrained("/home/patrick_huggingface_co/stable-diffusion-2-1-unclip-i2i-l", torch_dtype=torch.float16)
|
10 |
pipe.to("cuda")
|
11 |
|
12 |
+
url = "https://huggingface.co/datasets/hf-internal-testing/diffusers-images/resolve/main/stable_unclip/image%20(13).png"
|
13 |
#url = "https://huggingface.co/datasets/hf-internal-testing/diffusers-images/resolve/main/stable_unclip/image%20(10).png"
|
14 |
#url = "https://huggingface.co/datasets/hf-internal-testing/diffusers-images/resolve/main/stable_unclip/image%20(10).png"
|
15 |
#url = "https://huggingface.co/datasets/hf-internal-testing/diffusers-images/resolve/main/stable_unclip/image%20(10).png"
|
|
|
18 |
init_image = Image.open(BytesIO(response.content)).convert("RGB")
|
19 |
# init_image = init_image.resize((768, 512))
|
20 |
|
|
|
|
|
21 |
images = pipe(4 * [init_image]).images
|
22 |
|
23 |
for i in range(len(images)):
|