File size: 1,467 Bytes
3ed838e
 
61383c3
 
 
3ed838e
61383c3
3ed838e
 
 
 
 
 
 
61383c3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
---
title: MERIT
emoji: 🎚️
colorFrom: blue
colorTo: green
sdk: gradio
sdk_version: 5.28.0
python_version: '3.12'
app_file: app.py
pinned: false
license: cc-by-nc-4.0
short_description: Compare melody, rhythm, and timbre similarity
---

# MERIT Music Similarity

A HARP-compatible deployment of MERIT for comparing two music clips along
three independently learned dimensions: melody, rhythm, and timbre.

The Space uses the official MERIT projection heads with the frozen
MERT-v1-330M backbone. Model files are downloaded from their official
Hugging Face repositories at pinned revisions and cached between requests.

## Inputs

- Two music audio clips
- Between 5 and 10 seconds per clip

Audio is converted to mono, resampled to 24 kHz, and padded or truncated to
10 seconds. The MERIT projection heads were trained from 10-second segments;
very short inputs are rejected because silence padding can make their scores
misleadingly high.

## Output

A JSON file containing cosine similarity scores for:

- Melody
- Rhythm
- Timbre

Scores range from -1 to 1. They are similarity measurements, not calibrated
probabilities.

## Sources

See [SOURCES.md](SOURCES.md) for upstream code, model revisions, licenses,
and the associated research papers.

## License

The MERIT code and projection heads are released under the MIT License.
The MERT-v1-330M backbone is released under CC BY-NC 4.0. This combined
deployment is therefore intended for non-commercial use.