Yoach Lacombe
c43b380e70
Add MusicGen Melody (#28819)
* first modeling code
* make repository
* still WIP
* update model
* add tests
* add latest change
* clean docstrings and copied from
* update docstrings md and readme
* correct chroma function
* correct copied from and remove unreleated test
* add doc to toctree
* correct imports
* add convert script to notdoctested
* Add suggestion from Sanchit
Co-authored-by: Sanchit Gandhi <93869735+sanchit-gandhi@users.noreply.github.com>
* correct get_uncoditional_inputs docstrings
* modify README according to SANCHIT feedback
* add chroma to audio utils
* clean librosa and torchaudio hard dependencies
* fix FE
* refactor audio decoder -> audio encoder for consistency with previous musicgen
* refactor conditional -> encoder
* modify sampling rate logics
* modify license at the beginning
* refactor all_self_attns->all_attentions
* remove ignore copy from causallm generate
* add copied from for from_sub_models
* fix make copies
* add warning if audio is truncated
* add copied from where relevant
* remove artefact
* fix convert script
* fix torchaudio and FE
* modify chroma method according to feedback-> better naming
* refactor input_values->input_features
* refactor input_values->input_features and fix import fe
* add input_features to docstrigs
* correct inputs_embeds logics
* remove dtype conversion
* refactor _prepare_conditional_hidden_states_kwargs_for_generation ->_prepare_encoder_hidden_states_kwargs_for_generation
* change warning for chroma length
* Update src/transformers/models/musicgen_melody/convert_musicgen_melody_transformers.py
Co-authored-by: Sanchit Gandhi <93869735+sanchit-gandhi@users.noreply.github.com>
* change way to save wav, using soundfile
* correct docs and change to soundfile
* fix import
* fix init proj layers
* remove line breaks from md
* fix issue with docstrings
* add FE suggestions
* improve is in logics and remove useless imports
* remove custom from_pretrained
* simplify docstring code
* add suggestions for modeling tests
* make style
* update converting script with sanity check
* remove encoder attention mask from conditional generation
* replace musicgen melody checkpoints with official orga
* rename ylacombe->facebook in checkpoints
* fix copies
* remove unecessary warning
* add shape in code docstrings
* add files to slow doc tests
* fix md bug and add md to not_tested
* make fix-copies
* fix hidden states test and batching
---------
Co-authored-by: Sanchit Gandhi <93869735+sanchit-gandhi@users.noreply.github.com>
2024-03-18 13:06:12 +00:00
..
2024-03-07 10:44:43 +00:00
2024-03-15 11:51:29 -04:00
2024-03-18 13:06:12 +00:00
2024-03-18 13:06:12 +00:00
2023-11-16 17:43:19 +01:00
2023-11-23 15:58:21 +00:00
2024-03-18 13:06:12 +00:00
2023-09-04 11:15:12 +01:00
2024-03-11 17:43:35 +00:00
2024-01-11 09:26:13 -08:00
2024-02-16 08:16:58 +01:00
2024-02-08 14:13:35 -08:00
2024-02-16 08:16:58 +01:00
2024-02-16 08:16:58 +01:00
2023-06-20 18:07:47 -04:00
2024-02-16 08:16:58 +01:00
2024-03-13 13:04:51 -07:00
2024-02-16 08:16:58 +01:00
2022-04-04 10:25:46 -04:00
2024-02-16 08:16:58 +01:00
2024-02-12 10:48:31 -08:00
2024-03-13 14:53:13 +01:00
2024-02-02 08:45:00 +01:00
2024-02-16 08:16:58 +01:00
2023-06-20 18:07:47 -04:00
2023-12-20 10:37:23 -08:00
2024-03-05 10:27:36 +00:00
2024-02-16 08:16:58 +01:00
2024-02-28 10:09:25 -05:00
2023-11-13 14:20:54 +01:00
2024-03-18 13:06:12 +00:00
2024-02-16 08:16:58 +01:00
2023-12-09 05:38:14 +09:00
2023-12-07 15:11:35 +00:00
2024-02-16 08:16:58 +01:00
2024-02-16 08:16:58 +01:00
2023-06-20 18:07:47 -04:00
2024-02-16 08:16:58 +01:00
2022-04-04 10:25:46 -04:00
2023-12-08 10:32:18 -08:00
2023-11-14 10:32:57 +01:00
2024-02-16 08:16:58 +01:00
2024-02-02 08:45:00 +01:00
2024-03-15 14:29:11 +01:00
2023-08-10 13:25:00 +02:00
2024-02-16 08:16:58 +01:00
2024-02-16 08:16:58 +01:00
2024-02-16 08:16:58 +01:00
2024-03-12 10:39:56 +00:00
2024-02-16 08:16:58 +01:00
2023-06-20 18:07:47 -04:00
2023-10-31 09:44:51 -07:00
2024-02-16 08:16:58 +01:00
2023-11-06 19:45:03 +00:00
2024-02-16 08:16:58 +01:00
2024-02-16 08:16:58 +01:00
2024-02-02 08:45:00 +01:00
2024-02-16 08:16:58 +01:00
2024-03-15 11:51:29 -04:00
2024-02-16 08:16:58 +01:00
2024-02-16 08:16:58 +01:00
2023-11-06 19:45:03 +00:00
2024-02-16 08:16:58 +01:00
2024-02-16 08:16:58 +01:00
2024-02-26 08:18:15 -08:00
2024-03-11 14:07:16 +00:00
2024-02-16 08:16:58 +01:00
2024-02-16 08:16:58 +01:00
2024-02-16 08:16:58 +01:00
2024-02-16 08:16:58 +01:00
2024-03-04 13:57:51 -08:00
2024-02-16 08:16:58 +01:00
2023-09-05 12:27:20 +01:00
2024-02-16 08:16:58 +01:00