We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 60f760e commit e872ec3Copy full SHA for e872ec3
README.md
@@ -42,7 +42,7 @@ diffusion = GaussianDiffusion(
42
loss_type = 'l1' # L1 or L2
43
)
44
45
-training_images = torch.randn(8, 3, 128, 128) # images are normalized from 0 to 1
+training_images = torch.rand(8, 3, 128, 128) # images are normalized from 0 to 1
46
loss = diffusion(training_images)
47
loss.backward()
48
# after a lot of training
@@ -124,7 +124,7 @@ diffusion = GaussianDiffusion1D(
124
objective = 'pred_v'
125
126
127
-training_seq = torch.randn(8, 32, 128) # features are normalized from 0 to 1
+training_seq = torch.rand(8, 32, 128) # features are normalized from 0 to 1
128
loss = diffusion(training_seq)
129
130
0 commit comments