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

Training on CLAP Embedding #156

Open
javanasse opened this issue Oct 31, 2024 · 0 comments
Open

Training on CLAP Embedding #156

javanasse opened this issue Oct 31, 2024 · 0 comments

Comments

@javanasse
Copy link

I am trying to train the model on CLAP embedding, as described in the docs. I have updated the model_config.json to

"model": {  ...
     "conditioning": { ...
           "configs": [
                {
                    "id": "prompt",
                    "type": "clap_text",
                    "config": {
                        "clap_ckpt_path": "/path/to/music_audioset_epoch_15_esc_90.14.pt",
                        "audio_model_type": "HTSAT-base",
                        "enable_fusion": true,
                        "use_text_features": true,
                        "feature_layer_ix": -1
                    }
                },

But how should I update the get_custom_metadata method? Do I need to pass precomputed CLAP embeddings to the model? The "prompt" dictionary returned by get_custom_metadata is required to be a string. Any help would be much appreciated, the docs are a bit vague in this area.

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