Code Monkey home page Code Monkey logo

Comments (4)

soujanyaporia avatar soujanyaporia commented on June 2, 2024

Hey!

Thanks. You may just run this: accelerate launch train.py
--train_file="data/train_audiocaps.json" --validation_file="data/valid_audiocaps.json" --test_file="data/test_audiocaps_subset.json"
--hf_model "declare-lab/tango2" --unet_model_config="configs/diffusion_model_config.json" --freeze_text_encoder
--gradient_accumulation_steps 4 --per_device_train_batch_size=2 --per_device_eval_batch_size=2 --augment
--learning_rate=3e-5 --num_train_epochs 40 --snr_gamma 5
--text_column captions --audio_column location --checkpointing_steps="best"

Replace the train_file with your file. You will need to maintain the format accepted by the code: https://raw.githubusercontent.com/declare-lab/tango/master/data/train_audiocaps.json

from tango.

cvillela avatar cvillela commented on June 2, 2024

@soujanyaporia thank you very much for the reply.

In this case would I need to train the model from scratch with Audiocaps + Alpaca + My dataset?
Or is it pulling the tango2 checkpoint and would just finetune the trained over my new train.json file?

Edit:
Same goes for the valid_audiocaps.json and test_audiocaps_subset.json files: do I need to replace them with my own dataset files?

And souldn't I be running tango2-train.py instead?
Or is the pipeline to finetune a model with train.py and only later use that checkpoint to finetune with tango2?

from tango.

soujanyaporia avatar soujanyaporia commented on June 2, 2024

is it pulling the tango2 checkpoint and would just finetune the trained over my new train.json file?

Yes!

Same goes for the valid_audiocaps.json and test_audiocaps_subset.json files: do I need to replace them with my own dataset files?

Yes, you can but not necessary.

And souldn't I be running tango2-train.py instead?

No! because tango2 is trained using DPO. For fine-tuning, you do not need that.

from tango.

cvillela avatar cvillela commented on June 2, 2024

Thank you very much for your help, I will be closing the issue!

One other question would be, how many hours of recordings would you deem necessary for finetuning?
I know this could be subjective depending on the task at hand, but any estimates would be much appreciated.

from tango.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.