Skip to content

Commit

Permalink
feat: autoencoder noise before unpatching
Browse files Browse the repository at this point in the history
  • Loading branch information
flavioschneider committed Oct 1, 2022
1 parent c5ac204 commit 81bcad6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion audio_diffusion_pytorch/modules.py
Original file line number Diff line number Diff line change
Expand Up @@ -1165,7 +1165,7 @@ def __init__(
)

self.to_out = Unpatcher(
in_channels=channels,
in_channels=channels * (use_noisy + 1),
out_channels=in_channels,
blocks=patch_blocks,
factor=patch_factor,
Expand All @@ -1188,6 +1188,8 @@ def decode(self, x: Tensor) -> Tensor:
if self.use_noisy:
x = torch.cat([x, torch.randn_like(x)], dim=1)
x = upsample(x)
if self.use_noisy:
x = torch.cat([x, torch.randn_like(x)], dim=1)
return self.to_out(x)


Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
setup(
name="audio-diffusion-pytorch",
packages=find_packages(exclude=[]),
version="0.0.51",
version="0.0.52",
license="MIT",
description="Audio Diffusion - PyTorch",
long_description_content_type="text/markdown",
Expand Down

0 comments on commit 81bcad6

Please sign in to comment.