Repository navigation
Conversation
|
@mehdidc can you review? |
b8a0087 to
dffcbf1
Compare
… files are written task_embeddings saves one .embedding.npy and .target-labels.json per audio file and then writes the same data again as one memmapped <split>.embeddings.npy + <split>.target-labels.pkl (+ <split>.filename-timestamps.json) per split, which is all the downstream probes read. A full HEAR run left ~530k small files per model; scores are unchanged.
|
Thanks a lot @GLJS ! do you have any numbers with MAEB, MSEB and HEAR ? i'd like to try to reproduce them. |
|
Currently I get : with : |
|
Hey @mehdidc thanks for taking the time to review! should now be fixed. It was because the CLAP2 models were private hosted at first. They are now publicly released. Here are the numbers for MAEB, MSEB and HEAR:
Be aware, MAEB takes around 0.5 GPU h, HEAR 1.4 GPU h and MSEB 2.1 GPU h to run fully on GH200 (of course you can parallelize over multiple GPU's / nodes). The numbers in the paper are mostly the same, but sometimes differ 0.1-0.2% due to numeric differences, including an older version of scikit-learn' (its k-means for MSEB) thats incompatible with this repo (1.8.0 vs 1.9.1, thought having separate env looks ugly) You can run with for m in hf-hub:laion/clap2-{xxs,xs,small,medium,large}-audioxl-s1B; do
clip_benchmark eval --model_type clap2 --model $m --dataset maeb hear mseb --batch_size 8 --output "results/${m##*/}/{dataset}.json"
doneI updated open_clip version in new commit, but apart from that, no more changes at this point :) |
This adds evaluation of audio-text (CLAP) models on MAEB, MSEB and HEAR with the existing CLI.
--model_type claploads LAION-CLAP models and--model_type clap2loads NaFlex CLAP models through OpenCLIP. The benchmarks are the datasetsmaeb,msebandhear, or single tasks such asmaeb/<task>. Each runs in its own library (MTEB, MSEB, heareval), and the data is downloaded when missing. Image evaluation is unchanged, and the audio dependencies are in newaudioandhearextras. Supersedes #148. Thenaflexclap_*pretrained tags need mlfoundations/open_clip#1230.