patrickvonplaten commited on
Commit
ace7d89
1 Parent(s): d975c9c
fantasy_landscape_0.png CHANGED

Git LFS Details

  • SHA256: af9da2aa3ca198c51aaf6883ed96ac2f56f9e491ad9e55b6738edac5927596e8
  • Pointer size: 131 Bytes
  • Size of remote file: 860 kB

Git LFS Details

  • SHA256: c04ea19f95e22ec28c8bcd779173453a11ffd714ef2e670a8b3a0945b38fe050
  • Pointer size: 131 Bytes
  • Size of remote file: 846 kB
fantasy_landscape_1.png CHANGED

Git LFS Details

  • SHA256: 1142e6ea7ff8e67e39682d650746174af66a77f4bfba3e917380ce2d31a9aebb
  • Pointer size: 131 Bytes
  • Size of remote file: 814 kB

Git LFS Details

  • SHA256: 522bdd438df9c41507e5fd799be6cfcd601f5cb02f78bb4d04fb4348465e4395
  • Pointer size: 131 Bytes
  • Size of remote file: 895 kB
fantasy_landscape_2.png CHANGED

Git LFS Details

  • SHA256: 709dbc73df4b1c7b5f2df5950c42647e3ada81e22a719082cc7a888c2607a4f9
  • Pointer size: 131 Bytes
  • Size of remote file: 837 kB

Git LFS Details

  • SHA256: 0aa6749b71c3a6ef283b0e686d37d5c05ebf7ba4f64f384048a8d65ce5cdc823
  • Pointer size: 131 Bytes
  • Size of remote file: 868 kB
fantasy_landscape_3.png CHANGED

Git LFS Details

  • SHA256: 51f9a5225fc22cd0835aeb2439d11ecc69d79976792ddc322fca7c8194501c62
  • Pointer size: 131 Bytes
  • Size of remote file: 817 kB

Git LFS Details

  • SHA256: efcc39431416fc90a642fb52d1fa141653736e6d28cf9d2345f5fdb1929c1740
  • Pointer size: 131 Bytes
  • Size of remote file: 879 kB
run.py CHANGED
@@ -6,10 +6,10 @@ import time
6
 
7
  from diffusers import DiffusionPipeline
8
 
9
- pipe = DiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-2-1-unclip", torch_dtype=torch.float16, variant="fp16")
10
  pipe.to("cuda")
11
 
12
- url = "https://huggingface.co/datasets/hf-internal-testing/diffusers-images/resolve/main/stable_unclip/image%20(12).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,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)):