Skip to content

Commit 6269fcb

Browse files
fix: sampling code example typo
2 parents cb1551b + 854f84d commit 6269fcb

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
@@ -61,7 +61,7 @@ unet = UNet1d(
6161
x = torch.randn(3, 1, 2 ** 16)
6262
t = torch.tensor([0.2, 0.8, 0.3])
6363

64-
y = unet(x, t) # [2, 1, 32768], 2 samples of ~1.5 seconds of generated audio at 22050kHz
64+
y = unet(x, t) # [3, 1, 32768], compute 3 samples of ~1.5 seconds at 22050Hz with the given noise levels t
6565
```
6666

6767
### Diffusion
@@ -84,7 +84,7 @@ loss.backward() # Do this many times
8484

8585
#### Sampling
8686
```python
87-
from audio_diffusion_pytorch import DiffusionSampler, KerrasSchedule
87+
from audio_diffusion_pytorch import DiffusionSampler, KarrasSchedule
8888

8989
sampler = DiffusionSampler(
9090
diffusion,

0 commit comments

Comments
 (0)