Update README.md
Browse files
README.md
CHANGED
@@ -69,5 +69,13 @@ DEFAULT_TRANSFORM = transforms.Compose(
|
|
69 |
The images can be decoded using :
|
70 |
|
71 |
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
72 |
image = vae.decode(latent).sample
|
73 |
```
|
|
|
69 |
The images can be decoded using :
|
70 |
|
71 |
```
|
72 |
+
import datasets
|
73 |
+
|
74 |
+
latent_dataset = datasets.load_dataset(
|
75 |
+
"Forbu14/imagenet-1k-latent"
|
76 |
+
)
|
77 |
+
|
78 |
+
latent_dataset =
|
79 |
+
latent = torch.tensor(latent_dataset["train"][0]["latents"])
|
80 |
image = vae.decode(latent).sample
|
81 |
```
|