Skip to content

Commit

Permalink
increase default codebook size
Browse files Browse the repository at this point in the history
  • Loading branch information
lucidrains committed Oct 24, 2023
1 parent 29a57ef commit 8fd178d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ Otherwise, to stay more true to the original paper, you can use `SoundStream`. F
from audiolm_pytorch import SoundStream, SoundStreamTrainer

soundstream = SoundStream(
codebook_size = 1024,
codebook_size = 4096,
rq_num_quantizers = 8,
rq_groups = 2, # this paper proposes using multi-headed residual vector quantization - https://arxiv.org/abs/2305.02765
use_lookup_free_quantizer = True, # whether to use residual lookup free quantization
Expand Down
2 changes: 1 addition & 1 deletion audiolm_pytorch/soundstream.py
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ def __init__(
strides = (2, 4, 5, 8),
channel_mults = (2, 4, 8, 16),
codebook_dim = 512,
codebook_size = 1024,
codebook_size = 4096,
rq_num_quantizers = 8,
rq_commitment_weight = 1.,
rq_ema_decay = 0.95,
Expand Down
2 changes: 1 addition & 1 deletion audiolm_pytorch/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '1.6.1'
__version__ = '1.6.2'

0 comments on commit 8fd178d

Please sign in to comment.