JuniorDerp
commited on
Update README.md
Browse filesFix a mistake in a comment in the example usage code
README.md
CHANGED
@@ -29,7 +29,7 @@ untransform_image = transforms.Compose([
|
|
29 |
model = AutoencoderKL.from_pretrained("scrumptious/librevae-f8-d8").to("cuda").eval()
|
30 |
model.requires_grad_(False)
|
31 |
|
32 |
-
# For a 512x512 image, image_tensor will be (1,
|
33 |
image_tensor = transform_image(Image.open("sample.png")).unsqueeze(0).to("cuda")
|
34 |
# latent will be (1, 8, 64, 64)
|
35 |
# we multiply it by the scaling factor so it has an approximate mean of 0 and variance of 1
|
|
|
29 |
model = AutoencoderKL.from_pretrained("scrumptious/librevae-f8-d8").to("cuda").eval()
|
30 |
model.requires_grad_(False)
|
31 |
|
32 |
+
# For a 512x512 image, image_tensor will be (1, 3, 512, 512)
|
33 |
image_tensor = transform_image(Image.open("sample.png")).unsqueeze(0).to("cuda")
|
34 |
# latent will be (1, 8, 64, 64)
|
35 |
# we multiply it by the scaling factor so it has an approximate mean of 0 and variance of 1
|