Spijkervet / CLMR

Official PyTorch implementation of Contrastive Learning of Musical Representations
https://arxiv.org/abs/2103.09410
Apache License 2.0
309 stars 48 forks source link

Is there any length limit of the music with this method? #15

Open Ramlinbird opened 2 years ago

Ramlinbird commented 2 years ago

Nice to see contrastive learning used in music area, is there any length limit? Is it possible to get meaningful representation (for example, hundreds dimension vector) of song (few minutes long) with this method? Look forward for your reply, thanks a lot.

Ramlinbird commented 2 years ago

@Spijkervet Hello, sorry to disturb. I tried change the audio_length, and it failed. I read the source code and found that the encoder of audio is sample_cnn which can't process variable size input? How did you solve this? Looking forward to your reply, thanks a lot.