patrickvonplaten commited on
Commit
04c5ec4
1 Parent(s): 74018bd
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. a_magical_dragon.png +0 -3
  2. a_magical_dragon_himalaya.png +0 -3
  3. a_magical_forest.png +0 -3
  4. aaa.png +0 -3
  5. anime_nyc_guided.png +0 -3
  6. astronaut_comp_vis_2_ddim.png +0 -3
  7. astronaut_rides_horse.png +0 -3
  8. check_sde_ve.png +0 -3
  9. cifar_tf.png +0 -3
  10. ddim_0_image.png +0 -3
  11. ddim_compVis_astronaut.png +0 -3
  12. ddpm_0_image.png +0 -3
  13. diffusers/batch_1664287705.png → diffusers_reference/reference_image_sd_v1_3.png +0 -0
  14. diffusers_reference/run.py +39 -0
  15. dog_in_the_park.png +0 -3
  16. eiffel_tower_moon.png +0 -3
  17. eiffel_tower_on_moon.png +0 -3
  18. fantasy_landscape.png +0 -3
  19. fantasy_landscape_default.png +0 -3
  20. generated_image.png +0 -3
  21. generated_image_0.png +0 -3
  22. generated_image_0_new.png +0 -3
  23. grid-0000.png +0 -3
  24. grid-0001.png +0 -3
  25. grid-0004.png +0 -3
  26. grid-0005.png +0 -3
  27. grid-0006.png +0 -3
  28. grid-0007.png +0 -3
  29. grid-0008.png +0 -3
  30. grid-0009.png +0 -3
  31. grid-0010.png +0 -3
  32. hello.png +0 -3
  33. hello.txt +0 -0
  34. hey.png +0 -3
  35. hf/ddim-celeba-hq/image_0.png +0 -0
  36. hf/ddim-celeba-hq/image_1.png +0 -0
  37. hf/ddim-celeba-hq/image_2.png +0 -0
  38. hf/ddim-celeba-hq/image_3.png +0 -0
  39. hf/ddim-lsun-bedroom/image_0.png +0 -0
  40. hf/ddim-lsun-bedroom/image_1.png +0 -0
  41. hf/ddim-lsun-bedroom/image_2.png +0 -0
  42. hf/ddim-lsun-bedroom/image_3.png +0 -0
  43. hf/ddim-lsun-church/image_0.png +0 -0
  44. hf/ddim-lsun-church/image_1.png +0 -0
  45. hf/ddim-lsun-church/image_2.png +0 -0
  46. hf/ddim-lsun-church/image_3.png +0 -0
  47. hf/ddpm-celeba-hq-ema/image_0.png +0 -0
  48. hf/ddpm-celeba-hq-ema/image_1.png +0 -0
  49. hf/ddpm-celeba-hq-ema/image_2.png +0 -0
  50. hf/ddpm-celeba-hq-ema/image_3.png +0 -0
a_magical_dragon.png DELETED

Git LFS Details

  • SHA256: 119425ceaf0bea0b524f7f8833f36a52dd6a354ea651cfbfeeea2609893229e7
  • Pointer size: 131 Bytes
  • Size of remote file: 542 kB
a_magical_dragon_himalaya.png DELETED

Git LFS Details

  • SHA256: 9567a8af857344612e0fbdb8d66ced7f070ce0d8575bf26a191e2fa38012d9ef
  • Pointer size: 131 Bytes
  • Size of remote file: 438 kB
a_magical_forest.png DELETED

Git LFS Details

  • SHA256: 5e686ea79b5330b51c6b83ad745ba9f50384e0863762885bdc6ba7a0635faae9
  • Pointer size: 131 Bytes
  • Size of remote file: 629 kB
aaa.png DELETED

Git LFS Details

  • SHA256: d602a0cb27897bd12cac437a323e6e0dec9adaccb5b8130681a2a30dba0858e7
  • Pointer size: 131 Bytes
  • Size of remote file: 483 kB
anime_nyc_guided.png DELETED

Git LFS Details

  • SHA256: b42cfa951039ed50bebc5a8d8b0bfd1f5e8c491710d5395b10b5f93eff01100c
  • Pointer size: 131 Bytes
  • Size of remote file: 541 kB
astronaut_comp_vis_2_ddim.png DELETED

Git LFS Details

  • SHA256: ee9eabf2147e094f6b1cfdf88566e3ff8ac8980c21fa83208297b125077deedd
  • Pointer size: 132 Bytes
  • Size of remote file: 1.96 MB
astronaut_rides_horse.png DELETED

Git LFS Details

  • SHA256: 3ca93015beab2ad14580532318027bb31c4ff03f48b69ccd6914ca86844c40db
  • Pointer size: 131 Bytes
  • Size of remote file: 540 kB
check_sde_ve.png DELETED

Git LFS Details

  • SHA256: 8afa02d073dddb4a4f93b98d91b9c7ba9198d427b34238f98c153d3b10ead0c9
  • Pointer size: 131 Bytes
  • Size of remote file: 137 kB
