😂无言!qq飞车手游秋名山山见

《TOPQ》第二期,今晚你的车标我拿定了,咱们秋名山见_绝地求生_腾讯视频自从上次“秋名山争霸赛”一别,已有些时日,少年,听说你车开的不错,今晚12点秋名山等你,愿赌服输,输的留下车标,秋名山上行人稀,常有车手较高低。如今行人依旧在,不见当年老司机,今晚不管是SUV还是MPV,不管是三轮还是四轮,不管是轿车还是跑车,秋名山走起。
奥拓:宝马,奔驰,奥迪,大众,丰田,别克,凌志,日产,标致,凯迪拉克,马自达,本田都已拿下。
比亚迪:保时捷已拿下
五菱宏光S:保时捷911拿下
吉利帝豪:宝马5系拿下
大众:奔驰已拿下
吉利美人豹:法拉利啊法拉利,你也有今天。
虎头奔:迈巴赫已拿下
脚蹬三轮:新BMW3系已经拿下,脚蹬三轮:“我刚看了你的车,我发现一样东西,你每次攻坡都很不自然,虽然你这辆车齿比很好,不过你节奏很乱,秋名山这么多上坡,你每次攻坡,就一定会喘,尤其是最后的五连发夹坡,你每次都拿不准最佳攻坡时机,除非你能克服这个问题,否则你是斗不过国产三轮的。
哈飞赛马:福特野马已拿下。
(文章来源:总李谈车)
文章关键词:
微信朋友圈
*手机号码:
*所在城市:
接收最新降价提醒
*底价将以短信的形式发送到您的手机,个人信息不会泄露给第三方
*手机号码:
*订阅信息将以短信的形式发送到您的手机,个人信息不会泄露给第三方
*手机号码:
*所在城市:
||||||||||||||||||||
||||||||||||||||
更多选车参考:
选择车系:
请选择车系
真实姓名:
手机号码:
预约时间:
店面地址:奥迪A1-2011款奥迪A1 1.4T Ego&figure&&img src=&https://pic1.zhimg.com/v2-74ddbdc473caacc2fd450_b.jpg& data-rawwidth=&600& data-rawheight=&431& class=&origin_image zh-lightbox-thumb& width=&600& data-original=&https://pic1.zhimg.com/v2-74ddbdc473caacc2fd450_r.jpg&&&/figure&&p&2017年第十五届ChinaJoy将于7月27日—7月30日在上海新国际博览中心举行。届时,各大展商将携旗下多款重量级产品与众showgirl们亮相。现在,各大展商征选Showgirl的工作也即将进入收尾阶段,大量女神汇聚,成为今夏无数人翘首以盼的渴望!
无论是清新萝莉小可爱,还是妖娆御姐大女王,美颜即正义!
下面将为大家奉上电魂、阿里、盛大、苏神等各大展商showgirl的抢鲜美照!&/p&&div class=&highlight&&&pre&&code class=&language-text&&&span&&/span&1、电魂网络
&/code&&/pre&&/div&&figure&&img src=&http://pic2.zhimg.com/v2-fa5fd14ec5a5_b.jpg& data-rawwidth=&316& data-rawheight=&450& class=&content_image& width=&316&&&/figure&&p&&br&&/p&&p&&br&&/p&&figure&&img src=&http://pic2.zhimg.com/v2-16d23a4b11ce1dbe7d30cf7cca6b7f09_b.jpg& data-rawwidth=&323& data-rawheight=&450& class=&content_image& width=&323&&&/figure&&p&&br&&/p&&p&&br&&/p&&figure&&img src=&http://pic2.zhimg.com/v2-e7b_b.jpg& data-rawwidth=&600& data-rawheight=&342& class=&origin_image zh-lightbox-thumb& width=&600& data-original=&http://pic2.zhimg.com/v2-e7b_r.jpg&&&/figure&&p&&br&&/p&&p&&br&&/p&&figure&&img src=&http://pic3.zhimg.com/v2-2b9a71c52ae6495c27eade_b.jpg& data-rawwidth=&321& data-rawheight=&450& class=&content_image& width=&321&&&/figure&&p&&br&&/p&&p&&br&&/p&&figure&&img src=&http://pic4.zhimg.com/v2-74fc9ec2f10b69e011d3854011fdce7b_b.jpg& data-rawwidth=&321& data-rawheight=&450& class=&content_image& width=&321&&&/figure&&p&&br&&/p&&p&&br&&/p&&figure&&img src=&http://pic1.zhimg.com/v2-a8a707ed40b0d73fdd8f8c63ebd03520_b.jpg& data-rawwidth=&600& data-rawheight=&341& class=&origin_image zh-lightbox-thumb& width=&600& data-original=&http://pic1.zhimg.com/v2-a8a707ed40b0d73fdd8f8c63ebd03520_r.jpg&&&/figure&&p&&br&&/p&&p&&br&&/p&&figure&&img src=&http://pic2.zhimg.com/v2-0edddde81d5f17ac4364cd1_b.jpg& data-rawwidth=&600& data-rawheight=&426& class=&origin_image zh-lightbox-thumb& width=&600& data-original=&http://pic2.zhimg.com/v2-0edddde81d5f17ac4364cd1_r.jpg&&&/figure&&p&&br&&/p&&p&&br&&/p&&div class=&highlight&&&pre&&code class=&language-text&&&span&&/span&2、盛大游戏
&/code&&/pre&&/div&&p&&br&&/p&&figure&&img src=&http://pic1.zhimg.com/v2-d2fbcbfdc96bc88_b.jpg& data-rawwidth=&349& data-rawheight=&450& class=&content_image& width=&349&&&/figure&&p&&br&&/p&&p&&br&&/p&&figure&&img src=&http://pic2.zhimg.com/v2-d61f7befaab835f1f4ecd045_b.jpg& data-rawwidth=&348& data-rawheight=&450& class=&content_image& width=&348&&&/figure&&p&&br&&/p&&p&&br&&/p&&figure&&img src=&http://pic1.zhimg.com/v2-6a0ed9a4efcc8_b.jpg& data-rawwidth=&350& data-rawheight=&450& class=&content_image& width=&350&&&/figure&&p&&br&&/p&&p&&br&&/p&&figure&&img src=&http://pic4.zhimg.com/v2-262ad56f33e4cbb13bfef_b.jpg& data-rawwidth=&344& data-rawheight=&450& class=&content_image& width=&344&&&/figure&&p&&br&&/p&&p&&br&&/p&&figure&&img src=&http://pic4.zhimg.com/v2-a0fca79840a0fde75fda333b9c4eb597_b.jpg& data-rawwidth=&350& data-rawheight=&450& class=&content_image& width=&350&&&/figure&&p&&br&&/p&&p&&br&&/p&&figure&&img src=&http://pic3.zhimg.com/v2-a9ab11468b53eff7ad1002_b.jpg& data-rawwidth=&344& data-rawheight=&450& class=&content_image& width=&344&&&/figure&&p&&br&&/p&&p&&br&&/p&&figure&&img src=&http://pic4.zhimg.com/v2-dd797a1f5be0320af64b_b.jpg& data-rawwidth=&343& data-rawheight=&450& class=&content_image& width=&343&&&/figure&&p&&br&&/p&&p&&br&&/p&&figure&&img src=&http://pic4.zhimg.com/v2-e11f51bbda548ef5dd0d50e247adfbfb_b.jpg& data-rawwidth=&584& data-rawheight=&767& class=&origin_image zh-lightbox-thumb& width=&584& data-original=&http://pic4.zhimg.com/v2-e11f51bbda548ef5dd0d50e247adfbfb_r.jpg&&&/figure&&p&&br&&/p&&p&&br&&/p&&figure&&img src=&http://pic4.zhimg.com/v2-9eb25df57afeec6d43e2c5bfe4ec6adb_b.jpg& data-rawwidth=&345& data-rawheight=&450& class=&content_image& width=&345&&&/figure&&p&&br&&/p&&p&&br&&/p&&figure&&img src=&http://pic3.zhimg.com/v2-d760e6a95a7f9fabcae44e_b.jpg& data-rawwidth=&349& data-rawheight=&450& class=&content_image& width=&349&&&/figure&&p&&br&&/p&&p&&br&&/p&&figure&&img src=&http://pic4.zhimg.com/v2-b4ed67aa411fe4153f9b_b.jpg& data-rawwidth=&344& data-rawheight=&450& class=&content_image& width=&344&&&/figure&&p&&br&&/p&&p&&br&&/p&&figure&&img src=&http://pic4.zhimg.com/v2-e1aa3ed56ae1e6dcf2ae07cd461f3a6b_b.jpg& data-rawwidth=&344& data-rawheight=&450& class=&content_image& width=&344&&&/figure&&p&&br&&/p&&p&&br&&/p&&figure&&img src=&http://pic3.zhimg.com/v2-ee21bd3278e_b.jpg& data-rawwidth=&344& data-rawheight=&450& class=&content_image& width=&344&&&/figure&&p&&br&&/p&&p&&br&&/p&&figure&&img src=&http://pic3.zhimg.com/v2-34b6fe111bce3f27c103e51aaa9c109e_b.jpg& data-rawwidth=&345& data-rawheight=&450& class=&content_image& width=&345&&&/figure&&p&&br&&/p&&p&&br&&/p&&figure&&img src=&http://pic2.zhimg.com/v2-bb42fc9e63ea88fd7b347d_b.jpg& data-rawwidth=&342& data-rawheight=&450& class=&content_image& width=&342&&&/figure&&p&&br&&/p&&p&&br&&/p&&figure&&img src=&http://pic3.zhimg.com/v2-73b7f5ad2e4bddcdfe52_b.jpg& data-rawwidth=&344& data-rawheight=&450& class=&content_image& width=&344&&&/figure&&p&&br&&/p&&p&&br&&/p&&div class=&highlight&&&pre&&code class=&language-text&&&span&&/span&3、祖龙娱乐
&/code&&/pre&&/div&&figure&&img src=&http://pic1.zhimg.com/v2-4fd61cc18b5e8_b.jpg& data-rawwidth=&388& data-rawheight=&450& class=&content_image& width=&388&&&/figure&&p&&br&&/p&&p&&br&&/p&&figure&&img src=&http://pic3.zhimg.com/v2-ecce68d66b9fc7df3a04f6_b.jpg& data-rawwidth=&343& data-rawheight=&450& class=&content_image& width=&343&&&/figure&&p&&br&&/p&&p&&br&&/p&&figure&&img src=&http://pic4.zhimg.com/v2-3dd175b303cfa752c4cdf_b.jpg& data-rawwidth=&600& data-rawheight=&450& class=&origin_image zh-lightbox-thumb& width=&600& data-original=&http://pic4.zhimg.com/v2-3dd175b303cfa752c4cdf_r.jpg&&&/figure&&p&&br&&/p&&p&&br&&/p&&figure&&img src=&http://pic1.zhimg.com/v2-d9d4e057e074c8732818_b.jpg& data-rawwidth=&600& data-rawheight=&450& class=&origin_image zh-lightbox-thumb& width=&600& data-original=&http://pic1.zhimg.com/v2-d9d4e057e074c8732818_r.jpg&&&/figure&&p&&br&&/p&&p&&br&&/p&&div class=&highlight&&&pre&&code class=&language-text&&&span&&/span&4、阿里游戏
&/code&&/pre&&/div&&p&&br&&/p&&figure&&img src=&http://pic1.zhimg.com/v2-70c1e077e42cb43a8780_b.jpg& data-rawwidth=&337& data-rawheight=&450& class=&content_image& width=&337&&&/figure&&p&&br&&/p&&p&&br&&/p&&figure&&img src=&http://pic3.zhimg.com/v2-f0a8c23fca_b.jpg& data-rawwidth=&600& data-rawheight=&450& class=&origin_image zh-lightbox-thumb& width=&600& data-original=&http://pic3.zhimg.com/v2-f0a8c23fca_r.jpg&&&/figure&&p&&br&&/p&&p&&br&&/p&&figure&&img src=&http://pic1.zhimg.com/v2-26c8b7cbaf0373ff6dafcbebaf794a5c_b.jpg& data-rawwidth=&257& data-rawheight=&450& class=&content_image& width=&257&&&/figure&&p&&br&&/p&&p&&br&&/p&&figure&&img src=&http://pic4.zhimg.com/v2-4e5d57bdf289da6dae79d2b12573ef53_b.jpg& data-rawwidth=&340& data-rawheight=&450& class=&content_image& width=&340&&&/figure&&p&&br&&/p&&p&&br&&/p&&figure&&img src=&http://pic2.zhimg.com/v2-b81caebd87389_b.jpg& data-rawwidth=&338& data-rawheight=&450& class=&content_image& width=&338&&&/figure&&p&&br&&/p&&p&&br&&/p&&figure&&img src=&http://pic2.zhimg.com/v2-bbea4aa6a0dcabd0c5395_b.jpg& data-rawwidth=&600& data-rawheight=&450& class=&origin_image zh-lightbox-thumb& width=&600& data-original=&http://pic2.zhimg.com/v2-bbea4aa6a0dcabd0c5395_r.jpg&&&/figure&&p&&br&&/p&&p&&br&&/p&&figure&&img src=&http://pic2.zhimg.com/v2-d92c92d054e4eae369ecca9_b.jpg& data-rawwidth=&374& data-rawheight=&450& class=&content_image& width=&374&&&/figure&&p&&br&&/p&&p&&br&&/p&&figure&&img src=&http://pic2.zhimg.com/v2-22d26c4c2f60faa7e62e747a9f598bd9_b.jpg& data-rawwidth=&282& data-rawheight=&450& class=&content_image& width=&282&&&/figure&&p&&br&&/p&&p&&br&&/p&&figure&&img src=&http://pic1.zhimg.com/v2-51abef34015d51adf1220_b.jpg& data-rawwidth=&277& data-rawheight=&450& class=&content_image& width=&277&&&/figure&&p&&br&&/p&&p&&br&&/p&&figure&&img src=&http://pic4.zhimg.com/v2-b1ab107b98c1ad20a537_b.jpg& data-rawwidth=&369& data-rawheight=&450& class=&content_image& width=&369&&&/figure&&p&&br&&/p&&p&&br&&/p&&figure&&img src=&http://pic1.zhimg.com/v2-d0cebdae970780_b.jpg& data-rawwidth=&344& data-rawheight=&450& class=&content_image& width=&344&&&/figure&&p&&br&&/p&&p&&br&&/p&&figure&&img src=&http://pic4.zhimg.com/v2-cbb2ea0db0de3f268f1d3_b.jpg& data-rawwidth=&280& data-rawheight=&450& class=&content_image& width=&280&&&/figure&&p&&br&&/p&&p&&br&&/p&&figure&&img src=&http://pic1.zhimg.com/v2-bbba98f04738b8eba336a35daa8d3a2c_b.jpg& data-rawwidth=&373& data-rawheight=&450& class=&content_image& width=&373&&&/figure&&p&&br&&/p&&p&&br&&/p&&figure&&img src=&http://pic2.zhimg.com/v2-dae78d4553f9_b.jpg& data-rawwidth=&291& data-rawheight=&450& class=&content_image& width=&291&&&/figure&&p&&br&&/p&&p&&br&&/p&&div class=&highlight&&&pre&&code class=&language-text&&&span&&/span&5、苏神科技
&/code&&/pre&&/div&&p&&br&&/p&&figure&&img src=&http://pic3.zhimg.com/v2-794b363c3dcafe124966_b.jpg& data-rawwidth=&600& data-rawheight=&400& class=&origin_image zh-lightbox-thumb& width=&600& data-original=&http://pic3.zhimg.com/v2-794b363c3dcafe124966_r.jpg&&&/figure&&p&&br&&/p&&p&&br&&/p&&figure&&img src=&http://pic4.zhimg.com/v2-efdfd5ba502e507fa1c587ad0fb55abf_b.jpg& data-rawwidth=&300& data-rawheight=&450& class=&content_image& width=&300&&&/figure&&p&&br&&/p&&p&&br&&/p&&figure&&img src=&http://pic4.zhimg.com/v2-ddd01e9f_b.jpg& data-rawwidth=&300& data-rawheight=&450& class=&content_image& width=&300&&&/figure&&p&&br&&/p&&p&&br&&/p&&figure&&img src=&http://pic4.zhimg.com/v2-753fe811ddbfd4fc2737a3_b.jpg& data-rawwidth=&300& data-rawheight=&450& class=&content_image& width=&300&&&/figure&&p&&br&&/p&&p&&br&&/p&&figure&&img src=&http://pic3.zhimg.com/v2-7a7bfe104b6bce84f28d98a_b.jpg& data-rawwidth=&300& data-rawheight=&450& class=&content_image& width=&300&&&/figure&&p&&br&&/p&&p&&br&&/p&&figure&&img src=&http://pic1.zhimg.com/v2-fbc6d5be31e7a97f04630_b.jpg& data-rawwidth=&300& data-rawheight=&450& class=&content_image& width=&300&&&/figure&&p&&br&&/p&&p&&br&&/p&&figure&&img src=&http://pic3.zhimg.com/v2-8dc07c0ffa7cfd2f279a_b.jpg& data-rawwidth=&300& data-rawheight=&450& class=&content_image& width=&300&&&/figure&&p&&br&&/p&&p&&br&&/p&&p&&br&&/p&&figure&&img src=&http://pic3.zhimg.com/v2-8dc07c0ffa7cfd2f279a_b.jpg& data-rawwidth=&300& data-rawheight=&450& class=&content_image& width=&300&&&/figure&&p&&br&&/p&&p&&br&&/p&&div class=&highlight&&&pre&&code class=&language-text&&&span&&/span&6、三七互娱
&/code&&/pre&&/div&&figure&&img src=&http://pic1.zhimg.com/v2-0bfd8fdbe1feb0ec050e4_b.jpg& data-rawwidth=&600& data-rawheight=&400& class=&origin_image zh-lightbox-thumb& width=&600& data-original=&http://pic1.zhimg.com/v2-0bfd8fdbe1feb0ec050e4_r.jpg&&&/figure&&p&&br&&/p&&p&&br&&/p&&figure&&img src=&http://pic2.zhimg.com/v2-19d25cef3fd6_b.jpg& data-rawwidth=&290& data-rawheight=&450& class=&content_image& width=&290&&&/figure&&p&&br&&/p&&p&&br&&/p&&figure&&img src=&http://pic2.zhimg.com/v2-e56f33b1_b.jpg& data-rawwidth=&284& data-rawheight=&450& class=&content_image& width=&284&&&/figure&&p&&br&&/p&&p&&br&&/p&&figure&&img src=&http://pic3.zhimg.com/v2-cdbad5f87dbe3af991df538fcbaad8ee_b.jpg& data-rawwidth=&298& data-rawheight=&450& class=&content_image& width=&298&&&/figure&&p&&br&&/p&&p&&br&&/p&&figure&&img src=&http://pic3.zhimg.com/v2-369cf0bacff3fe6dab536_b.jpg& data-rawwidth=&338& data-rawheight=&450& class=&content_image& width=&338&&&/figure&&p&&br&&/p&&p&&br&&/p&&figure&&img src=&http://pic3.zhimg.com/v2-905e8d9bc5b4aa5cbc8e_b.jpg& data-rawwidth=&300& data-rawheight=&450& class=&content_image& width=&300&&&/figure&&p&&br&&/p&&p&&br&&/p&&div class=&highlight&&&pre&&code class=&language-text&&&span&&/span&7、多益网络
&/code&&/pre&&/div&&p&&br&&/p&&figure&&img src=&http://pic3.zhimg.com/v2-9b2d3dac2ca0b89da67262_b.jpg& data-rawwidth=&600& data-rawheight=&373& class=&origin_image zh-lightbox-thumb& width=&600& data-original=&http://pic3.zhimg.com/v2-9b2d3dac2ca0b89da67262_r.jpg&&&/figure&&p&&br&&/p&&p&&br&&/p&&figure&&img src=&http://pic3.zhimg.com/v2-3e2739383febbf1c630b631b195ac776_b.jpg& data-rawwidth=&402& data-rawheight=&450& class=&content_image& width=&402&&&/figure&&p&&br&&/p&&p&&br&&/p&&figure&&img src=&http://pic3.zhimg.com/v2-a2a5ba4c6_b.jpg& data-rawwidth=&450& data-rawheight=&450& class=&origin_image zh-lightbox-thumb& width=&450& data-original=&http://pic3.zhimg.com/v2-a2a5ba4c6_r.jpg&&&/figure&&p&&br&&/p&&p&&br&&/p&&figure&&img src=&http://pic4.zhimg.com/v2-d3063cfdcccae7_b.jpg& data-rawwidth=&419& data-rawheight=&450& class=&content_image& width=&419&&&/figure&&p&&br&&/p&&p&&br&&/p&&figure&&img src=&http://pic4.zhimg.com/v2-228bbe7ba120d95bb77df252ac30e867_b.jpg& data-rawwidth=&400& data-rawheight=&450& class=&content_image& width=&400&&&/figure&&p&&br&&/p&&p&&br&&/p&&figure&&img src=&http://pic3.zhimg.com/v2-c4aae1ea09ea_b.jpg& data-rawwidth=&379& data-rawheight=&450& class=&content_image& width=&379&&&/figure&&p&&br&&/p&&p&&br&&/p&&figure&&img src=&http://pic4.zhimg.com/v2-d9b7dd12ff8a2e708d4aad37_b.jpg& data-rawwidth=&335& data-rawheight=&450& class=&content_image& width=&335&&&/figure&&p&&br&&/p&&p&&br&&/p&&figure&&img src=&http://pic1.zhimg.com/v2-1fc6e2de7fd6f7ab3730980c_b.jpg& data-rawwidth=&333& data-rawheight=&450& class=&content_image& width=&333&&&/figure&&p&&br&&/p&&p&&br&&/p&&figure&&img src=&http://pic4.zhimg.com/v2-4fca0cd80510ecd4a967_b.jpg& data-rawwidth=&334& data-rawheight=&450& class=&content_image& width=&334&&&/figure&&p&&br&&/p&&p&&br&&/p&&figure&&img src=&http://pic1.zhimg.com/v2-34c5d1d37dcfe83a0f7c_b.jpg& data-rawwidth=&600& data-rawheight=&272& class=&origin_image zh-lightbox-thumb& width=&600& data-original=&http://pic1.zhimg.com/v2-34c5d1d37dcfe83a0f7c_r.jpg&&&/figure&&p&&br&&/p&&p&&br&&/p&&figure&&img src=&http://pic3.zhimg.com/v2-1de3494ebb26a29f10bcfe76_b.jpg& data-rawwidth=&600& data-rawheight=&450& class=&origin_image zh-lightbox-thumb& width=&600& data-original=&http://pic3.zhimg.com/v2-1de3494ebb26a29f10bcfe76_r.jpg&&&/figure&&p&&br&&/p&&p&&br&&/p&&figure&&img src=&http://pic4.zhimg.com/v2-d6cbe5b940771abd3498cf_b.jpg& data-rawwidth=&600& data-rawheight=&413& class=&origin_image zh-lightbox-thumb& width=&600& data-original=&http://pic4.zhimg.com/v2-d6cbe5b940771abd3498cf_r.jpg&&&/figure&&p&&br&&/p&&p&&br&&/p&&figure&&img src=&http://pic1.zhimg.com/v2-2bbb6a490d63b8d7fbb34fe_b.jpg& data-rawwidth=&398& data-rawheight=&450& class=&content_image& width=&398&&&/figure&&p&&br&&/p&&p&&br&&/p&&figure&&img src=&http://pic1.zhimg.com/v2-3f905c4bcae4fbafe695000_b.jpg& data-rawwidth=&400& data-rawheight=&450& class=&content_image& width=&400&&&/figure&&p&&br&&/p&&p&&br&&/p&&figure&&img src=&http://pic3.zhimg.com/v2-14ebbfb826bbbd2ca1678c1e_b.jpg& data-rawwidth=&401& data-rawheight=&450& class=&content_image& width=&401&&&/figure&&p&&br&&/p&&p&&br&&/p&&figure&&img src=&http://pic1.zhimg.com/v2-55ad16d9fe45f6604489cbed64fe4b5c_b.jpg& data-rawwidth=&400& data-rawheight=&450& class=&content_image& width=&400&&&/figure&&p&&br&&/p&&p&&br&&/p&&div class=&highlight&&&pre&&code class=&language-text&&&span&&/span&8、西山居
&/code&&/pre&&/div&&figure&&img src=&http://pic4.zhimg.com/v2-da06c071ebf_b.jpg& data-rawwidth=&300& data-rawheight=&450& class=&content_image& width=&300&&&/figure&&p&&br&&/p&&p&&br&&/p&&figure&&img src=&http://pic4.zhimg.com/v2-a09c585f2e0d782b0cc5d7_b.jpg& data-rawwidth=&303& data-rawheight=&450& class=&content_image& width=&303&&&/figure&&p&&br&&/p&&p&&br&&/p&&figure&&img src=&http://pic4.zhimg.com/v2-badb8eff8ebb_b.jpg& data-rawwidth=&324& data-rawheight=&450& class=&content_image& width=&324&&&/figure&&p&&br&&/p&&p&&br&&/p&&figure&&img src=&http://pic3.zhimg.com/v2-1fb275a5ac01a9a2a744ee_b.jpg& data-rawwidth=&311& data-rawheight=&450& class=&content_image& width=&311&&&/figure&&p&&br&&/p&&p&&br&&/p&&figure&&img src=&http://pic4.zhimg.com/v2-a65e66ecf6fbd7ae97ecbf_b.jpg& data-rawwidth=&299& data-rawheight=&450& class=&content_image& width=&299&&&/figure&&p&&br&&/p&&p&&br&&/p&&figure&&img src=&http://pic3.zhimg.com/v2-b6d2ecdae881ae76a6dffe_b.jpg& data-rawwidth=&300& data-rawheight=&450& class=&content_image& width=&300&&&/figure&&p&&br&&/p&&p&&br&&/p&&figure&&img src=&http://pic3.zhimg.com/v2-ebcda0ebfe_b.jpg& data-rawwidth=&323& data-rawheight=&450& class=&content_image& width=&323&&&/figure&&p&&br&&/p&&p&&br&&/p&&figure&&img src=&http://pic1.zhimg.com/v2-c_b.jpg& data-rawwidth=&329& data-rawheight=&450& class=&content_image& width=&329&&&/figure&&p&&br&&/p&&p&&br&&/p&&figure&&img src=&http://pic4.zhimg.com/v2-fad062ab1da7_b.jpg& data-rawwidth=&310& data-rawheight=&450& class=&content_image& width=&310&&&/figure&&p&&br&&/p&&p&&br&&/p&&figure&&img src=&http://pic1.zhimg.com/v2-0b8bab140ac35bb2cb39bcc2f5125e98_b.jpg& data-rawwidth=&321& data-rawheight=&450& class=&content_image& width=&321&&&/figure&&p&&br&&/p&&p&&br&&/p&&div class=&highlight&&&pre&&code class=&language-text&&&span&&/span&9、玩友时代
&/code&&/pre&&/div&&p&&br&&/p&&figure&&img src=&http://pic3.zhimg.com/v2-62de0f2a2e_b.jpg& data-rawwidth=&600& data-rawheight=&341& class=&origin_image zh-lightbox-thumb& width=&600& data-original=&http://pic3.zhimg.com/v2-62de0f2a2e_r.jpg&&&/figure&&p&&br&&/p&&p&&br&&/p&&figure&&img src=&http://pic1.zhimg.com/v2-01afb8e9a44ee46d0148_b.jpg& data-rawwidth=&403& data-rawheight=&450& class=&content_image& width=&403&&&/figure&&p&&br&&/p&&p&&br&&/p&&figure&&img src=&http://pic1.zhimg.com/v2-bfbe91d137d863f187b1ba_b.jpg& data-rawwidth=&335& data-rawheight=&450& class=&content_image& width=&335&&&/figure&&p&&br&&/p&&p&&br&&/p&&figure&&img src=&http://pic3.zhimg.com/v2-233f1b42baacd3b7167fc6_b.jpg& data-rawwidth=&350& data-rawheight=&450& class=&content_image& width=&350&&&/figure&&p&&br&&/p&&p&&br&&/p&&figure&&img src=&http://pic3.zhimg.com/v2-fb73c7cfa_b.jpg& data-rawwidth=&338& data-rawheight=&450& class=&content_image& width=&338&&&/figure&&p&&br&&/p&&p&&br&&/p&&figure&&img src=&http://pic2.zhimg.com/v2-84f47a5f9_b.jpg& data-rawwidth=&332& data-rawheight=&450& class=&content_image& width=&332&&&/figure&&p&&br&&/p&&p&&br&&/p&&figure&&img src=&http://pic3.zhimg.com/v2-cc4bca406ec3835fa1da_b.jpg& data-rawwidth=&336& data-rawheight=&450& class=&content_image& width=&336&&&/figure&&p&&br&&/p&&p&&br&&/p&&figure&&img src=&http://pic3.zhimg.com/v2-f301dbffc530ce_b.jpg& data-rawwidth=&360& data-rawheight=&450& class=&content_image& width=&360&&&/figure&&p&&br&&/p&&p&&br&&/p&&figure&&img src=&http://pic3.zhimg.com/v2-5a8b0c08b9cc39723e32_b.jpg& data-rawwidth=&337& data-rawheight=&450& class=&content_image& width=&337&&&/figure&&p&&br&&/p&&p&&br&&/p&&figure&&img src=&http://pic4.zhimg.com/v2-a95dc5c62fdc119a6b8df_b.jpg& data-rawwidth=&340& data-rawheight=&450& class=&content_image& width=&340&&&/figure&&p&&br&&/p&&p&&br&&/p&&figure&&img src=&http://pic2.zhimg.com/v2-84f47a5f9_b.jpg& data-rawwidth=&332& data-rawheight=&450& class=&content_image& width=&332&&&/figure&&p&&br&&/p&&p&&br&&/p&&figure&&img src=&http://pic1.zhimg.com/v2-db5cfa16b01c_b.jpg& data-rawwidth=&337& data-rawheight=&450& class=&content_image& width=&337&&&/figure&&p&&br&&/p&&p&&br&&/p&&figure&&img src=&http://pic4.zhimg.com/v2-25a408d25d2be0f8f5e74c20eb075873_b.jpg& data-rawwidth=&600& data-rawheight=&399& class=&origin_image zh-lightbox-thumb& width=&600& data-original=&http://pic4.zhimg.com/v2-25a408d25d2be0f8f5e74c20eb075873_r.jpg&&&/figure&&p&&br&&/p&&p&&br&&/p&&figure&&img src=&http://pic2.zhimg.com/v2-323e8eabd3ca6f54c0d5ea94f5915aa1_b.jpg& data-rawwidth=&600& data-rawheight=&399& class=&origin_image zh-lightbox-thumb& width=&600& data-original=&http://pic2.zhimg.com/v2-323e8eabd3ca6f54c0d5ea94f5915aa1_r.jpg&&&/figure&&p&&br&&/p&&p&&br&&/p&&figure&&img src=&http://pic1.zhimg.com/v2-014fc464e7cc9d_b.jpg& data-rawwidth=&600& data-rawheight=&400& class=&origin_image zh-lightbox-thumb& width=&600& data-original=&http://pic1.zhimg.com/v2-014fc464e7cc9d_r.jpg&&&/figure&&p&&br&&/p&&p&&br&&/p&&div class=&highlight&&&pre&&code class=&language-text&&&span&&/span&10、世纪天成
&/code&&/pre&&/div&&figure&&img src=&http://pic2.zhimg.com/v2-d75f72ec64f5646e3faba40f14e83c45_b.jpg& data-rawwidth=&343& data-rawheight=&450& class=&content_image& width=&343&&&/figure&&p&&br&&/p&&p&&br&&/p&&figure&&img src=&http://pic2.zhimg.com/v2-37ea6dd8fa04ba14e337ebd_b.jpg& data-rawwidth=&370& data-rawheight=&450& class=&content_image& width=&370&&&/figure&&p&&br&&/p&&p&&br&&/p&&figure&&img src=&http://pic4.zhimg.com/v2-0d7bce029abbba2eec40e9fff4d8f95b_b.jpg& data-rawwidth=&329& data-rawheight=&450& class=&content_image& width=&329&&&/figure&&p&&br&&/p&&p&&br&&/p&&figure&&img src=&http://pic4.zhimg.com/v2-7aeb81f72a0a26215b03_b.jpg& data-rawwidth=&327& data-rawheight=&450& class=&content_image& width=&327&&&/figure&&p&&br&&/p&&p&&br&&/p&&div class=&highlight&&&pre&&code class=&language-text&&&span&&/span&11、蜗牛游戏
&/code&&/pre&&/div&&p&&br&&/p&&figure&&img src=&http://pic2.zhimg.com/v2-15ed5dbecd00b5a5141d_b.jpg& data-rawwidth=&600& data-rawheight=&400& class=&origin_image zh-lightbox-thumb& width=&600& data-original=&http://pic2.zhimg.com/v2-15ed5dbecd00b5a5141d_r.jpg&&&/figure&&p&&br&&/p&&p&&br&&/p&&figure&&img src=&http://pic4.zhimg.com/v2-f8f770f29b2c6e1fbc7f_b.jpg& data-rawwidth=&600& data-rawheight=&400& class=&origin_image zh-lightbox-thumb& width=&600& data-original=&http://pic4.zhimg.com/v2-f8f770f29b2c6e1fbc7f_r.jpg&&&/figure&&p&&br&&/p&&p&&br&&/p&&figure&&img src=&http://pic2.zhimg.com/v2-2f547f7db848f1c0ecfc7d89_b.jpg& data-rawwidth=&600& data-rawheight=&400& class=&origin_image zh-lightbox-thumb& width=&600& data-original=&http://pic2.zhimg.com/v2-2f547f7db848f1c0ecfc7d89_r.jpg&&&/figure&&p&&br&&/p&&p&&br&&/p&&figure&&img src=&http://pic2.zhimg.com/v2-fcc6cf806d9_b.jpg& data-rawwidth=&600& data-rawheight=&400& class=&origin_image zh-lightbox-thumb& width=&600& data-original=&http://pic2.zhimg.com/v2-fcc6cf806d9_r.jpg&&&/figure&&p&&br&&/p&&p&&br&&/p&&figure&&img src=&http://pic4.zhimg.com/v2-5555ded62ff7ee1afc26bf1cdc8a20f3_b.jpg& data-rawwidth=&600& data-rawheight=&400& class=&origin_image zh-lightbox-thumb& width=&600& data-original=&http://pic4.zhimg.com/v2-5555ded62ff7ee1afc26bf1cdc8a20f3_r.jpg&&&/figure&&p&&br&&/p&&p&&br&&/p&&figure&&img src=&http://pic3.zhimg.com/v2-390c0bf7afece_b.jpg& data-rawwidth=&600& data-rawheight=&400& class=&origin_image zh-lightbox-thumb& width=&600& data-original=&http://pic3.zhimg.com/v2-390c0bf7afece_r.jpg&&&/figure&&p&&br&&/p&&p&&br&&/p&&figure&&img src=&http://pic3.zhimg.com/v2-e8bb7bec21c853c5bb04a_b.jpg& data-rawwidth=&600& data-rawheight=&400& class=&origin_image zh-lightbox-thumb& width=&600& data-original=&http://pic3.zhimg.com/v2-e8bb7bec21c853c5bb04a_r.jpg&&&/figure&&p&&br&&/p&&p&&br&&/p&&div class=&highlight&&&pre&&code class=&language-text&&&span&&/span&12、东芝
&/code&&/pre&&/div&&p&&br&&/p&&figure&&img src=&http://pic3.zhimg.com/v2-8afd1a25b230d302239cdc77ef4bb72e_b.jpg& data-rawwidth=&310& data-rawheight=&450& class=&content_image& width=&310&&&/figure&&p&&br&&/p&&p&&br&&/p&&figure&&img src=&http://pic2.zhimg.com/v2-5d6f5fd039aedd1a02fdb29_b.jpg& data-rawwidth=&269& data-rawheight=&450& class=&content_image& width=&269&&&/figure&&p&&br&&/p&&p&&br&&/p&&figure&&img src=&http://pic4.zhimg.com/v2-83cf3d0084e3ddcdab7abd4c5cab00a7_b.jpg& data-rawwidth=&437& data-rawheight=&450& class=&origin_image zh-lightbox-thumb& width=&437& data-original=&http://pic4.zhimg.com/v2-83cf3d0084e3ddcdab7abd4c5cab00a7_r.jpg&&&/figure&&p&&br&&/p&&p&&br&&/p&&figure&&img src=&http://pic2.zhimg.com/v2-07eee2cbc574ae1d7a85aaae7b3db759_b.jpg& data-rawwidth=&308& data-rawheight=&450& class=&content_image& width=&308&&&/figure&&p&&br&&/p&&p&————————————————————————————————————&/p&&p&本文首发于&a href=&https://www.zhihu.com/people/afba6d8c3ba6b01203ece84& class=&internal&&@任玩堂&/a&。恳请大家关注我们的&a href=&https://zhuanlan.zhihu.com/appgame& class=&internal&&知乎专栏&/a&。&/p&&p&下面是我堂近期发布的其他精彩内容:&/p&&p&&a href=&https://zhuanlan.zhihu.com/p/?group_id=860224& class=&internal&&22年前的VR——任天堂8次最严重的商业错误&/a&&/p&&p&&a href=&https://zhuanlan.zhihu.com/p/& class=&internal&&无论你在厕所里舔过什么…… - 知乎专栏&/a&&/p&&p&&a href=&https://zhuanlan.zhihu.com/p/& class=&internal&&宝可梦的黑历史:小次郎的隆胸之路&/a&&/p&&p&&a href=&https://zhuanlan.zhihu.com/p/& class=&internal&&研究表明:女玩家也爱杀人,只是不喜欢用枪&/a&&/p&&p&————————————————————————————————————&/p&&p&搜索:任玩堂或appgamecom,关注我们的微信公众号,每天都有机会赢取精美周边!&/p&&p&同时欢迎您去我们的官方微博转转:&a href=&http://link.zhihu.com/?target=http%3A//weibo.com/rwtgame& class=& wrap external& target=&_blank& rel=&nofollow noreferrer&&Sina Visitor System&/a&&/p&&figure&&img src=&http://pic3.zhimg.com/v2-da56a9c9fab79c744ca8974d7dfebeee_b.jpg& data-rawwidth=&600& data-rawheight=&600& class=&origin_image zh-lightbox-thumb& width=&600& data-original=&http://pic3.zhimg.com/v2-da56a9c9fab79c744ca8974d7dfebeee_r.jpg&&&/figure&&p&&br&&/p&&p&我堂新到《大圣归来》《梦间集》《战舰联盟》《弹弹堂》等游戏独家礼包,《极品飞车OL》激活码第二批也已经到货,大家可前往我们的微信公众号领取~&/p&
2017年第十五届ChinaJoy将于7月27日—7月30日在上海新国际博览中心举行。届时,各大展商将携旗下多款重量级产品与众showgirl们亮相。现在,各大展商征选Showgirl的工作也即将进入收尾阶段,大量女神汇聚,成为今夏无数人翘首以盼的渴望!
无论是清新萝莉小…
小兄弟刚给我传了一个东西,坡恩哈伯上面的。&br&一段国内直播平台的视频,就是知乎上很不屑最三俗的那种,一个很漂亮的女孩儿大概有8分吧(身材7.5)居然直播和人ML,骑在一个男人身上边做边和观众互动。&br&&br&这种三俗的视频当然要大力批判一番啊,女孩儿确实很漂亮,而且不是那种网红脸,裸妆很精致看起来很清纯,这种脸蛋又要摆出各种诱惑态,杀伤力太可怕了。中间有好多观众问那个男的是她男朋友吗?本来一副挑逗脸的她瞬间落寞了很多,淡淡的答道:“当然不是啊,但凡有男朋友,谁还做这个?”&br&&br&大半夜的看的我浑身一紧好心酸,再也没有批判下去的动力了。
小兄弟刚给我传了一个东西,坡恩哈伯上面的。 一段国内直播平台的视频,就是知乎上很不屑最三俗的那种,一个很漂亮的女孩儿大概有8分吧(身材7.5)居然直播和人ML,骑在一个男人身上边做边和观众互动。 这种三俗的视频当然要大力批判一番啊,女孩儿确实很漂…
&figure&&img src=&https://pic3.zhimg.com/v2-da6e908fbff06e8e14c60d86d776d225_b.jpg& data-rawwidth=&768& data-rawheight=&576& class=&origin_image zh-lightbox-thumb& width=&768& data-original=&https://pic3.zhimg.com/v2-da6e908fbff06e8e14c60d86d776d225_r.jpg&&&/figure&&p&&/p&&figure&&img src=&https://pic1.zhimg.com/v2-abd42bbb61ee_b.jpg& data-caption=&& data-size=&normal& data-rawwidth=&558& data-rawheight=&315& class=&origin_image zh-lightbox-thumb& width=&558& data-original=&https://pic1.zhimg.com/v2-abd42bbb61ee_r.jpg&&&/figure&&p&作为一名久经片场的老司机,早就想写一些探讨驾驶技术的文章。这篇就介绍利用生成式对抗网络(GAN)的两个基本驾驶技能:&br&&/p&&p&1) 去除(爱情)动作片中的马赛克&/p&&p&2) 给(爱情)动作片中的女孩穿(tuo)衣服&/p&&p&&br&&/p&&h2&生成式模型&/h2&&p&上一篇《&a href=&https://zhuanlan.zhihu.com/p/& class=&internal&&用GAN生成二维样本的小例子&/a&》中已经简单介绍了GAN,这篇再简要回顾一下生成式模型,算是补全一个来龙去脉。&/p&&p&生成模型就是能够产生指定分布数据的模型,常见的生成式模型一般都会有一个用于产生样本的简单分布。例如一个均匀分布,根据要生成分布的概率密度函数,进行建模,让均匀分布中的样本经过变换得到指定分布的样本,这就可以算是最简单的生成式模型。比如下面例子:&/p&&figure&&img src=&https://pic1.zhimg.com/v2-d11b5fb26d3cc8e942f841bafe010cd8_b.jpg& data-caption=&& data-size=&normal& data-rawwidth=&1021& data-rawheight=&443& class=&origin_image zh-lightbox-thumb& width=&1021& data-original=&https://pic1.zhimg.com/v2-d11b5fb26d3cc8e942f841bafe010cd8_r.jpg&&&/figure&&p&图中左边是一个自定义的概率密度函数,右边是相应的1w个样本的直方图,自定义分布和生成这些样本的代码如下:&br&&/p&&div class=&highlight&&&pre&&code class=&language-python&&&span&&/span&&span class=&kn&&from&/span& &span class=&nn&&functools&/span& &span class=&kn&&import&/span& &span class=&n&&partial&/span&
&span class=&kn&&import&/span& &span class=&nn&&numpy&/span&
&span class=&kn&&from&/span& &span class=&nn&&matplotlib&/span& &span class=&kn&&import&/span& &span class=&n&&pyplot&/span&
&span class=&c1&&# Define a PDF&/span&
&span class=&n&&x_samples&/span& &span class=&o&&=&/span& &span class=&n&&numpy&/span&&span class=&o&&.&/span&&span class=&n&&arange&/span&&span class=&p&&(&/span&&span class=&o&&-&/span&&span class=&mi&&3&/span&&span class=&p&&,&/span& &span class=&mf&&3.01&/span&&span class=&p&&,&/span& &span class=&mf&&0.01&/span&&span class=&p&&)&/span&
&span class=&n&&PDF&/span& &span class=&o&&=&/span& &span class=&n&&numpy&/span&&span class=&o&&.&/span&&span class=&n&&empty&/span&&span class=&p&&(&/span&&span class=&n&&x_samples&/span&&span class=&o&&.&/span&&span class=&n&&shape&/span&&span class=&p&&)&/span&
&span class=&n&&PDF&/span&&span class=&p&&[&/span&&span class=&n&&x_samples&/span& &span class=&o&&&&/span& &span class=&mi&&0&/span&&span class=&p&&]&/span& &span class=&o&&=&/span& &span class=&n&&numpy&/span&&span class=&o&&.&/span&&span class=&n&&round&/span&&span class=&p&&(&/span&&span class=&n&&x_samples&/span&&span class=&p&&[&/span&&span class=&n&&x_samples&/span& &span class=&o&&&&/span& &span class=&mi&&0&/span&&span class=&p&&]&/span& &span class=&o&&+&/span& &span class=&mf&&3.5&/span&&span class=&p&&)&/span& &span class=&o&&/&/span& &span class=&mi&&3&/span&
&span class=&n&&PDF&/span&&span class=&p&&[&/span&&span class=&n&&x_samples&/span& &span class=&o&&&=&/span& &span class=&mi&&0&/span&&span class=&p&&]&/span& &span class=&o&&=&/span& &span class=&mf&&0.5&/span& &span class=&o&&*&/span& &span class=&n&&numpy&/span&&span class=&o&&.&/span&&span class=&n&&cos&/span&&span class=&p&&(&/span&&span class=&n&&numpy&/span&&span class=&o&&.&/span&&span class=&n&&pi&/span& &span class=&o&&*&/span& &span class=&n&&x_samples&/span&&span class=&p&&[&/span&&span class=&n&&x_samples&/span& &span class=&o&&&=&/span& &span class=&mi&&0&/span&&span class=&p&&])&/span& &span class=&o&&+&/span& &span class=&mf&&0.5&/span&
&span class=&n&&PDF&/span& &span class=&o&&/=&/span& &span class=&n&&numpy&/span&&span class=&o&&.&/span&&span class=&n&&sum&/span&&span class=&p&&(&/span&&span class=&n&&PDF&/span&&span class=&p&&)&/span&
&span class=&c1&&# Calculate approximated CDF&/span&
&span class=&n&&CDF&/span& &span class=&o&&=&/span& &span class=&n&&numpy&/span&&span class=&o&&.&/span&&span class=&n&&empty&/span&&span class=&p&&(&/span&&span class=&n&&PDF&/span&&span class=&o&&.&/span&&span class=&n&&shape&/span&&span class=&p&&)&/span&
&span class=&n&&cumulated&/span& &span class=&o&&=&/span& &span class=&mi&&0&/span&
&span class=&k&&for&/span& &span class=&n&&i&/span& &span class=&ow&&in&/span& &span class=&nb&&range&/span&&span class=&p&&(&/span&&span class=&n&&CDF&/span&&span class=&o&&.&/span&&span class=&n&&shape&/span&&span class=&p&&[&/span&&span class=&mi&&0&/span&&span class=&p&&]):&/span&
&span class=&n&&cumulated&/span& &span class=&o&&+=&/span& &span class=&n&&PDF&/span&&span class=&p&&[&/span&&span class=&n&&i&/span&&span class=&p&&]&/span&
&span class=&n&&CDF&/span&&span class=&p&&[&/span&&span class=&n&&i&/span&&span class=&p&&]&/span& &span class=&o&&=&/span& &span class=&n&&cumulated&/span&
&span class=&c1&&# Generate samples&/span&
&span class=&n&&generate&/span& &span class=&o&&=&/span& &span class=&n&&partial&/span&&span class=&p&&(&/span&&span class=&n&&numpy&/span&&span class=&o&&.&/span&&span class=&n&&interp&/span&&span class=&p&&,&/span& &span class=&n&&xp&/span&&span class=&o&&=&/span&&span class=&n&&CDF&/span&&span class=&p&&,&/span& &span class=&n&&fp&/span&&span class=&o&&=&/span&&span class=&n&&x_samples&/span&&span class=&p&&)&/span&
&span class=&n&&u_rv&/span& &span class=&o&&=&/span& &span class=&n&&numpy&/span&&span class=&o&&.&/span&&span class=&n&&random&/span&&span class=&o&&.&/span&&span class=&n&&random&/span&&span class=&p&&(&/span&&span class=&mi&&10000&/span&&span class=&p&&)&/span&
&span class=&n&&x&/span& &span class=&o&&=&/span& &span class=&n&&generate&/span&&span class=&p&&(&/span&&span class=&n&&u_rv&/span&&span class=&p&&)&/span&
&span class=&c1&&# Visualization&/span&
&span class=&n&&fig&/span&&span class=&p&&,&/span& &span class=&p&&(&/span&&span class=&n&&ax0&/span&&span class=&p&&,&/span& &span class=&n&&ax1&/span&&span class=&p&&)&/span& &span class=&o&&=&/span& &span class=&n&&pyplot&/span&&span class=&o&&.&/span&&span class=&n&&subplots&/span&&span class=&p&&(&/span&&span class=&n&&ncols&/span&&span class=&o&&=&/span&&span class=&mi&&2&/span&&span class=&p&&,&/span& &span class=&n&&figsize&/span&&span class=&o&&=&/span&&span class=&p&&(&/span&&span class=&mi&&9&/span&&span class=&p&&,&/span& &span class=&mi&&4&/span&&span class=&p&&))&/span&
&span class=&n&&ax0&/span&&span class=&o&&.&/span&&span class=&n&&plot&/span&&span class=&p&&(&/span&&span class=&n&&x_samples&/span&&span class=&p&&,&/span& &span class=&n&&PDF&/span&&span class=&p&&)&/span&
&span class=&n&&ax0&/span&&span class=&o&&.&/span&&span class=&n&&axis&/span&&span class=&p&&([&/span&&span class=&o&&-&/span&&span class=&mf&&3.5&/span&&span class=&p&&,&/span& &span class=&mf&&3.5&/span&&span class=&p&&,&/span& &span class=&mi&&0&/span&&span class=&p&&,&/span& &span class=&n&&numpy&/span&&span class=&o&&.&/span&&span class=&n&&max&/span&&span class=&p&&(&/span&&span class=&n&&PDF&/span&&span class=&p&&)&/span&&span class=&o&&*&/span&&span class=&mf&&1.1&/span&&span class=&p&&])&/span&
&span class=&n&&ax1&/span&&span class=&o&&.&/span&&span class=&n&&hist&/span&&span class=&p&&(&/span&&span class=&n&&x&/span&&span class=&p&&,&/span& &span class=&mi&&100&/span&&span class=&p&&)&/span&
&span class=&n&&pyplot&/span&&span class=&o&&.&/span&&span class=&n&&show&/span&&span class=&p&&()&/span&
&/code&&/pre&&/div&&p&对于一些简单的情况,我们会假设已知有模型可以很好的对分布进行建模,缺少的只是合适的参数。这时候很自然只要根据观测到的样本,学习参数让当前观测到的样本下的似然函数最大,这就是最大似然估计(&b&M&/b&aximum &b&L&/b&ikelihood &b&E&/b&stimation):&br&&/p&&p&&img src=&https://www.zhihu.com/equation?tex=%5Chat%7B%5Ctheta%7D%3D%5Coperatorname%2A%7Bargmax%7D_%7B%5Ctheta%7D+P%28%5Cbm%7Bx%7D%7C%5Ctheta%29+%3D+%5Coperatorname%2A%7Bargmax%7D_%7B%5Ctheta%7D+%5Cprod_%7Bi%3D1%7D%5E%7Bn%7DP%28x_i%7C%5Ctheta%29+& alt=&\hat{\theta}=\operatorname*{argmax}_{\theta} P(\bm{x}|\theta) = \operatorname*{argmax}_{\theta} \prod_{i=1}^{n}P(x_i|\theta) & eeimg=&1&&&/p&&p&MLE是一个最基本的思路,实践中用得很多的还有KL散度(Kullback–Leibler divergence),假设真实分布是P,采样分布是Q,则KL散度为:&/p&&p&&img src=&https://www.zhihu.com/equation?tex=D_%7BKL%7D%28P%7C%7CQ%29%3D%5Csum_%7Bx+%5Cin+%5COmega%7DP%28%7Bx%7D%29%5Clog%5Cfrac%7BP%28x%29%7D%7BQ%28x%29%7D+& alt=&D_{KL}(P||Q)=\sum_{x \in \Omega}P({x})\log\frac{P(x)}{Q(x)} & eeimg=&1&&&/p&&p&从公式也能看出来,KL散度描述的是两个分布的差异程度。换个角度来看,让产生的样本和原始分布接近,也就是要让这俩的差异减小,所以最小化KL散度就等同于MLE。从公式上来看的话,我们考虑把公式具体展开一下:&/p&&p&&br&&/p&&p&&img src=&https://www.zhihu.com/equation?tex=%5Cbegin%7Balign%7D+D_%7BKL%7D%28P%7C%7CQ%29+%26%3D%5Csum_%7Bx+%5Cin+%5COmega%7DP%28%7Bx%7D%29%5Clog%5Cfrac%7BP%28x%29%7D%7BQ%28x%29%7D+%5C%5C+%26+%3D-%5Csum_%7Bx%5Cin%5COmega%7DP%28%7Bx%7D%29%5Clog%7BQ%28x%29%7D+%2B%5Csum_%7Bx%5Cin%5COmega%7DP%28%7Bx%7D%29%5Clog%7BP%28x%29%7D+%5C%5C+%26+%3D-%5Csum_%7Bx%5Cin%5COmega%7DP%28%7Bx%7D%29%5Clog%7BQ%28x%29%7D+%2BH%28P%29+%5Cend%7Balign%7D& alt=&\begin{align} D_{KL}(P||Q) &=\sum_{x \in \Omega}P({x})\log\frac{P(x)}{Q(x)} \\ & =-\sum_{x\in\Omega}P({x})\log{Q(x)} +\sum_{x\in\Omega}P({x})\log{P(x)} \\ & =-\sum_{x\in\Omega}P({x})\log{Q(x)} +H(P) \end{align}& eeimg=&1&&&/p&&p&公式的第二项就是熵,先不管这项,用H(P)表示。接下来考虑一个小trick:从Q中抽样n个样本&img src=&https://www.zhihu.com/equation?tex=%7Bx_1%2Cx_2%2C...%2Cx_n%7D& alt=&{x_1,x_2,...,x_n}& eeimg=&1&&,来估算P(x)的经验值(empirical density function):&br&&/p&&p&&img src=&https://www.zhihu.com/equation?tex=%5Chat%7BP%7D%28x%29%3D%5Cfrac+1+n+%5Csum_%7Bi%3D1%7D%5En+%5Cdelta%28x_i-x%29& alt=&\hat{P}(x)=\frac 1 n \sum_{i=1}^n \delta(x_i-x)& eeimg=&1&&&/p&&p&其中&img src=&https://www.zhihu.com/equation?tex=%5Cdelta%28%5Ccdot%29& alt=&\delta(\cdot)& eeimg=&1&&是狄拉克&img src=&https://www.zhihu.com/equation?tex=%5Cdelta& alt=&\delta& eeimg=&1&&函数,把这项替换到上面公式的P(x):&/p&&p&&br&&/p&&p&&img src=&https://www.zhihu.com/equation?tex=%5Cbegin%7Balign%7D+D_%7BKL%7D%28P%7C%7CQ%29+%26%3D-%5Csum_%7Bx%5Cin%5COmega%7D%5Cfrac+1+n+%5Csum_%7Bi%3D1%7D%5En+%5Cdelta%28x_i-x%29%5Clog%7BQ%28x%29%7D+%2BH%28P%29+%5C%5C+%26+%3D-%5Cfrac+1+n+%5Csum_%7Bi%3D1%7D%5En+%5Csum_%7Bx%5Cin%5COmega%7D+%5Cdelta%28x_i-x%29%5Clog%7BQ%28x%29%7D+%2BH%28P%29+%5Cend%7Balign%7D& alt=&\begin{align} D_{KL}(P||Q) &=-\sum_{x\in\Omega}\frac 1 n \sum_{i=1}^n \delta(x_i-x)\log{Q(x)} +H(P) \\ & =-\frac 1 n \sum_{i=1}^n \sum_{x\in\Omega} \delta(x_i-x)\log{Q(x)} +H(P) \end{align}& eeimg=&1&&&/p&&p&因为是离散的采样值,所以&img src=&https://www.zhihu.com/equation?tex=%5Csum_%7Bx%5Cin%5COmega%7D+%5Cdelta%28x_i-x%29& alt=&\sum_{x\in\Omega} \delta(x_i-x)& eeimg=&1&&中只有&img src=&https://www.zhihu.com/equation?tex=x%3Dx_i& alt=&x=x_i& eeimg=&1&&的时候狄拉克&img src=&https://www.zhihu.com/equation?tex=%5Cdelta& alt=&\delta& eeimg=&1&&函数才为1,所以考虑&img src=&https://www.zhihu.com/equation?tex=x%3Dx_i& alt=&x=x_i& eeimg=&1&&时这项直接化为1:&/p&&p&&br&&/p&&p&&img src=&https://www.zhihu.com/equation?tex=D_%7BKL%7D%28P%7C%7CQ%29+%3D-%5Cfrac+1+n%5Csum_%7Bi%3D1%7D%5En+%5Clog%7BQ%28x_i%29%7D+%2BH%28P%29& alt=&D_{KL}(P||Q) =-\frac 1 n\sum_{i=1}^n \log{Q(x_i)} +H(P)& eeimg=&1&&&/p&&p&第一项正是似然的负对数形式。&/p&&p&说了些公式似乎跑得有点远了,其实要表达还是那个简单的意思:通过减小两个分布的差异可以让一个分布逼近另一个分布。仔细想想,这正是GAN里面adversarial loss的做法。&/p&&p&很多情况下我们面临的是更为复杂的分布,比如&a href=&https://zhuanlan.zhihu.com/p/& class=&internal&&上篇文章&/a&中的例子,又或是实际场景中更复杂的情况,比如生成不同人脸的图像。这时候,作为具有universal approximation性质的神经网络是一个看上去不错的选择[1]:&br&&/p&&figure&&img src=&https://pic4.zhimg.com/v2-6fee20494f50baae2c1dc5fc_b.jpg& data-caption=&& data-size=&normal& data-rawwidth=&1561& data-rawheight=&549& class=&origin_image zh-lightbox-thumb& width=&1561& data-original=&https://pic4.zhimg.com/v2-6fee20494f50baae2c1dc5fc_r.jpg&&&/figure&&p&所以虽然GAN里面同时包含了生成网络和判别网络,但本质来说GAN的目的还是生成模型。从生成式模型的角度,Ian Goodfellow总结过一个和神经网络相关生成式方法的“家谱”[1]:&/p&&figure&&img src=&https://pic4.zhimg.com/v2-8c6f1d8ee39dfbb4fcfb2_b.jpg& data-caption=&& data-size=&normal& data-rawwidth=&771& data-rawheight=&498& class=&origin_image zh-lightbox-thumb& width=&771& data-original=&https://pic4.zhimg.com/v2-8c6f1d8ee39dfbb4fcfb2_r.jpg&&&/figure&&p&在这其中,当下最流行的就是GAN和&b&V&/b&ariational &b&A&/b&uto&b&E&/b&ncoder(VAE),两种方法的一个简明示意如下[3]:&/p&&figure&&img src=&https://pic1.zhimg.com/v2-380cde71a2f6ece28b4a97_b.jpg& data-caption=&& data-size=&normal& data-rawwidth=&568& data-rawheight=&274& class=&origin_image zh-lightbox-thumb& width=&568& data-original=&https://pic1.zhimg.com/v2-380cde71a2f6ece28b4a97_r.jpg&&&/figure&&p&本篇不打算展开讲什么是VAE,不过通过这个图,和名字中的autoencoder也大概能知道,VAE中生成的loss是基于重建误差的。而只基于重建误差的图像生成,都或多或少会有图像模糊的缺点,因为误差通常都是针对全局。比如基于MSE(Mean Squared Error)的方法用来生成超分辨率图像,容易出现下面的情况[4]:&/p&&p&&br&&/p&&p&&br&&/p&&figure&&img src=&https://pic1.zhimg.com/v2-78f53b142fab51b0c09a1_b.jpg& data-caption=&& data-size=&normal& data-rawwidth=&892& data-rawheight=&598& class=&origin_image zh-lightbox-thumb& width=&892& data-original=&https://pic1.zhimg.com/v2-78f53b142fab51b0c09a1_r.jpg&&&/figure&&p&在这个二维示意中,真实数据分布在一个U形的流形上,而MSE系的方法因为loss的形式往往会得到一个接近平均值所在的位置(蓝色框)。&/p&&p&GAN在这方面则完爆其他方法,因为目标分布在流形上。所以只要大概收敛了,就算生成的图像都看不出是个啥,清晰度常常是有保证的,而这正是去除女优身上马赛克的理想特性!&/p&&p&&br&&/p&&h2&马赛克-&清晰画面:超分辨率(Super Resolution)问题&/h2&&p&说了好些铺垫,终于要进入正题了。首先明确,去马赛克其实是个图像超分辨率问题,也就是如何在低分辨率图像基础上得到更高分辨率的图像:&/p&&figure&&img src=&https://pic2.zhimg.com/v2-31c84b42ad_b.jpg& data-caption=&& data-size=&normal& data-rawwidth=&784& data-rawheight=&324& class=&origin_image zh-lightbox-thumb& width=&784& data-original=&https://pic2.zhimg.com/v2-31c84b42ad_r.jpg&&&/figure&&p&视频中超分辨率实现的一个套路是通过不同帧的低分辨率画面猜测超分辨率的画面,有兴趣了解这个思想的朋友可以参考我之前的一个答案:&a href=&https://www.zhihu.com/question//answer/& class=&internal&&如何通过多帧影像进行超分辨率重构? &/a& &/p&&p&不过基于多帧影像的方法对于女优身上的马赛克并不是很适用,所以这篇要讲的是基于单帧图像的超分辨率方法。&/p&&h2&SRGAN&/h2&&p&说到基于GAN的超分辨率的方法,就不能不提到SRGAN[4]:《Photo-Realistic Single Image &b&S&/b&uper-&b&R&/b&esolution Using a &b&G&/b&enerative &b&A&/b&dversarial&br&&b&N&/b&etwork》。这个工作的思路是:基于像素的MSE loss往往会得到大体正确,但是高频成分模糊的结果。所以只要重建低频成分的图像内容,然后靠GAN来补全高频的细节内容,就可以了:&/p&&figure&&img src=&https://pic3.zhimg.com/v2-128029dfc7c470b07a4a1_b.jpg& data-caption=&& data-size=&normal& data-rawwidth=&446& data-rawheight=&131& class=&origin_image zh-lightbox-thumb& width=&446& data-original=&https://pic3.zhimg.com/v2-128029dfc7c470b07a4a1_r.jpg&&&/figure&&p&这个思路其实和最早基于深度网络的风格迁移的思路很像(有兴趣的读者可以参考我之前文章&a href=&https://zhuanlan.zhihu.com/p/& class=&internal&&瞎谈CNN:通过优化求解输入图像&/a&的最后一部分),其中重建内容的content loss是原始图像和低分辨率图像在VGG网络中的各个ReLU层的激活值的差异:&/p&&p&&br&&/p&&figure&&img src=&https://pic3.zhimg.com/v2-331e02e394cfd04e7114a_b.jpg& data-caption=&& data-size=&normal& data-rawwidth=&529& data-rawheight=&150& class=&origin_image zh-lightbox-thumb& width=&529& data-original=&https://pic3.zhimg.com/v2-331e02e394cfd04e7114a_r.jpg&&&/figure&&p&生成细节adversarial loss就是GAN用来判别是原始图还是生成图的loss:&/p&&figure&&img src=&https://pic1.zhimg.com/v2-fa5af2a10fe9a4dadfb04_b.jpg& data-caption=&& data-size=&normal& data-rawwidth=&394& data-rawheight=&89& class=&content_image& width=&394&&&/figure&&p&把这两种loss放一起,取个名叫perceptual loss。训练的网络结构如下:&/p&&figure&&img src=&https://pic1.zhimg.com/v2-17861edeb4bcfae4e9f369_b.jpg& data-caption=&& data-size=&normal& data-rawwidth=&780& data-rawheight=&400& class=&origin_image zh-lightbox-thumb& width=&780& data-original=&https://pic1.zhimg.com/v2-17861edeb4bcfae4e9f369_r.jpg&&&/figure&&p&正是上篇文章中讲过的C-GAN,条件C就是低分辨率的图片。SRGAN生成的超分辨率图像虽然PSNR等和原图直接比较的传统量化指标并不是最好,但就视觉效果,尤其是细节上,胜过其他方法很多。比如下面是作者对比bicubic插值和基于ResNet特征重建的超分辨率的结果:&/p&&figure&&img src=&https://pic4.zhimg.com/v2-f3b4376938ffcbd23c42d_b.jpg& data-caption=&& data-size=&normal& data-rawwidth=&981& data-rawheight=&392& class=&origin_image zh-lightbox-thumb& width=&981& data-original=&https://pic4.zhimg.com/v2-f3b4376938ffcbd23c42d_r.jpg&&&/figure&&p&可以看到虽然很多细节都和原始图片不一样,不过看上去很和谐,并且细节的丰富程度远胜于SRResNet。这些栩栩如生的细节,可以看作是GAN根据学习到的分布信息“联想”出来的。&/p&&p&对于更看重“看上去好看”的超分辨率应用,SRGAN显然是很合适的。当然对于一些更看重重建指标的应用,比如超分辨率恢复嫌疑犯面部细节,SRGAN就不可以了。&/p&&h2&pix2pix&/h2&&p&虽然专门用了一节讲SRGAN,但本文用的方法其实是pix2pix[5]。这项工作刚在arxiv上发布就引起了不小的关注,它巧妙的利用GAN的框架解决了通用的Image-to-Image translation的问题。举例来说,在不改变分辨率的情况下:把照片变成油画风格;把白天的照片变成晚上;用色块对图片进行分割或者倒过来;为黑白照片上色;…每个任务都有专门针对性的方法和相关研究,但其实总体来看,都是像素到像素的一种映射啊,其实可以看作是一个问题。这篇文章的巧妙,就在于提出了pix2pix的方法,一个框架,解决所有这些问题。方法的示意图如下:&/p&&p&&br&&/p&&figure&&img src=&https://pic1.zhimg.com/v2-e2ea753b7b0d7f18abee3_b.jpg& data-caption=&& data-size=&normal& data-rawwidth=&485& data-rawheight=&437& class=&origin_image zh-lightbox-thumb& width=&485& data-original=&https://pic1.zhimg.com/v2-e2ea753b7b0d7f18abee3_r.jpg&&&/figure&&p&就是一个Conditional GAN,条件C是输入的图片。除了直接用C-GAN,这项工作还有两个改进:&/p&&p&1)&b&利用U-Net结构生成细节更好的图片&/b&[6]&/p&&figure&&img src=&https://pic4.zhimg.com/v2-beb074bebbfa0db_b.jpg& data-caption=&& data-size=&normal& data-rawwidth=&907& data-rawheight=&612& class=&origin_image zh-lightbox-thumb& width=&907& data-original=&https://pic4.zhimg.com/v2-beb074bebbfa0db_r.jpg&&&/figure&&p&U-Net是德国Freiburg大学模式识别和图像处理组提出的一种全卷积结构。和常见的先降采样到低维度,再升采样到原始分辨率的编解码(Encoder-Decoder)结构的网络相比,U-Net的区别是加入skip-connection,对应的feature maps和decode之后的同样大小的feature maps按通道拼(concatenate)一起,用来保留不同分辨率下像素级的细节信息。U-Net对提升细节的效果非常明显,下面是pix2pix文中给出的一个效果对比:&/p&&p&&br&&/p&&figure&&img src=&https://pic4.zhimg.com/v2-2fb4ddb2fdc24eea31eea_b.jpg& data-caption=&& data-size=&normal& data-rawwidth=&563& data-rawheight=&307& class=&origin_image zh-lightbox-thumb& width=&563& data-original=&https://pic4.zhimg.com/v2-2fb4ddb2fdc24eea31eea_r.jpg&&&/figure&&p&可以看到,各种不同尺度的信息都得到了很大程度的保留。&/p&&p&2)&b&利用马尔科夫性的判别器(PatchGAN)&br&&/b&&/p&&p&pix2pix和SRGAN的一个异曲同工的地方是都有用重建解决低频成分,用GAN解决高频成分的想法。在pix2pix中,这个思想主要体现在两个地方。一个是loss函数,加入了L1 loss用来让生成的图片和训练的目标图片尽量相似,而图像中高频的细节部分则交由GAN来处理:&/p&&figure&&img src=&https://pic4.zhimg.com/v2-cb180ad03d8a72e7883285b_b.jpg& data-caption=&& data-size=&normal& data-rawwidth=&447& data-rawheight=&51& class=&origin_image zh-lightbox-thumb& width=&447& data-original=&https://pic4.zhimg.com/v2-cb180ad03d8a72e7883285b_r.jpg&&&/figure&&p&还有一个就是&b&PatchGAN&/b&,也就是具体的GAN中用来判别是否生成图的方法。PatchGAN的思想是,既然GAN只负责处理低频成分,那么判别器就没必要以一整张图作为输入,只需要对NxN的一个图像patch去进行判别就可以了。这也是为什么叫Markovian discriminator,因为在patch以外的部分认为和本patch互相独立。&/p&&p&具体实现的时候,作者使用的是一个NxN输入的全卷积小网络,最后一层每个像素过sigmoid输出为真的概率,然后用BCEloss计算得到最终loss。这样做的好处是因为输入的维度大大降低,所以参数量少,运算速度也比直接输入一张快,并且可以计算任意大小的图。作者对比了不同大小patch的结果,对于256x256的输入,patch大小在70x70的时候,从视觉上看结果就和直接把整张图片作为判别器输入没什么区别了:&/p&&figure&&img src=&https://pic1.zhimg.com/v2-5172ca51efb4ee3e453b15_b.jpg& data-caption=&& data-size=&normal& data-rawwidth=&842& data-rawheight=&107& class=&origin_image zh-lightbox-thumb& width=&842& data-original=&https://pic1.zhimg.com/v2-5172ca51efb4ee3e453b15_r.jpg&&&/figure&&h2&生成带局部马赛克的训练数据&/h2&&p&利用pix2pix,只要准备好无码和相应的有码图片就可以训练去马赛克的模型了,就是这么简单。那么问题是,如何生成有马赛克的图片?&/p&&p&有毅力的话,可以手动加马赛克,这样最为精准。这节介绍一个不那么准,但是比随机强的方法:利用分类模型的激活区域进行自动马赛克标注。&/p&&p&基本思想是利用一个可以识别需要打码图像的分类模型,提取出这个模型中对应类的CAM(&b&C&/b&lass &b&A&/b&ctivation &b&M&/b&ap)[7],然后用马赛克遮住响应最高的区域即可。这里简单说一下什么是CAM,对于最后一层是全局池化(平均或最大都可以)的CNN结构,池化后的feature map相当于是做了个加权相加来计算最终的每个类别进入softmax之前的激活值。CAM的思路是,把这个权重在池化前的feature map上按像素加权相加,最后得到的单张的激活图就可以携带激活当前类别的一些位置信息,这相当于一种弱监督(classification--&localization):&/p&&p&&br&&/p&&figure&&img src=&https://pic4.zhimg.com/v2-fd28f0b871bd_b.jpg& data-caption=&& data-size=&normal& data-rawwidth=&660& data-rawheight=&314& class=&origin_image zh-lightbox-thumb& width=&660& data-original=&https://pic4.zhimg.com/v2-fd28f0b871bd_r.jpg&&&/figure&&p&上图是一个CAM的示意,用澳洲梗类别的CAM,放大到原图大小,可以看到小狗所在的区域大致是激活响应最高的区域。&/p&&p&那么就缺一个可以识别XXX图片的模型了,网上还恰好就有个现成的,yahoo于2016年发布的开源色情图片识别模型Open NSFW(&b&N&/b&ot &b&S&/b&afe &b&F&/b&or &b&W&/b&ork):&/p&&p&&a href=&https://link.zhihu.com/?target=https%3A//github.com/yahoo/open_nsfw& class=& wrap external& target=&_blank& rel=&nofollow noreferrer&&yahoo/open_nsfw&/a&&/p&&p&CAM的实现并不难,结合Open NSFW自动打码的代码和使用放在了这里:&/p&&p&&a href=&https://link.zhihu.com/?target=https%3A//github.com/frombeijingwithlove/dlcv_for_beginners/tree/master/random_bonus/generate_mosaic_for_porno_images& class=& wrap external& target=&_blank& rel=&nofollow noreferrer&&给XX图片生成马赛克&/a&&/p&&p&&br&&/p&&p&(成功打码的)效果差不多是下面这样子:&/p&&figure&&img src=&https://pic4.zhimg.com/v2-cbefa39dc983f2645dd8_b.jpg& data-caption=&& data-size=&normal& data-rawwidth=&768& data-rawheight=&256& class=&origin_image zh-lightbox-thumb& width=&768& data-original=&https://pic4.zhimg.com/v2-cbefa39dc983f2645dd8_r.jpg&&&/figure&&h2&去除(爱情)动作片中的马赛克&/h2&&p&这没什么好说的了,一行代码都不用改,只需要按照前面的步骤把数据准备好,然后按照pix2pix官方的使用方法训练就可以了:&/p&&p&Torch版pix2pix:&a href=&https://link.zhihu.com/?target=https%3A//github.com/phillipi/pix2pix& class=& wrap external& target=&_blank& rel=&nofollow noreferrer&&phillipi/pix2pix&/a&&/p&&p&pyTorch版pix2pix(Cycle-GAN二合一版):&a href=&https://link.zhihu.com/?target=https%3A//github.com/junyanz/pytorch-CycleGAN-and-pix2pix& class=& wrap external& target=&_blank& rel=&nofollow noreferrer&&junyanz/pytorch-CycleGAN-and-pix2pix&/a&&/p&&p&从D盘里随随便便找了几千张图片,用来执行了一下自动打码和pix2pix训练(默认参数),效果是下面这样:&/p&&p&&br&&/p&&figure&&img src=&https://pic4.zhimg.com/v2-9f52b17c0e1296767cbfbfafc290a5bd_b.jpg& data-caption=&& data-size=&normal& data-rawwidth=&814& data-rawheight=&691& class=&origin_image zh-lightbox-thumb& width=&814& data-original=&https://pic4.zhimg.com/v2-9f52b17c0e1296767cbfbfafc290a5bd_r.jpg&&&/figure&&p&什么?你问说好给女优去马赛克呢?女优照片呢?&/p&&figure&&img src=&https://pic4.zhimg.com/v2-480fb8a4dcfc7a4f92ec_b.jpg& data-caption=&& data-size=&normal& data-rawwidth=&75& data-rawheight=&60& class=&content_image& width=&75&&&/figure&&p&还是要说一下,在真人照片上的效果比蘑菇和花强。&/p&&h2&对偶学习(Dual Learning)&/h2&&p&去马赛克已经讲完了,接下来就是给女孩穿(tuo)衣服了,动手之前,还是先讲一下铺垫:&b&对偶学习&/b&和&b&Cycle-GAN&/b&。&/p&&p&对偶学习是MSRA于2016年提出的一种用于机器翻译的增强学习方法[8],目的是解决海量数据配对标注的难题,个人觉得算是一种弱监督方法(不过看到大多数文献算作无监督)。以机器翻译为例,对偶学习基本思想如下图[9]:&/p&&figure&&img src=&https://pic3.zhimg.com/v2-c4b1eeda364fb6c9bada02f3_b.jpg& data-caption=&& data-size=&normal& data-rawwidth=&866& data-rawheight=&399& class=&origin_image zh-lightbox-thumb& width=&866& data-original=&https://pic3.zhimg.com/v2-c4b1eeda364fb6c9bada02f3_r.jpg&&&/figure&&p&左边的灰衣男只懂英语,右边的黑衣女只懂中文,现在的任务就是,要学习如何翻译英语到中文。对偶学习解决这个问题的思路是:给定一个模型&img src=&https://www.zhihu.com/equation?tex=f%3Ax%5Crightarrow+y& alt=&f:x\rightarrow y& eeimg=&1&&一上来无法知道f翻译得是否正确,但是如果考虑上&img src=&https://www.zhihu.com/equation?tex=f& alt=&f& eeimg=&1&&的对偶问题&img src=&https://www.zhihu.com/equation?tex=g%3Ay%5Crightarrow+x& alt=&g:y\rightarrow x& eeimg=&1&&,那么我可以尝试翻译一个英文句子到中文,再翻译回来。这种转了一圈的结果&img src=&https://www.zhihu.com/equation?tex=x%27%3Dg%28f%28x%29%29& alt=&x'=g(f(x))& eeimg=&1&&,灰衣男是可以用一个标准(BLEU)判断x'和x是否一个意思,并且把结果的一致性反馈给这两个模型进行改进。同样的,从中文取个句子,这样循环翻译一遍,两个模型又能从黑衣女那里获取反馈并改进模型。其实这就是强化学习的过程,每次翻译就是一个action,每个action会从环境(灰衣男或黑衣女)中获取reward,对模型进行改进,直至收敛。&/p&&p&也许有的人看到这里会觉得和上世纪提出的Co-training很像,这个在知乎上也有讨论:&/p&&p&&a href=&https://www.zhihu.com/question/& class=&internal&&如何理解刘铁岩老师团队在NIPS 2016上提出的对偶学习(Dual Learning)?&/a&&/p&&p&个人觉得还是不一样的,Co-Training是一种multi-view方法,比如一个输入x,如果看作是两个拼一起的特征&img src=&https://www.zhihu.com/equation?tex=x%3D%28x_1%2Cx_2%29& alt=&x=(x_1,x_2)& eeimg=&1&&,并且假设&img src=&https://www.zhihu.com/equation?tex=x_1& alt=&x_1& eeimg=&1&&和&img src=&https://www.zhihu.com/equation?tex=x_2& alt=&x_2& eeimg=&1&&互相独立,那么这时候训练两个分类器&img src=&https://www.zhihu.com/equation?tex=f_1%28%5Ccdot%29& alt=&f_1(\cdot)& eeimg=&1&&和&img src=&https://www.zhihu.com/equation?tex=f_2%28%5Ccdot%29& alt=&f_2(\cdot)& eeimg=&1&&对于任意样本x应该有&img src=&https://www.zhihu.com/equation?tex=f_1%28x_1%29%3Df_2%28x_2%29& alt=&f_1(x_1)=f_2(x_2)& eeimg=&1&&。这对没有标注的样本是很有用的,相当于利用了同一个样本分类结果就应该一样的隐含约束。所以Co-Training的典型场景是少量标注+大量未标注的半监督场景。并且&img src=&https://www.zhihu.com/equation?tex=f_1& alt=&f_1& eeimg=&1&&和&img src=&https://www.zhihu.com/equation?tex=f_2& alt=&f_2& eeimg=&1&&其实是两个不同,但是domain指向相同的任务。而Dual Learning中&img src=&https://www.zhihu.com/equation?tex=f& alt=&f& eeimg=&1&&和&img src=&https://www.zhihu.com/equation?tex=g& alt=&g& eeimg=&1&&是对偶任务,利用的隐含约束是&img src=&https://www.zhihu.com/equation?tex=x%5Crightarrow+y%5Crightarrow+x& alt=&x\rightarrow y\rightarrow x& eeimg=&1&&的cycle consistency。对输入的特征也没有像Co-Training有那么明确的假设,学习方法上也不一样,Dual Learning算是强化学习。&/p&&h2&CycleGAN和未配对图像翻译(Unpaired Image-to-Image Translation)&/h2&&p&CycleGAN,翻译过来就是:轮着干,是结合了对偶学习和GAN一个很直接而巧妙的想法[10],示意图如下:&/p&&figure&&img src=&https://pic4.zhimg.com/v2-9e7396ebccb7c42302fc97_b.jpg& data-caption=&& data-size=&normal& data-rawwidth=&838& data-rawheight=&216& class=&origin_image zh-lightbox-thumb& width=&838& data-original=&https://pic4.zhimg.com/v2-9e7396ebccb7c42302fc97_r.jpg&&&/figure&&p&X和Y分别是两种不同类型图的集合,比如穿衣服的女优和没穿衣服的女优。所以给定一张穿了衣服的女优,要变成没穿衣服的样子,就是个图片翻译问题。CycleGAN示意图中(b)和(c)就是Dual Learning:&/p&&figure&&img src=&https://pic2.zhimg.com/v2-de51cac58b_b.jpg& data-caption=&& data-size=&normal& data-rawwidth=&347& data-rawheight=&62& class=&content_image& width=&347&&&/figure&&p&在Dual Learning基础上,又加入了两个判别器&img src=&https://www.zhihu.com/equation?tex=D_X& alt=&D_X& eeimg=&1&&和&img src=&https://www.zhihu.com/equation?tex=D_Y& alt=&D_Y& eeimg=&1&&用来进行对抗训练,让翻译过来的图片尽量逼近当前集合中的图片:&/p&&p&&br&&/p&&figure&&img src=&https://pic3.zhimg.com/v2-e0ea7a6b38bf2a20cea4ea6f741a4c67_b.jpg& data-caption=&& data-size=&normal& data-rawwidth=&442& data-rawheight=&59& class=&origin_image zh-lightbox-thumb& width=&442& data-original=&https://pic3.zhimg.com/v2-e0ea7a6b38bf2a20cea4ea6f741a4c67_r.jpg&&&/figure&&p&全考虑一起,最终的loss是:&/p&&p&&br&&/p&&figure&&img src=&https://pic4.zhimg.com/v2-e6d99e7edea969da3dad_b.jpg& data-caption=&& data-size=&normal& data-rawwidth=&357& data-rawheight=&87& class=&content_image& width=&357&&&/figure&&p&也许有人会问,那不加cycle-consistency,直接用GAN学习一个&img src=&https://www.zhihu.com/equation?tex=X%5Crightarrow+Y& alt=&X\rightarrow Y& eeimg=&1&&的映射,让生成的Y的样本尽量毕竟Y里本身的样本可不可以呢?这个作者在文中也讨论了,会产生GAN训练中容易发生的mode collapse问题。mode collapse问题的一个简单示意如下[1]:&/p&&p&&br&&/p&&figure&&img src=&https://pic1.zhimg.com/v2-309fce6329592babb784ed_b.jpg& data-caption=&& data-size=&normal& data-rawwidth=&842& data-rawheight=&262& class=&origin_image zh-lightbox-thumb& width=&842& data-original=&https://pic1.zhimg.com/v2-309fce6329592babb784ed_r.jpg&&&/figure&&p&上边的是真实分布,下边的是学习到的分布,可以看到学习到的分布只是完整分布的一部分,这个叫做partial mode collapse,是训练不收敛情况中常见的一种。如果是完全的mode collapse,就是说生成模型得到的都是几乎一样的输出。而加入Cycle-consistency会让一个domain里不同的样本都尽量映射到另一个domain里不同的地方,理想情况就是双射(bijection)。直观来理解,如果通过&img src=&https://www.zhihu.com/equation?tex=X%5Crightarrow+Y& alt=&X\rightarrow Y& eeimg=&1&&都映射在Y中同一个点,那么这个点y通过&img src=&https://www.zhihu.com/equation?tex=Y%5Crightarrow+X& alt=&Y\rightarrow X& eeimg=&1&&映射回来显然不可能是多个不同的x,所以加入cycle-consistency就帮助避免了mode collapse。这个问题在另一篇和CycleGAN其实本质上没什么不同的方法DiscoGAN中有更详细的讨论[11],有兴趣的话可以参考。&/p&&p&&br&&/p&&p&有一点值得注意的是,虽然名字叫CycleGAN,并且套路也和C-GAN很像,但是其实只有adversarial,并没有generative。因为严格来说只是学习了&img src=&https://www.zhihu.com/equation?tex=X%5Crightarrow+Y& alt=&X\rightarrow Y& eeimg=&1&&和&img src=&https://www.zhihu.com/equation?tex=Y%5Crightarrow+X& alt=&Y\rightarrow X& eeimg=&1&&的mapping,所谓的generative network里并没有随机性。有一个和CycleGAN以及DiscoGAN其实本质上也没什么不同的方法叫DualGAN[12],倒是通过dropout把随机性加上了。不过所有加了随机性产生的样本和原始样本间的cycle-consistency用的还是l1 loss,总觉得这样不是很对劲。当然现在GAN这么热门,其实只要是用了adversarial loss的基本都会取个名字叫XXGAN,也许是可以增加投稿命中率。&/p&&p&另外上节中提到了Co-Training,感觉这里也应该提一下CoGAN[13],因为名字有些相似,并且也可以用于未配对的图像翻译。CoGAN的大体思想是:如果两个Domain之间可以互相映射,那么一定有一些特征是共有的。比如男人和女人,虽然普遍可以从长相区分,但不变的是都有两个眼睛一个鼻子一张嘴等等。所以可以在生成的时候,把生成共有特征和各自特征的部分分开,示意图如下:&br&&/p&&p&&br&&/p&&figure&&img src=&https://pic4.zhimg.com/v2-57eaadc8cec5190bfd30_b.jpg& data-caption=&& data-size=&normal& data-rawwidth=&758& data-rawheight=&207& class=&origin_image zh-lightbox-thumb& width=&758& data-original=&https://pic4.zhimg.com/v2-57eaadc8cec5190bfd30_r.jpg&&&/figure&&p&其实就是两个GAN结构,其中生成网络和判别网络中比较高层的部分都采用了权值共享(虚线相连的部分),没有全职共享的部分分别处理不同的domain。这样每次就可以根据训练的domain生成一个样本在两个domain中不同的对应,比如戴眼镜和没戴眼镜:&/p&&p&&br&&/p&&figure&&img src=&https://pic2.zhimg.com/v2-356a6118ccf3e8e3bf1c7_b.jpg& data-caption=&& data-size=&normal& data-rawwidth=&791& data-rawheight=&267& class=&origin_image zh-lightbox-thumb& width=&791& data-original=&https://pic2.zhimg.com/v2-356a6118ccf3e8e3bf1c7_r.jpg&&&/figure&&p&分别有了共有特征和各自domain特征,那么做mapping的思路也就很直接了[14]:&/p&&p&&br&&/p&&figure&&img src=&https://pic7.zhimg.com/v2-8ac50600e40feaac345e09bd7e05a83d_b.jpg& data-caption=&& data-size=&normal& data-rawwidth=&771& data-rawheight=&210& class=&origin_image zh-lightbox-thumb& width=&771& data-original=&https://pic7.zhimg.com/v2-8ac50600e40feaac345e09bd7e05a83d_r.jpg&&&/figure&&p&在GAN前边加了个domain encoder,然后对每个domain能得到三种样本给判别器区分:直接采样,重建采样,从另一个domain中transfer后的重建采样。训练好之后,用一个domain的encoder+另一个domain的generator就很自然的实现了不同domain的转换。用在图像翻译上的效果如下:&/p&&p&&br&&/p&&figure&&img src=&https://pic2.zhimg.com/v2-612e9cf5e125fd626be7db_b.jpg& data-caption=&& data-size=&normal& data-rawwidth=&444& data-rawheight=&544& class=&origin_image zh-lightbox-thumb& width=&444& data-original=&https://pic2.zhimg.com/v2-612e9cf5e125fd626be7db_r.jpg&&&/figure&&p&还有个巧妙的思路,是把CoGAN拆开,不同domain作为C-GAN条件的更加显式的做法[15]:&/p&&p&&br&&/p&&p&&br&&/p&&figure&&img src=&https://pic1.zhimg.com/v2-ddec16d502c94f91ea35_b.jpg& data-caption=&& data-size=&normal& data-rawwidth=&883& data-rawheight=&398& class=&origin_image zh-lightbox-thumb& width=&883& data-original=&https://pic1.zhimg.com/v2-ddec16d502c94f91ea35_r.jpg&&&/figure&&p&第一步用噪声Z作为和domain无关的共享表征对应的latent noise,domain信息作为条件C训练一个C-GAN。第二步,训练一个encoder,利用和常见的encode-decode结构相反的decode(generate)-encode结构。学习好的encoder可以结合domain信息,把输入图像中和domain无关的共享特征提取出来。第三步,把前两步训练好的encoder和decoder(generator)连一起,就可以根据domain进行图像翻译了。&/p&&p&CoGAN一系的方法虽然结构看起来更复杂,但个人感觉理解起来要比dual系的方法更直接,并且有latent space,可解释性和属性对应也好一些。&/p&&p&又扯远了,还是回到正题:&/p&&p&&br&&/p&&h2&给女优穿上衣服&/h2&&p&其实同样没什么好说的,Cycle-GAN和pix2pix的作者是一拨人,文档都写得非常棒,准备好数据,分成穿衣服的和没穿衣服的两组,按照文档的步骤训练就可以:&/p&&p&Torch版Cycle-GAN:&a href=&https://link.zhihu.com/?target=https%3A//github.com/junyanz/CycleGAN& class=& wrap external& target=&_blank& rel=&nofollow noreferrer&&junyanz/CycleGAN&/a&&/p&&p&pyTorch版Cycle-GAN(pix2pix二合一版):&a href=&https://link.zhihu.com/?target=https%3A//github.com/junyanz/pytorch-CycleGAN-and-pix2pix& class=& wrap external& target=&_blank& rel=&nofollow noreferrer&&junyanz/pytorch-CycleGAN-and-pix2pix&/a&&/p&&p&Cycle-GAN收敛不易,我用了128x128分辨率训练了穿衣服和没穿衣服的女优各一千多张,同样是默认参数训练了120个epoch,最后小部分成功“穿衣服”的结果如下:&/p&&figure&&img src=&https://pic2.zhimg.com/v2-fee34d66c386e0e01e5804_b.jpg& data-caption=&& data-size=&normal& data-rawwidth=&1117& data-rawheight=&192& class=&origin_image zh-lightbox-thumb& width=&1117& data-original=&https://pic2.zhimg.com/v2-fee34d66c386e0e01e5804_r.jpg&&&/figure&&figure&&img src=&https://pic4.zhimg.com/v2-de57c5ebefa4251ee3caa1_b.jpg& data-caption=&& data-size=&normal& data-rawwidth=&1117& data-rawheight=&192& class=&origin_image zh-lightbox-thumb& width=&1117& data-original=&https://pic4.zhimg.com/v2-de57c5ebefa4251ee3caa1_r.jpg&&&/figure&&p&虽然都有些突兀,但好歹是穿上衣服了。注意马赛克不是图片里就有的,是我后来加上去的。&/p&&p&那么,脱衣服的例子在哪里?&/p&&figure&&img src=&https://pic4.zhimg.com/v2-480fb8a4dcfc7a4f92ec_b.jpg& data-caption=&& data-size=&normal& data-rawwidth=&75& data-rawheight=&60& class=&content_image& width=&75&&&/figure&&h2&参考文献&/h2&&p&[1] I. Goodfellow. Nips 2016 tutorial: Generative adversarial networks. arXiv preprint arXiv:, 2016.&/p&&p&[2] A. B. L. Larsen, S. K. S?nderby, Generating Faces with Torch. &a href=&https://link.zhihu.com/?target=http%3A//torch.ch/blog//gan.html& class=& wrap external& target=&_blank& rel=&nofollow noreferrer&&Torch | Generating Faces with Torch&/a&&/p&&p&[3] A. B. L. Larsen, S. K. S?nderby, H. Larochelle, and O. Winther. Autoencoding beyond pixels using a&br&learned similarity metric. In ICML, pages , 2016.&br&&/p&&p&[4] C. Ledig, L. Theis, F. Huszar, J. Caballero, A. Aitken, A. Tejani, J. Totz, Z. Wang, and W. Shi. Photo-realistic single image super-resolution using a generative adversarial network. arXiv:, 2016.&/p&&p&[5] P. Isola, J.-Y. Zhu, T. Zhou, and A. A. Efros. Image-to-image translation with conditional adversarial networks. arxiv, 2016. &/p&&p&[6] O. Ronneberger, P. Fischer, and T. Brox. U-net: Convolutional networks for biomedical image segmentation. In MICCAI, pages 234–241. Springer, 2015.&/p&&p&[7] B. Zhou, A. Khosla, A. Lapedriza, A. Oliva, and A. Torralba. Learning deep features for discriminative localization. arXiv preprint arXiv:, 2015.&/p&&p&[8] He, D., Xia, Y., Qin, T., Wang, L., Yu, N., Liu, T.-Y., and Ma, W.-Y. (2016a). Dual learning for machine translation. In the Annual Conference on Neural Information Processing Systems (NIPS), 2016.&/p&&p&&br&&/p&&p&[9] &a href=&https://link.zhihu.com/?target=http%3A//www.dsrg.stuorg.iastate.edu/wp-content/uploads/2017/02/dual-learning_-pushing-the-new-frontier-of-artificial-intelligence-tieyan-liu.pdf& class=& wrap external& target=&_blank& rel=&nofollow noreferrer&& Tie-Yan Liu, Dual Learning: Pushing the New Frontier of Artificial Intelligence, MIFS 2016&/a& &/p&&p&[10] J.-Y. Zhu, T. Park, P. Isola, and A.}

我要回帖

更多关于 秋名山车神 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信