Skip to content

Commit 22e5d75

Browse files
fix: first/last block channels prod with multiplier
1 parent c458fc2 commit 22e5d75

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

audio_diffusion_pytorch/modules.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1019,7 +1019,7 @@ def __init__(
10191019

10201020
self.to_in = Patcher(
10211021
in_channels=in_channels + context_channels[0],
1022-
out_channels=channels,
1022+
out_channels=channels * multipliers[0],
10231023
blocks=patch_blocks,
10241024
factor=patch_factor,
10251025
context_mapping_features=context_mapping_features,
@@ -1093,7 +1093,7 @@ def __init__(
10931093
)
10941094

10951095
self.to_out = Unpatcher(
1096-
in_channels=channels,
1096+
in_channels=channels * multipliers[0],
10971097
out_channels=out_channels * (2 if use_magnitude_channels else 1),
10981098
blocks=patch_blocks,
10991099
factor=patch_factor,
@@ -1383,7 +1383,7 @@ def __init__(
13831383

13841384
self.to_in = Patcher(
13851385
in_channels=in_channels,
1386-
out_channels=channels,
1386+
out_channels=channels * multipliers[0],
13871387
blocks=patch_blocks,
13881388
factor=patch_factor,
13891389
)
@@ -1474,7 +1474,7 @@ def __init__(
14741474
)
14751475

14761476
self.to_out = Unpatcher(
1477-
in_channels=channels,
1477+
in_channels=channels * multipliers[0],
14781478
out_channels=out_channels * (2 if use_magnitude_channels else 1),
14791479
blocks=patch_blocks,
14801480
factor=patch_factor,

setup.py

Lines changed: 1 addition & 1 deletion
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.78",
6+
version="0.0.79",
77
license="MIT",
88
description="Audio Diffusion - PyTorch",
99
long_description_content_type="text/markdown",

0 commit comments

Comments
 (0)