cifar_tf.png DELETED

Git LFS Details

  • SHA256: 43bb50443332e57ed19466f52fc2b2f5181de30e589ef5ade3099f600b5d0a68
  • Pointer size: 129 Bytes
  • Size of remote file: 2.49 kB
ddim_0_image.png DELETED

Git LFS Details

  • SHA256: 944973fbe1f58f2cfb2b9af6019986433262427a2d15b45e5954f010ccaac16c
  • Pointer size: 130 Bytes
  • Size of remote file: 82.1 kB
ddim_compVis_astronaut.png DELETED

Git LFS Details

  • SHA256: d79798b42d411fb5d25c0a59801d3434b4578769ff592d78a36e834679873eee
  • Pointer size: 132 Bytes
  • Size of remote file: 7.27 MB
ddpm_0_image.png DELETED

Git LFS Details

  • SHA256: 4f8f553d85bb3dd9cba38d76a537319bb59ae06a7579175265be43c4a46658a9
  • Pointer size: 130 Bytes
  • Size of remote file: 83.3 kB
diffusers/batch_1664287705.png → diffusers_reference/reference_image_sd_v1_3.png RENAMED
File without changes
diffusers_reference/run.py ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python3
2
+ #!/usr/bin/env python3
3
+ from diffusers import StableDiffusionPipeline, DDIMScheduler
4
+ from time import time
5
+ from PIL import Image
6
+ from einops import rearrange
7
+ import numpy as np
8
+ import torch
9
+ from torch import autocast
10
+ from torchvision.utils import make_grid
11
+
12
+ torch.manual_seed(42)
13
+
14
+ prompts = ["a photograph of an astronaut riding a horse"]
15
+
16
+ pipe = StableDiffusionPipeline.from_pretrained("CompVis/stable-diffusion-v1-3", revision="fp16", torch_dtype=torch.float16, use_auth_token=True) # make sure you're logged in with `huggingface-cli login`
17
+ #scheduler = DDIMScheduler(beta_start=0.00085, beta_end=0.012, beta_schedule="scaled_linear", clip_sample=False, set_alpha_to_one=False)
18
+ #pipe.scheduler = scheduler
19
+ pipe.to("cuda")
20
+
21
+ all_images = []
22
+ num_rows = 1
23
+ num_columns = 4
24
+ for prompt in prompts:
25
+ with autocast("cuda"):
26
+ images = pipe(num_columns * [prompt], guidance_scale=7.5, output_type="np")["sample"] # image here is in [PIL format](https://pillow.readthedocs.io/en/stable/)
27
+ all_images.append(torch.from_numpy(images))
28
+
29
+ # additionally, save as grid
30
+ grid = torch.stack(all_images, 0)
31
+ grid = rearrange(grid, 'n b h w c -> (n b) h w c')
32
+ grid = rearrange(grid, 'n h w c -> n c h w')
33
+ grid = make_grid(grid, nrow=num_rows)
34
+
35
+ # to image
36
+ grid = 255. * rearrange(grid, 'c h w -> h w c').cpu().numpy()
37
+ image = Image.fromarray(grid.astype(np.uint8))
38
+
39
+ image.save(f"../images/diffusers/batch_{round(time())}.png")
dog_in_the_park.png DELETED

Git LFS Details

  • SHA256: c7ad3676da874875dc58e257677812c0a78ffed13b16b1c4770292c56e91541c
  • Pointer size: 131 Bytes
  • Size of remote file: 488 kB
eiffel_tower_moon.png DELETED

Git LFS Details

  • SHA256: 15a696c37505c97796f06952fa3a4e8a095437c8becd43ac6c24765b2389c6cf
  • Pointer size: 131 Bytes
  • Size of remote file: 392 kB
eiffel_tower_on_moon.png DELETED

Git LFS Details

  • SHA256: 7f0b8e6c24f92fd7088d9bdffcfc6cf048bbb0bfd56a6a92fa3d1175be6cb559
  • Pointer size: 131 Bytes
  • Size of remote file: 431 kB
fantasy_landscape.png DELETED

Git LFS Details

  • SHA256: 433ee4b695c04d562d5178288605439eefe820dffd3b5176cbac3847071e4e1e
  • Pointer size: 131 Bytes
  • Size of remote file: 380 kB
fantasy_landscape_default.png DELETED

Git LFS Details

  • SHA256: 300c6c6a1e84bbad3c7ea1dd817bc316e08f7ba84dec2f111bf65051a26b0d3e
  • Pointer size: 131 Bytes
  • Size of remote file: 474 kB
generated_image.png DELETED

Git LFS Details

  • SHA256: c9867bda1943b455e158a9cc6cecbc226c6ece15e897ae0cc393bb4159cb07ae
  • Pointer size: 130 Bytes
  • Size of remote file: 79 kB
generated_image_0.png DELETED

