Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
renzhc
diffusers_dcu
Commits
ed167940
Unverified
Commit
ed167940
authored
Jun 13, 2022
by
Patrick von Platen
Committed by
GitHub
Jun 13, 2022
Browse files
Update README.md
parent
20d91782
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
README.md
README.md
+4
-4
No files found.
README.md
View file @
ed167940
...
@@ -49,8 +49,8 @@ unet = UNetModel.from_pretrained("fusing/ddpm-lsun-church").to(torch_device)
...
@@ -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)
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment