程序员是这样解读《隐秘的角落》

{"type":"doc","content":[{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"image","attrs":{"src":"https://static001.geekbang.org/infoq/e0/e0a8db3f6e419658704864cddd23219d.png","alt":null,"title":null,"style":null,"href":null,"fromPaste":true,"pastePass":true}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"blockquote","content":[{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"前两天,我一口气看完了电视剧《隐秘的角落》,剧情相当精彩。美中不足的是,剧组为了让片子过审, 导致11集,12集的剪辑顺序被打乱,甚至台词被修改,以至于片中有几个处演员口型与台词对不上,剧情也有点让人摸不到头脑。因此我尝试"},{"type":"text","marks":[{"type":"strong"}],"text":"通过人工智能技术还原了被修改的台词"},{"type":"text","text":",从而还原了一部分原本的剧情,一个更加黑暗的真相。"}]}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"heading","attrs":{"align":null,"level":2},"content":[{"type":"text","text":"因要过审而被修改的台词"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"被修改的台词主要集中在 12 集,朱朝阳、严良两人火海逃生后在天台上的对话:"}]},{"type":"image","attrs":{"src":"https://static001.geekbang.org/infoq/77/77ca5130f0b51aab68ef64eeb1b60d13.png","alt":null,"title":null,"style":null,"href":null,"fromPaste":true,"pastePass":true}},{"type":"bulletedlist","content":[{"type":"listitem","content":[{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"严良:「告诉警察吧」"}]}]}]},{"type":"image","attrs":{"src":"https://static001.geekbang.org/infoq/10/10bb67e516df715c4d02d02a46b9b625.gif","alt":null,"title":null,"style":null,"href":null,"fromPaste":true,"pastePass":true}},{"type":"bulletedlist","content":[{"type":"listitem","content":[{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"朱朝阳:「像我爸希望的那样 」"}]}]}]},{"type":"image","attrs":{"src":"https://static001.geekbang.org/infoq/3b/3b77884c88ed4ec19e231555020c43da.gif","alt":null,"title":null,"style":null,"href":null,"fromPaste":true,"pastePass":true}},{"type":"bulletedlist","content":[{"type":"listitem","content":[{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"朱朝阳:「你想报警么」"}]}]}]},{"type":"image","attrs":{"src":"https://static001.geekbang.org/infoq/a5/a56ed544c4e94e3cf6690ed57b0fb7d6.gif","alt":null,"title":null,"style":null,"href":null,"fromPaste":true,"pastePass":true}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"这段对话其实被后期修改过了,口型和内容不吻合。至于「隐秘」剧组为什么要修改这段台词,我也是在还原了原对话之后才知道答案,"},{"type":"text","marks":[{"type":"strong"}],"text":"因为原对话实在过于黑暗了,坐实了朱朝阳的黑化,是不可能过审的。"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"那么原对话到底是什么?往下看,我用深度学习来告诉你答案。"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"heading","attrs":{"align":null,"level":2},"content":[{"type":"text","text":"用机器学习识别唇语,还原对话"}]},{"type":"blockquote","content":[{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}}]},{"type":"image","attrs":{"src":"https://static001.geekbang.org/infoq/97/97fe8f74d0fe9baf628e9d9f659ee637.png","alt":null,"title":null,"style":null,"href":null,"fromPaste":true,"pastePass":true}},{"type":"blockquote","content":[{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":">这部分主要演示用机器学习的手段识别唇语,唇语识别就是靠分析人说话时嘴唇与面部的特征来解读人说话的内容。这里我并不介绍唇语识别模型的基础架构(篇幅太长,后面有机会单独讲),而是通过以识别张朝阳唇语为例,演示一下唇语识别的一个简单流程。"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"这个案例中的模型我选使用基于 Tensorflow 的 Facemash 模型进行二次训练。Facemash 的主要作用是获取面部表情的特征。之后通过分析嘴唇的运动特征,来预测出说话内容的汉语拼音的声母和韵母。(直接通过嘴型预测汉字难度太大,所以我要"},{"type":"text","marks":[{"type":"strong"}],"text":"先预测出拼音"},{"type":"text","text":",之后再根据剧情+拼音还原出原对话)"}]},{"type":"image","attrs":{"src":"https://static001.geekbang.org/infoq/4e/4ea090f3c3c4fb057906f35f54f81be5.png","alt":null,"title":null,"style":null,"href":null,"fromPaste":true,"pastePass":true}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"第一步先通过 Facemash 拿到朱朝阳对话的面部特征,如图:"}]},{"type":"image","attrs":{"src":"https://static001.geekbang.org/infoq/14/1426d57d07392c87675b38336b3a9d50.gif","alt":null,"title":null,"style":null,"href":null,"fromPaste":true,"pastePass":true}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"这张「面膜」就是 Facemash 模型识别出来的特征点间的连接,下图是某一帧的面部识别数据:"}]},{"type":"image","attrs":{"src":"https://static001.geekbang.org/infoq/e6/e68516417b8f59e041260f80eeb17c71.png","alt":null,"title":null,"style":null,"href":null,"fromPaste":true,"pastePass":true}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"我们将一系列连续的数据展示在3D空间座标轴下的话,就是一张对话中的的脸了。"}]},{"type":"image","attrs":{"src":"https://static001.geekbang.org/infoq/9f/9fd403bf55af68fdb340bc3a2e3589c2.gif","alt":null,"title":null,"style":null,"href":null,"fromPaste":true,"pastePass":true}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"拿到嘴唇和面部特征后,就要进行预测了,这部分我直接给大家展示动态流程图:"}]},{"type":"image","attrs":{"src":"https://static001.geekbang.org/infoq/20/20da2b7ff2dd0052e85037954d0b10b7.gif","alt":null,"title":null,"style":null,"href":null,"fromPaste":true,"pastePass":true}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"利用这种方法,我还原了这句原台词汉语拼音的几种可能:"}]},{"type":"bulletedlist","content":[{"type":"listitem","content":[{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"ni "},{"type":"text","marks":[{"type":"strong"}],"text":"ba xiao ba"},{"type":"text","text":" chou me"}]}]},{"type":"listitem","content":[{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":" ni "},{"type":"text","marks":[{"type":"strong"}],"text":"ba xiang ba"},{"type":"text","text":" chou me"}]}]},{"type":"listitem","content":[{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"..."}]}]},{"type":"listitem","content":[{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"ni "},{"type":"text","marks":[{"type":"strong"}],"text":"bu xiang bao"},{"type":"text","text":" chou me"}]}]},{"type":"listitem","content":[{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"..."}]}]}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"这些拼音翻译过来是啥呢?我把每组拼音用输入法测试了一遍,发现 「ni "},{"type":"text","marks":[{"type":"strong"}],"text":"bu xiang bao"},{"type":"text","text":" chou me」这句的结果与剧情最贴切:「你不想报仇么?」"}]},{"type":"image","attrs":{"src":"https://static001.geekbang.org/infoq/8c/8cae80761dddc1098cc5cf2276abe39f.png","alt":null,"title":null,"style":null,"href":null,"fromPaste":true,"pastePass":true}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"把「你不想报仇么」带入对话,发现口型也对上了。bingo,这才是原台词呀:"}]},{"type":"image","attrs":{"src":"https://static001.geekbang.org/infoq/1d/1de0e97a743332e43ee450085b86df29.gif","alt":null,"title":null,"style":null,"href":null,"fromPaste":true,"pastePass":true}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"同样的方法,我又还原了几处原对话,如下:"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"严良:「那该怎么办」而不是「"},{"type":"text","marks":[{"type":"del"}],"text":"告诉警察吧"},{"type":"text","text":"」"}]},{"type":"image","attrs":{"src":"https://static001.geekbang.org/infoq/40/40f3cfb06368b0898790930f9d7fc112.gif","alt":null,"title":null,"style":null,"href":null,"fromPaste":true,"pastePass":true}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"朱朝阳:「除非让他被抓...」而不是「"},{"type":"text","marks":[{"type":"del"}],"text":"像我爸希望的那样"},{"type":"text","text":"」"}]},{"type":"image","attrs":{"src":"https://static001.geekbang.org/infoq/8c/8ce28d0cd00d70b25363676168dd107d.gif","alt":null,"title":null,"style":null,"href":null,"fromPaste":true,"pastePass":true}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"朱朝阳:「你不想报仇么」而不是「"},{"type":"text","marks":[{"type":"del"}],"text":"你想报警么"},{"type":"text","text":"」"}]},{"type":"image","attrs":{"src":"https://static001.geekbang.org/infoq/1d/1de0e97a743332e43ee450085b86df29.gif","alt":null,"title":null,"style":null,"href":null,"fromPaste":true,"pastePass":true}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"好了以上就是我用机器学习 + 剧情联想还原的天台对话。接下来我就要来解读剧情了,解读为什么这段对话会坐实朱朝阳的黑化,不能过审。"}]},{"type":"heading","attrs":{"align":null,"level":2},"content":[{"type":"text","text":"解读被修改的台词"}]},{"type":"blockquote","content":[{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}}]},{"type":"image","attrs":{"src":"https://static001.geekbang.org/infoq/e0/e0a8db3f6e419658704864cddd23219d.png","alt":null,"title":null,"style":null,"href":null,"fromPaste":true,"pastePass":true}},{"type":"blockquote","content":[{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"国产剧的过审有两个最重要的原则:"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"1 不能出现悬案"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"2 坏人必须被绳之以法"}]}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"知道了这个前提,我们再来审视一下被修改的台词。"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"全剧出现了三张内存卡,原卡最后给了张东升,空卡给了严良,而复制卡一直在朱朝阳手里。"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"也就是说 11 集大火之后,朱朝阳本可以将复制卡交给警察,从而将张东升绳之以法。但是这时候的朱朝阳并不敢报警,因为他并不知道普普是否将朱晶晶的真实死因告诉了严良,因此他不敢冒险。那么对于朱朝阳来说,此时此刻对于自己最有利的方案就是:"},{"type":"text","marks":[{"type":"strong"}],"text":"利用张东升的手杀死严良,然后再把复制卡交给警察,逮捕张东升。所以根据上面还原的台词,天台上的真实对话很可能是:"},{"type":"text","text":" "}]},{"type":"blockquote","content":[{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}}]},{"type":"image","attrs":{"src":"https://static001.geekbang.org/infoq/77/77ca5130f0b51aab68ef64eeb1b60d13.png","alt":null,"title":null,"style":null,"href":null,"fromPaste":true,"pastePass":true}},{"type":"blockquote","content":[{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"严良问:"},{"type":"text","marks":[{"type":"strong"}],"text":"「那该怎么办?」"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"朱朝阳应该说了一个抓捕张东升的计划,这里由于被剪辑过,不知道剧情,还原难度比较大,但我还是还原了一句话:"},{"type":"text","marks":[{"type":"strong"}],"text":"「除非让他被抓...」"},{"type":"text","text":"。根据还原的这句话,我认为"},{"type":"text","marks":[{"type":"strong"}],"text":"朱朝阳告诉严良的计划"},{"type":"text","text":"应该是这样的:"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"1.朱朝阳把张东升约到船头"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"2.张东升与严良冲突"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"3.朱朝阳立刻报警当场抓住张东升犯罪事实**"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}}]},{"type":"image","attrs":{"src":"https://static001.geekbang.org/infoq/83/83a40efd043ea1e536794eb8fa55ffcf.png","alt":null,"title":null,"style":null,"href":null,"fromPaste":true,"pastePass":true}},{"type":"blockquote","content":[{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":" 然而这时候,严良对朱朝阳没有了之前的信任,因此对这个计划有些犹豫。"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"最后朱朝阳补刀:"},{"type":"text","marks":[{"type":"strong"}],"text":"「你不想报仇么?」"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}}]},{"type":"image","attrs":{"src":"https://static001.geekbang.org/infoq/1d/1de0e97a743332e43ee450085b86df29.gif","alt":null,"title":null,"style":null,"href":null,"fromPaste":true,"pastePass":true}},{"type":"blockquote","content":[{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":">最终善良的严良为替普普报仇,还是同意了这个计划。"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"以上就是我结合剧情大致还原的对话。朱朝阳的目的是借张东升的手杀死严良,利用这个计划借刀杀人,让严良送死的。"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"而朱朝阳内心"},{"type":"text","marks":[{"type":"strong"}],"text":"真实计划"},{"type":"text","text":"我想是这样的:"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"blockquote","content":[{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}}]},{"type":"image","attrs":{"src":"https://static001.geekbang.org/infoq/16/1686b6cc1f8da8bef97da3838b6f2493.png","alt":null,"title":null,"style":null,"href":null,"fromPaste":true,"pastePass":true}},{"type":"blockquote","content":[{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"1.引导张东升与严良见面发生冲突(自己并不报警,后面警察来了之后朱朝阳的表情是震惊的,因为并不是他报警的)"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"2.如果胜利回来的是严良,那么他就会乘其不备杀死严良(朱朝阳和严良学过打架),然后嫁祸给张东升"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"3.如果胜利回来的是张东升,那么他就会跳进大海逃生(朱朝阳一直在练习憋气),然后把复制卡交给警察"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}}]},{"type":"image","attrs":{"src":"https://static001.geekbang.org/infoq/8d/8d5819c1652864fc5a7854c79b29cdf0.png","alt":null,"title":null,"style":null,"href":null,"fromPaste":true,"pastePass":true}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"分析到这里,朱朝阳的内心的阴暗已经不忍直视。可能这也正是「隐秘」剧组原本想要呈现的坏小孩,就像原著小说「坏小孩」里说的那样"},{"type":"text","marks":[{"type":"strong"}],"text":"「在成年人眼里,小孩子永远是简单的。即使小孩会撒谎,那谎言也是马上能戳穿的,他们根本想象不到小孩子的诡计多端,哪怕他们自己也曾经当过小孩。」"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"以上。"}]},{"type":"image","attrs":{"src":"https://static001.geekbang.org/infoq/e0/e0a8db3f6e419658704864cddd23219d.png","alt":null,"title":null,"style":null,"href":null,"fromPaste":true,"pastePass":true}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","marks":[{"type":"strong"}],"text":"最后送大家一个彩蛋:"},{"type":"text","text":" 12集在船上张东升对朱朝阳有一句概括性的评价,也是不能播的...,所以这句台词也被「隐秘」剧组修改了,想知道是什么吗?"},{"type":"text","marks":[{"type":"strong"}],"text":"请在「东泽聊技术」公众号回复「朝阳东升」获得彩蛋。"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}}]}
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章