Git LFS Details

  • SHA256: 4c4bc3d5488e787791ecadb645ae004972d3b5d2845fabfab34804f18c6af111
  • Pointer size: 131 Bytes
  • Size of remote file: 117 kB
generated_image_0_new.png DELETED

Git LFS Details

  • SHA256: dcaf9f46b0a7c03606bfc90309bc66ae100db0e0fabf5834f2abb21e104472af
  • Pointer size: 131 Bytes
  • Size of remote file: 117 kB
grid-0000.png DELETED

Git LFS Details

  • SHA256: 08809f8501b8be0ea3537d337b8dd20eb34961a253372efa7ccb4f6e3ad196a3
  • Pointer size: 132 Bytes
  • Size of remote file: 7.93 MB
grid-0001.png DELETED

Git LFS Details

  • SHA256: d44a11d478538226a56fb5bcc3ac3f9fef6cd60d918cd1f0ba2fb1702a46acd7
  • Pointer size: 132 Bytes
  • Size of remote file: 8.27 MB
grid-0004.png DELETED

Git LFS Details

  • SHA256: 5c8d20323c47532399ca75bf92b1a2e36eba22eea5b90e8bbe7c678eec26ac94
  • Pointer size: 131 Bytes
  • Size of remote file: 467 kB
grid-0005.png DELETED

Git LFS Details

  • SHA256: 5c8d20323c47532399ca75bf92b1a2e36eba22eea5b90e8bbe7c678eec26ac94
  • Pointer size: 131 Bytes
  • Size of remote file: 467 kB
grid-0006.png DELETED

Git LFS Details

  • SHA256: 73de3cc9f23c7a6177b66357d6d1b4894c944e6b579031e82c411a49fb7a84ff
  • Pointer size: 132 Bytes
  • Size of remote file: 1.94 MB
grid-0007.png DELETED

Git LFS Details

  • SHA256: 73de3cc9f23c7a6177b66357d6d1b4894c944e6b579031e82c411a49fb7a84ff
  • Pointer size: 132 Bytes
  • Size of remote file: 1.94 MB
grid-0008.png DELETED

Git LFS Details

  • SHA256: 20ab792febda788d4c2c215c618b7193da73abf27090326d4dbf92cf42646a99
  • Pointer size: 131 Bytes
  • Size of remote file: 468 kB
grid-0009.png DELETED

Git LFS Details

  • SHA256: 1b92385a964cbd0e38584c0b94335a9bd9bffd472548e4d14c2503186731d9ae
  • Pointer size: 132 Bytes
  • Size of remote file: 1.97 MB
grid-0010.png DELETED

Git LFS Details

  • SHA256: 1449606aef6821e9f83a3f250c864b92230cb13fd6963af84a38d2002fd747af
  • Pointer size: 132 Bytes
  • Size of remote file: 1.95 MB
hello.png DELETED

Git LFS Details

  • SHA256: 29ed18b6245019c1757d3074041c4c5a5693aee4db34b90f8d20db6b12065486
  • Pointer size: 131 Bytes
  • Size of remote file: 296 kB
hello.txt DELETED
File without changes
hey.png DELETED

Git LFS Details

  • SHA256: 689a24d9fc6aa305752c3b46f06f52950aa0f42052428ec524eea8581839123f
  • Pointer size: 131 Bytes
  • Size of remote file: 880 kB
hf/ddim-celeba-hq/image_0.png DELETED
Binary file (101 kB)
 
hf/ddim-celeba-hq/image_1.png DELETED
Binary file (106 kB)
 
hf/ddim-celeba-hq/image_2.png DELETED
Binary file (90.8 kB)
 
hf/ddim-celeba-hq/image_3.png DELETED
Binary file (66.3 kB)
 
hf/ddim-lsun-bedroom/image_0.png DELETED
Binary file (81.8 kB)
 
hf/ddim-lsun-bedroom/image_1.png DELETED
Binary file (94.1 kB)
 
hf/ddim-lsun-bedroom/image_2.png DELETED
Binary file (80 kB)
 
hf/ddim-lsun-bedroom/image_3.png DELETED
Binary file (85.7 kB)
 
hf/ddim-lsun-church/image_0.png DELETED
Binary file (95.9 kB)
 
hf/ddim-lsun-church/image_1.png DELETED
Binary file (144 kB)
 
hf/ddim-lsun-church/image_2.png DELETED
Binary file (104 kB)
 
hf/ddim-lsun-church/image_3.png DELETED
Binary file (170 kB)
 
hf/ddpm-celeba-hq-ema/image_0.png DELETED
Binary file (67.1 kB)
 
hf/ddpm-celeba-hq-ema/image_1.png DELETED
Binary file (74.7 kB)
 
hf/ddpm-celeba-hq-ema/image_2.png DELETED
Binary file (79.7 kB)
 
hf/ddpm-celeba-hq-ema/image_3.png DELETED
Binary file (88.8 kB)