Spaces:
Sleeping
Sleeping
AhmedSSabir
commited on
Commit
•
db30631
1
Parent(s):
78464e7
Update app.py
Browse files
app.py
CHANGED
@@ -151,7 +151,7 @@ def Visual_re_ranker(caption_man, caption_woman, context_label, context_prob):
|
|
151 |
# LM_man = cloze_prob(caption_man)
|
152 |
# LM_woman = cloze_prob(caption_woman)
|
153 |
|
154 |
-
|
155 |
|
156 |
#LM = scorer.sentence_score(caption, reduce="mean")
|
157 |
score_man = pow(float(LM_man),pow((1-float(sim_m))/(1+ float(sim_m)),1-float(context_prob)))
|
|
|
151 |
# LM_man = cloze_prob(caption_man)
|
152 |
# LM_woman = cloze_prob(caption_woman)
|
153 |
|
154 |
+
|
155 |
|
156 |
#LM = scorer.sentence_score(caption, reduce="mean")
|
157 |
score_man = pow(float(LM_man),pow((1-float(sim_m))/(1+ float(sim_m)),1-float(context_prob)))
|