parquet-converter commited on
Commit
24d0a85
β€’
1 Parent(s): b600bc0

Update parquet files

Browse files
README.md DELETED
@@ -1,69 +0,0 @@
1
- ---
2
- dataset_info:
3
- features:
4
- - name: label
5
- dtype:
6
- class_label:
7
- names:
8
- 0: '0'
9
- 1: '1'
10
- 2: '2'
11
- 3: '3'
12
- 4: '4'
13
- 5: '5'
14
- 6: '6'
15
- 7: '7'
16
- 8: '8'
17
- 9: '9'
18
- 10: a
19
- 11: b
20
- 12: c
21
- 13: d
22
- 14: e
23
- 15: f
24
- - name: latent
25
- sequence:
26
- sequence:
27
- sequence: float32
28
- splits:
29
- - name: test
30
- num_bytes: 106824288
31
- num_examples: 6312
32
- - name: train
33
- num_bytes: 2029441460
34
- num_examples: 119915
35
- download_size: 2082210019
36
- dataset_size: 2136265748
37
- ---
38
- # Dataset Card for "latent_lsun_church_256px"
39
-
40
- This is derived from https://huggingface.co/datasets/tglcourse/lsun_church_train
41
-
42
- Each image is cropped to 256px square and encoded to a 4x32x32 latent representation using the same VAE as that employed by Stable Diffusion
43
-
44
- Decoding
45
- ```python
46
- from diffusers import AutoencoderKL
47
- from datasets import load_dataset
48
- from PIL import Image
49
- import numpy as np
50
- import torch
51
-
52
- # load the dataset
53
- dataset = load_dataset('tglcourse/latent_lsun_church_256px')
54
-
55
- # Load the VAE (requires access - see repo model card for info)
56
- vae = AutoencoderKL.from_pretrained("CompVis/stable-diffusion-v1-4", subfolder="vae")
57
-
58
- latent = torch.tensor([dataset['train'][0]['latent']]) # To tensor (bs, 4, 32, 32)
59
- latent = (1 / 0.18215) * latent # Scale to match SD implementation
60
- with torch.no_grad():
61
- image = vae.decode(latent).sample[0] # Decode
62
- image = (image / 2 + 0.5).clamp(0, 1) # To (0, 1)
63
- image = image.detach().cpu().permute(1, 2, 0).numpy() # To numpy, channels lsat
64
- image = (image * 255).round().astype("uint8") # (0, 255) and type uint8
65
- image = Image.fromarray(image) # To PIL
66
- image # The resulting PIL image
67
-
68
- ```
69
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
data/train-00003-of-00005-9250fc9afe771c61.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:b82c6465e1b95cfc1be82daa6596a51a82f6ce51f2c5d8e45034ce589b1c4c27
3
- size 395592597
 
 
 
 
data/train-00004-of-00005-640709d96f19594a.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:2f6f240bee3fb2f051a51091fe2aa79f1510ab5e54c43f5ef6da4ddd3a29f004
3
- size 395592770
 
 
 
 
data/train-00002-of-00005-8afbdc84a24073cd.parquet β†’ tglcourse--latent_lsun_church_256px/parquet-test.parquet RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:a8ac3afde0427058a91785538e4f94d84d95ffabf9a4a50fec72237f6b6619b9
3
- size 395592816
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bcb8959c5e493fca61dd01bde4c5c9da834c68452d7ef2231ae452ade2bdf7ad
3
+ size 107990052
data/test-00000-of-00001-3db057d5316e30db.parquet β†’ tglcourse--latent_lsun_church_256px/parquet-train-00000-of-00004.parquet RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:c1a3efe99500677303ae445d5994731cd94a9998a146eea2a7ea1097f1b49790
3
- size 104246192
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d2488ba080ff5c451f3e53b6959fa41247c5c4a6a3880c05af019b802ea7275f
3
+ size 579100107
data/train-00000-of-00005-46d4f66e6345be99.parquet β†’ tglcourse--latent_lsun_church_256px/parquet-train-00001-of-00004.parquet RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:98a215e319765940128177f837385d5ee6c99ab9c95ec8ea1f1b644efbcd4651
3
- size 395592809
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d74816321e1e78610736a92d89d3afd5dfd723110aaa23102f47a7208f087b45
3
+ size 579099513
data/train-00001-of-00005-6b76eddc47149307.parquet β†’ tglcourse--latent_lsun_church_256px/parquet-train-00002-of-00004.parquet RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:4b8f75a54fb4de51d81dea732fbf91b4afa55e1dadb1d18268e6f40d2c2e9e83
3
- size 395592835
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:35fe4bb3c3317c3e575e3e523c8bc62895b6dda66f19102d51672b758f432e16
3
+ size 646982564
tglcourse--latent_lsun_church_256px/parquet-train-00003-of-00004.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f3e33c96a05e2e33957c61fd430dcd8f8490f5274ed964b9f7371be337958087
3
+ size 238289713