Skip to content

Commit

Permalink
fix: patch factor missing from autoencoder, set default
Browse files Browse the repository at this point in the history
  • Loading branch information
flavioschneider committed Sep 23, 2022
1 parent a6df6bd commit 9f57a87
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ unet = UNet1d(
in_channels=1,
channels=128,
patch_blocks=4,
patch_factor=2,
kernel_sizes_init=[1, 3, 7],
multipliers=[1, 2, 4, 4, 4, 4, 4],
factors=[4, 4, 4, 2, 2, 2],
Expand Down
3 changes: 3 additions & 0 deletions audio_diffusion_pytorch/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ def __init__(
in_channels: int,
channels: int,
patch_blocks: int,
patch_factor: int,
kernel_sizes_init: Sequence[int],
multipliers: Sequence[int],
factors: Sequence[int],
Expand All @@ -130,6 +131,7 @@ def __init__(
in_channels=in_channels,
channels=channels,
patch_blocks=patch_blocks,
patch_factor=patch_factor,
num_layers=encoder_depth,
latent_channels=encoder_channels,
multipliers=multipliers,
Expand All @@ -144,6 +146,7 @@ def __init__(
in_channels=in_channels,
channels=channels,
patch_blocks=patch_blocks,
patch_factor=patch_factor,
kernel_sizes_init=kernel_sizes_init,
multipliers=multipliers,
factors=factors,
Expand Down
2 changes: 1 addition & 1 deletion audio_diffusion_pytorch/modules.py
Original file line number Diff line number Diff line change
Expand Up @@ -875,6 +875,7 @@ def __init__(
in_channels: int,
channels: int,
patch_blocks: int,
patch_factor: int,
multipliers: Sequence[int],
factors: Sequence[int],
num_blocks: Sequence[int],
Expand All @@ -890,7 +891,6 @@ def __init__(
use_attention_bottleneck: bool,
use_context_time: bool,
out_channels: Optional[int] = None,
patch_factor: int = 2,
context_features: Optional[int] = None,
context_channels: Optional[Sequence[int]] = None,
context_embedding_features: Optional[int] = None,
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.42",
version="0.0.43",
license="MIT",
description="Audio Diffusion - PyTorch",
long_description_content_type="text/markdown",
Expand Down

0 comments on commit 9f57a87

Please sign in to comment.