Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trying to overfit SounsStream #276

Open
hishammadcor opened this issue Aug 13, 2024 · 0 comments
Open

Trying to overfit SounsStream #276

hishammadcor opened this issue Aug 13, 2024 · 0 comments

Comments

@hishammadcor
Copy link

hishammadcor commented Aug 13, 2024

I am trying to overfit SoundStream on 10 samples from a common voice dataset to validate and train on the whole dataset. But the output is just noise! I do not know what the problem is. I also tried to overfit on only 1 sample.

This is the code I use:

soundstream = SoundStream(
    codebook_size = 1024,
    rq_num_quantizers = 8,
    rq_groups = 2,                      
    use_lookup_free_quantizer = True,    
    use_finite_scalar_quantizer = False, 
    attn_window_size = 128,             
    attn_depth = 2
)

trainer = SoundStreamTrainer(
    soundstream,
    folder = "/data/data/",
    batch_size = 1,
    grad_accum_every = 2,        
    data_max_length_seconds = 2, 
    save_results_every = 1,
    save_model_every = 4,
    num_train_steps = 1_000
).cuda()

trainer.train()

The text file for the losses during the training for the first 500+ steps:
audiolm_pytorch_demo.txt

I am using the last version 2.0.7, Python 3.10.4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant