Skip to content

Commit

Permalink
feat: add option to change context_features_multiplier
Browse files Browse the repository at this point in the history
  • Loading branch information
flavioschneider committed Nov 16, 2022
1 parent fdf55ba commit 5fb0939
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion audio_diffusion_pytorch/modules.py
Original file line number Diff line number Diff line change
Expand Up @@ -938,6 +938,7 @@ def __init__(
use_stft_context: bool = False,
out_channels: Optional[int] = None,
context_features: Optional[int] = None,
context_features_multiplier: int = 4,
context_channels: Optional[Sequence[int]] = None,
context_embedding_features: Optional[int] = None,
**kwargs,
Expand Down Expand Up @@ -975,7 +976,7 @@ def __init__(
)

if use_context_time or use_context_features:
context_mapping_features = channels * 4
context_mapping_features = channels * context_features_multiplier

self.to_mapping = nn.Sequential(
nn.Linear(context_mapping_features, context_mapping_features),
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.87",
version="0.0.88",
license="MIT",
description="Audio Diffusion - PyTorch",
long_description_content_type="text/markdown",
Expand Down

0 comments on commit 5fb0939

Please sign in to comment.