Update README.md
This commit is contained in:
parent
20d9178237
commit
ed167940c5
|
@ -49,8 +49,8 @@ unet = UNetModel.from_pretrained("fusing/ddpm-lsun-church").to(torch_device)
|
||||||
|
|
||||||
# 2. Sample gaussian noise
|
# 2. Sample gaussian noise
|
||||||
image = torch.randn(
|
image = torch.randn(
|
||||||
(1, unet.in_channels, unet.resolution, unet.resolution)
|
(1, unet.in_channels, unet.resolution, unet.resolution),
|
||||||
generator=generator,
|
generator=generator,
|
||||||
)
|
)
|
||||||
image = image.to(torch_device)
|
image = image.to(torch_device)
|
||||||
|
|
||||||
|
@ -101,8 +101,8 @@ unet = UNetModel.from_pretrained("fusing/ddpm-celeba-hq").to(torch_device)
|
||||||
|
|
||||||
# 2. Sample gaussian noise
|
# 2. Sample gaussian noise
|
||||||
image = torch.randn(
|
image = torch.randn(
|
||||||
(1, unet.in_channels, unet.resolution, unet.resolution)
|
(1, unet.in_channels, unet.resolution, unet.resolution),
|
||||||
generator=generator,
|
generator=generator,
|
||||||
)
|
)
|
||||||
image = image.to(torch_device)
|
image = image.to(torch_device)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue