Skip to content

Commit e872ec3

Browse files
committed
tweak readme
1 parent 60f760e commit e872ec3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ diffusion = GaussianDiffusion(
4242
loss_type = 'l1' # L1 or L2
4343
)
4444

45-
training_images = torch.randn(8, 3, 128, 128) # images are normalized from 0 to 1
45+
training_images = torch.rand(8, 3, 128, 128) # images are normalized from 0 to 1
4646
loss = diffusion(training_images)
4747
loss.backward()
4848
# after a lot of training
@@ -124,7 +124,7 @@ diffusion = GaussianDiffusion1D(
124124
objective = 'pred_v'
125125
)
126126

127-
training_seq = torch.randn(8, 32, 128) # features are normalized from 0 to 1
127+
training_seq = torch.rand(8, 32, 128) # features are normalized from 0 to 1
128128
loss = diffusion(training_seq)
129129
loss.backward()
130130

0 commit comments

Comments
 (0)