tjl223 commited on
Commit
059c109
1 Parent(s): 3a18893

changed metric to be between 0 and 100

Browse files
Files changed (3) hide show
  1. ArtistCoherencyModel.py +1 -1
  2. test2.txt +87 -0
  3. test3.txt +64 -0
ArtistCoherencyModel.py CHANGED
@@ -85,7 +85,7 @@ class ArtistCoherencyModel(nn.Module, PyTorchModelHubMixin):
85
  coherent_index = self.ffnn.label2id[f"{artist_name}-coherent"]
86
  logits = self.generate_artist_coherency_logits(song_or_embedding)
87
  coherent_score = logits[coherent_index]
88
- return float(coherent_score)
89
 
90
  def predict(
91
  self, song_or_embedding: Union[str, torch.Tensor], return_ids: bool = False
 
85
  coherent_index = self.ffnn.label2id[f"{artist_name}-coherent"]
86
  logits = self.generate_artist_coherency_logits(song_or_embedding)
87
  coherent_score = logits[coherent_index]
88
+ return 100 * float(coherent_score)
89
 
90
  def predict(
91
  self, song_or_embedding: Union[str, torch.Tensor], return_ids: bool = False
test2.txt ADDED
@@ -0,0 +1,87 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [Intro]
2
+ Bikini bottoms and bikini tops
3
+ You can catch Thee Stallion drinking out a Henny bottle, lookin' hot (Ayy, yeah)
4
+ Hot girl, hot girl, hot girl, hot girl
5
+ [Verse 1]
6
+ Shades on in the party, am I lit? Bitch, of course (Duh)
7
+ H-Town hottie, I'm the black Regina George (I'm the black Regina George)
8
+ Ex tried to play me like a ho (What?)
9
+ I put him on the block 'cause that just make him want me more (Ahh)
10
+ And I don't wanna talk, I put my phone on DND (Yeah)
11
+ I'm with my other nigga, tryna creep like TLC (What?)
12
+ And when he tryna start, I push that button, E-N-D (Uh-uh)
13
+ And only time I see him, when I'm tryna get some D (Ayy, ayy, ayy, ayy, yeah)
14
+ I don't wanna call, I don't wanna text
15
+ Tryna set me up, put me on the net (I ain't goin')
16
+ I don't do no pics, I don't shoot no vids (Hell nah)
17
+ And you ain't gon' see my name in no GM (Nope)
18
+ [Pre-Chorus]
19
+ I be doing me, hanging lowkey (In the back)
20
+ They gon' do the most, I'ma keep it G (Keep it player)
21
+ I don't say a word but I'm gettin' seen
22
+ Everything I do, I do it naturally, ayy, yeah
23
+ [Chorus]
24
+ Naturally (I'm a star)
25
+ Naturally (I'm that bitch)
26
+ Naturally (Check my 'fit)
27
+ Naturally (Do what I want)
28
+ Naturally (Stalli)
29
+ Naturally (I'm the shit)
30
+ Everything I do, I do it naturally
31
+ [Verse 2]
32
+ I was never meant to live life like a simp
33
+ Fuck getting skimped, I'd rather be a pimp (I'd rather be a pimp)
34
+ And every enemy I had started as a friend
35
+ They wanna see me shine but not harder than them
36
+ So I stepped out, body like pow (Voila)
37
+ If he runnin' with that money, you know Megan in route (Yeah)
38
+ Got your daddy drinking out the bottle, he wanna be down
39
+ He be actin' like a kid, running from your mama house
40
+ I'm sexy and we know that ain't a secret (Nope)
41
+ Slicked back ponytail like I'm Puerto Rican (Yes ma'am)
42
+ Baby hairs on, \"Yes ma'am, bitch, kill it\" (Girl, kill it)
43
+ I'm so bad, I look like a super villain
44
+ [Pre-Chorus]
45
+ I be doing me, hanging lowkey (In the back)
46
+ They gon' do the most, I'ma keep it G (Keep it player)
47
+ I don't say a word but I'm gettin' seen
48
+ Everything I do, I do it naturally, ayy, yeah
49
+ [Chorus]
50
+ Naturally (I'm a star)
51
+ Naturally (I'm that bitch)
52
+ Naturally (Check my 'fit)
53
+ Naturally (Do what I want)
54
+ Naturally (Stalli)
55
+ Naturally (I'm the shit)
56
+ Everything I do, I do it naturally
57
+ [Verse 3]
58
+ Hot girl, big bucks
59
+ Pull up in that, \"What the fuck?\"
60
+ Bad bitch, super model
61
+ Make your nigga suck my pussy like a baby bottle (Mwah)
62
+ They be tryna block my blessings, I'm like AND1 (Woo)
63
+ And I bet your nigga is a fan, huh (Ahh)
64
+ He wanna ride 'cause I'm cooler than a fan, huh
65
+ I'm so hot, he wanna kiss on my tan lines
66
+ Fine and I'm slim (Slim), I be in the gym (Yeah)
67
+ I know some mad hoes built like M&M's (Built like M&M's)
68
+ And a couple of these dudes with these damn slim jims (Uh-huh)
69
+ Buying big magnums, tryna fuck you backwards
70
+ But I like it with the lights on (Lights on)
71
+ I need to see if that thang really hang long (Hang long)
72
+ And he say I'm a dog, I'ma need a big bone (Big bone)
73
+ And if you fall short, I'm a send yo' ass home
74
+ Nigga, take yo' ass on
75
+ [Pre-Chorus]
76
+ I be doing me, hanging lowkey (In the back)
77
+ They gon' do the most, I'ma keep it G (Keep it player)
78
+ I don't say a word but I'm gettin' seen
79
+ Everything I do, I do it naturally, ayy, yeah
80
+ [Chorus]
81
+ Naturally (I'm a star)
82
+ Naturally (I'm that bitch)
83
+ Naturally (Check my 'fit)
84
+ Naturally (Do what I want)
85
+ Naturally (Stalli)
86
+ Naturally (I'm the shit)
87
+ Everything I do, I do it naturally (Ahh)
test3.txt ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [Intro: Idris Elba & James Corden]
2
+ We can go drivin' in, on my scooter
3
+ Uh, you know, just 'round London (Oh, I'd—)
4
+ [Verse 1]
5
+ I love my hometown as much as Motown, I love SoCal
6
+ And you know I love Springsteen, faded blue jeans, Tennessee whiskey
7
+ But somethin' happened, I heard him laughin'
8
+ I saw the dimples first and then I heard the accent
9
+ [Pre-Chorus]
10
+ They say, \"Home is where the heart is\"
11
+ But that's not where mine lives
12
+ [Chorus]
13
+ You know I love a London boy
14
+ I enjoy walkin' Camden Market in the afternoon
15
+ He likes my American smile, like a child when our eyes meet
16
+ Darling, I fancy you
17
+ Took me back to Highgate, met all of his best mates
18
+ So I guess all the rumors are true
19
+ You know I love a London boy
20
+ Boy, I fancy you (Ooh)
21
+ [Verse 2]
22
+ And now I love high tea, stories from Uni' and the West End
23
+ You can find me in the pub, we are watchin' rugby with his school friends
24
+ Show me a gray sky, a rainy cab ride
25
+ Babes, don't threaten me with a good time
26
+ [Pre-Chorus]
27
+ They say, \"Home is where the heart is\"
28
+ But, God, I love the English
29
+ [Chorus]
30
+ You know I love a London boy
31
+ I enjoy nights in Brixton, Shoreditch in the afternoon
32
+ He likes my American smile, like a child when our eyes meet
33
+ Darling, I fancy you
34
+ Took me back to Highgate, met all of his best mates
35
+ So I guess all the rumors are true
36
+ You know I love a London boy
37
+ Boy, I fancy you
38
+ [Bridge]
39
+ So please show me Hackney
40
+ Doesn't have to be Louis V up on Bond Street
41
+ Just wanna be with you
42
+ Wanna be with you
43
+ Stick with me, I'm your queen
44
+ Like a Tennessee Stella McCartney on the Heath
45
+ Just wanna be with you (Wanna be with you)
46
+ Wanna be with you, oh, woah
47
+ [Chorus]
48
+ You know I love a London boy
49
+ I enjoy walkin' Soho, drinkin' in the afternoon (Yeah)
50
+ He likes my American smile, like a child when our eyes meet
51
+ Darling, I fancy you (You)
52
+ Took me back to Highgate, met all of his best mates
53
+ So I guess all the rumors are true (Yeah)
54
+ You know I love a London boy (Oh)
55
+ Boy (Oh), I fancy you (I fancy you; ooh)
56
+ [Outro]
57
+ So please show me Hackney
58
+ Doesn't have to be Louis V up on Bond Street
59
+ Just wanna be with you (Ooh)
60
+ I, oh, I, I fancy you, oh, woah-ah-ah (Ooh)
61
+ Stick with me, I'm your queen
62
+ Like a Tennessee Stella McCartney on the Heath
63
+ Just wanna be with you (Ooh), wanna be with you
64
+ I fancy you (Yeah), I fancy you, ah-ah (Ooh)