Skip to content

Commit 81bcad6

Browse files
feat: autoencoder noise before unpatching
1 parent c5ac204 commit 81bcad6

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

audio_diffusion_pytorch/modules.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -1165,7 +1165,7 @@ def __init__(
11651165
)
11661166

11671167
self.to_out = Unpatcher(
1168-
in_channels=channels,
1168+
in_channels=channels * (use_noisy + 1),
11691169
out_channels=in_channels,
11701170
blocks=patch_blocks,
11711171
factor=patch_factor,
@@ -1188,6 +1188,8 @@ def decode(self, x: Tensor) -> Tensor:
11881188
if self.use_noisy:
11891189
x = torch.cat([x, torch.randn_like(x)], dim=1)
11901190
x = upsample(x)
1191+
if self.use_noisy:
1192+
x = torch.cat([x, torch.randn_like(x)], dim=1)
11911193
return self.to_out(x)
11921194

11931195

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
setup(
44
name="audio-diffusion-pytorch",
55
packages=find_packages(exclude=[]),
6-
version="0.0.51",
6+
version="0.0.52",
77
license="MIT",
88
description="Audio Diffusion - PyTorch",
99
long_description_content_type="text/markdown",

0 commit comments

Comments
 (0)