ruotianluo / ImageCaptioning.pytorch

I decide to sync up this repo and self-critical.pytorch. (The old master is in old master branch for archive)
MIT License
1.43k stars 409 forks source link

请教一下原文中的公式 #157

Closed dyoung666 closed 2 years ago

dyoung666 commented 2 years ago

罗老师,您好 我在阅读这个模型的原文时遇到了一点问题,在下面这个公式中

image

右边括号中的两项是什么意思 有点不能理解,尤其是左边那个p-θ(w丨h) 谢谢!

ruotianluo commented 2 years ago

P就是模型的输出,每个词的概率。对sample出来的那个词,最右边的括号是模型输出的概率- 1,对其余的词就是模型输出的概率。