File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -1508,11 +1508,13 @@ def __init__(
15081508 use_noisy : bool = False ,
15091509 bottleneck : Union [Bottleneck , List [Bottleneck ]] = [],
15101510 bottleneck_channels : Optional [int ] = None ,
1511+ out_channels : Optional [int ] = None ,
15111512 use_magnitude_channels : bool = False ,
15121513 ):
15131514 super ().__init__ ()
15141515 num_layers = len (multipliers ) - 1
15151516 self .bottlenecks = nn .ModuleList (to_list (bottleneck ))
1517+ out_channels = default (out_channels , in_channels )
15161518
15171519 assert len (factors ) >= num_layers and len (num_blocks ) >= num_layers
15181520
@@ -1530,7 +1532,7 @@ def __init__(
15301532
15311533 self .decoder = Decoder1d (
15321534 in_channels = bottleneck_channels ,
1533- out_channels = in_channels ,
1535+ out_channels = out_channels ,
15341536 channels = channels ,
15351537 patch_blocks = patch_blocks ,
15361538 patch_factor = patch_factor ,
Original file line number Diff line number Diff line change 33setup (
44 name = "audio-diffusion-pytorch" ,
55 packages = find_packages (exclude = []),
6- version = "0.0.75 " ,
6+ version = "0.0.76 " ,
77 license = "MIT" ,
88 description = "Audio Diffusion - PyTorch" ,
99 long_description_content_type = "text/markdown" ,
You can’t perform that action at this time.
0 commit comments