{"id":1663,"date":"2022-01-08T23:02:40","date_gmt":"2022-01-08T15:02:40","guid":{"rendered":"http:\/\/139.9.1.231\/?p=1663"},"modified":"2022-01-12T11:08:11","modified_gmt":"2022-01-12T03:08:11","slug":"deep-convolutional-gandcgan","status":"publish","type":"post","link":"http:\/\/139.9.1.231\/index.php\/2022\/01\/08\/deep-convolutional-gandcgan\/","title":{"rendered":"GAN\u7cfb\u5217\u4e4b&#8212;Deep Convolutional GAN\uff08DCGAN\uff09"},"content":{"rendered":"\n<figure class=\"wp-block-image size-large is-style-default\"><img loading=\"lazy\" width=\"1024\" height=\"558\" src=\"http:\/\/139.9.1.231\/wp-content\/uploads\/2022\/01\/image-151-1024x558.png\" alt=\"\" class=\"wp-image-1665\" srcset=\"http:\/\/139.9.1.231\/wp-content\/uploads\/2022\/01\/image-151-1024x558.png 1024w, http:\/\/139.9.1.231\/wp-content\/uploads\/2022\/01\/image-151-300x163.png 300w, http:\/\/139.9.1.231\/wp-content\/uploads\/2022\/01\/image-151-768x418.png 768w, http:\/\/139.9.1.231\/wp-content\/uploads\/2022\/01\/image-151.png 1091w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>DCGAN \u7684\u5224\u522b\u5668\u548c\u751f\u6210\u5668\u90fd\u4f7f\u7528\u4e86\u5377\u79ef\u795e\u7ecf\u7f51\u7edc\uff08CNN\uff09\u6765\u66ff\u4ee3GAN \u4e2d\u7684\u591a\u5c42\u611f\u77e5\u673a\uff0c\u540c\u65f6\u4e3a\u4e86\u4f7f\u6574\u4e2a\u7f51\u7edc\u53ef\u5fae\uff0c\u62ff\u6389\u4e86CNN \u4e2d\u7684\u6c60\u5316\u5c42\uff0c\u53e6\u5916\u5c06\u5168\u8fde\u63a5\u5c42\u4ee5\u5168\u5c40\u6c60\u5316\u5c42\u66ff\u4ee3\u4ee5\u51cf\u8f7b\u8ba1\u7b97\u91cf\u3002<\/p>\n\n\n\n<h3>\u53bb\u5377\u79ef\uff08\u53cd\u5377\u79ef\uff0cDeconvolution\uff09<\/h3>\n\n\n\n<p>\u4ece\u4e0a\u56fe\u4e2d\u53ef\u4ee5\u770b\u5230\uff0c\u751f\u6210\u5668G \u5c06\u4e00\u4e2a100 \u7ef4\u7684\u566a\u97f3\u5411\u91cf\u6269\u5c55\u621064 * 64 * 3 \u7684\u77e9\u9635\u8f93\u51fa\uff0c\u6574\u4e2a\u8fc7\u7a0b\u91c7\u7528\u7684\u662f\u5fae\u6b65\u5377\u79ef\u7684\u65b9\u5f0f\u3002\u4f5c\u8005\u5728\u6587\u4e2d\u5c06\u5176\u79f0\u4e3afractionally-strided convolutions\uff0c\u5e76\u7279\u610f\u5f3a\u8c03\u4e0d\u662fdeconvolutions\u3002<\/p>\n\n\n\n<p>\u53bb\u5377\u79ef\uff08\u94fe\u63a5\uff1a<a rel=\"noreferrer noopener\" href=\"https:\/\/www.cnblogs.com\/cvtoEyes\/p\/8513958.html\" target=\"_blank\">\u53cd\u5377\u79ef<\/a>\uff09\u53c8\u5305\u542b\u8f6c\u7f6e\u5377\u79ef\u548c\u5fae\u6b65\u5377\u79ef\uff0c\u4e24\u8005\u7684\u533a\u522b\u5728\u4e8epadding \u7684\u65b9\u5f0f\u4e0d\u540c\uff0c\u770b\u770b\u4e0b\u9762\u8fd9\u5f20\u56fe\u7247\u5c31\u53ef\u4ee5\u660e\u767d\u4e86\uff1a<\/p>\n\n\n\n<div class=\"wp-block-image is-style-default\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" src=\"http:\/\/139.9.1.231\/wp-content\/uploads\/2022\/01\/20181116101941102-437x1024.png\" alt=\"\" class=\"wp-image-1667\" width=\"224\" height=\"525\" srcset=\"http:\/\/139.9.1.231\/wp-content\/uploads\/2022\/01\/20181116101941102-437x1024.png 437w, http:\/\/139.9.1.231\/wp-content\/uploads\/2022\/01\/20181116101941102-128x300.png 128w, http:\/\/139.9.1.231\/wp-content\/uploads\/2022\/01\/20181116101941102.png 638w\" sizes=\"(max-width: 224px) 100vw, 224px\" \/><\/figure><\/div>\n\n\n\n<h3>3. \u8bad\u7ec3\u65b9\u6cd5<\/h3>\n\n\n\n<p>DCGAN \u7684\u8bad\u7ec3\u65b9\u6cd5\u8ddfGAN \u662f\u4e00\u6837\u7684\uff0c\u5206\u4e3a\u4ee5\u4e0b\u4e09\u6b65\uff1a<\/p>\n\n\n\n<p>\uff081\uff09for k steps\uff1a\u8bad\u7ec3D \u8ba9\u5f0f\u5b50\u3010logD(x) + log(1 &#8211; D(G(Z)) (G keeps still)\u3011\u7684\u503c\u8fbe\u5230\u6700\u5927<\/p>\n\n\n\n<p>\uff082\uff09\u4fdd\u6301D \u4e0d\u53d8\uff0c\u8bad\u7ec3G \u4f7f\u5f0f\u5b50\u3010logD(G(z))\u3011\u7684\u503c\u8fbe\u5230\u6700\u5927<\/p>\n\n\n\n<p>\uff083\uff09\u91cd\u590dstep\uff081\uff09\u548cstep\uff082\uff09\u76f4\u5230G \u4e0eD \u8fbe\u5230\u7eb3\u4ec0\u5747\u8861<\/p>\n\n\n\n<h3>4. \u76f8\u6bd4\u4e8eGAN \u7684\u6539\u8fdb<\/h3>\n\n\n\n<p>DCGAN \u76f8\u6bd4\u4e8eGAN \u6216\u8005\u662f\u666e\u901aCNN \u7684\u6539\u8fdb\u5305\u542b\u4ee5\u4e0b\u51e0\u4e2a\u65b9\u9762\uff1a<\/p>\n\n\n\n<p>\uff081\uff09\u4f7f\u7528\u5377\u79ef\u548c\u53bb\u5377\u79ef\u4ee3\u66ff\u6c60\u5316\u5c42<\/p>\n\n\n\n<p>\uff082\uff09\u5728\u751f\u6210\u5668\u548c\u5224\u522b\u5668\u4e2d\u90fd\u6dfb\u52a0\u4e86\u6279\u91cf\u5f52\u4e00\u5316\u64cd\u4f5c<\/p>\n\n\n\n<p>\uff083\uff09\u53bb\u6389\u4e86\u5168\u8fde\u63a5\u5c42\uff0c\u4f7f\u7528\u5168\u5c40\u6c60\u5316\u5c42\u66ff\u4ee3<\/p>\n\n\n\n<p>\uff084\uff09\u751f\u6210\u5668\u7684\u8f93\u51fa\u5c42\u4f7f\u7528Tanh \u6fc0\u6d3b\u51fd\u6570\uff0c\u5176\u4ed6\u5c42\u4f7f\u7528RELU<\/p>\n\n\n\n<p>\uff085\uff09\u5224\u522b\u5668\u7684\u6240\u6709\u5c42\u90fd\u662f\u7528LeakyReLU \u6fc0\u6d3b\u51fd\u6570<\/p>\n\n\n\n<h3>5. \u6f2b\u6e38\u9690\u7a7a\u95f4<\/h3>\n\n\n\n<p>\u901a\u8fc7\u4f7f\u7528\u63d2\u503c\u5fae\u8c03\u566a\u97f3\u8f93\u5165z \u7684\u65b9\u5f0f\u53ef\u4ee5\u5bfc\u81f4\u9690\u7a7a\u95f4\u7ed3\u6784\u53d1\u751f\u53d8\u5316\u4ece\u800c\u5f15\u5bfc\u751f\u6210\u56fe\u50cf\u53d1\u751f\u8bed\u4e49\u4e0a\u7684\u5e73\u6ed1\u8fc7\u5ea6\uff0c\u6bd4\u5982\u8bf4\u4ece\u6709\u7a97\u6237\u5230\u6ca1\u7a97\u6237\uff0c\u4ece\u6709\u7535\u89c6\u5230\u6ca1\u7535\u89c6\u7b49\u7b49\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-style-default\"><img loading=\"lazy\" width=\"1001\" height=\"599\" src=\"http:\/\/139.9.1.231\/wp-content\/uploads\/2022\/01\/image-152.png\" alt=\"\" class=\"wp-image-1672\" srcset=\"http:\/\/139.9.1.231\/wp-content\/uploads\/2022\/01\/image-152.png 1001w, http:\/\/139.9.1.231\/wp-content\/uploads\/2022\/01\/image-152-300x180.png 300w, http:\/\/139.9.1.231\/wp-content\/uploads\/2022\/01\/image-152-768x460.png 768w\" sizes=\"(max-width: 1001px) 100vw, 1001px\" \/><\/figure>\n\n\n\n<h3>6. \u8bed\u4e49\u906e\u7f69<\/h3>\n\n\n\n<p>\u901a\u8fc7\u6807\u6ce8\u7a97\u53e3\uff0c\u5e76\u5224\u65ad\u6fc0\u6d3b\u795e\u7ecf\u5143\u662f\u5426\u5728\u7a97\u53e3\u5185\u7684\u65b9\u5f0f\u6765\u627e\u51fa\u5f71\u54cd\u7a97\u6237\u5f62\u6210\u7684\u795e\u7ecf\u5143\uff0c\u5c06\u8fd9\u4e9b\u795e\u7ecf\u5143\u7684\u6743\u91cd\u8bbe\u7f6e\u4e3a0\uff0c\u90a3\u4e48\u5c31\u53ef\u4ee5\u5bfc\u81f4\u751f\u6210\u7684\u56fe\u50cf\u4e2d\u6ca1\u6709\u7a97\u6237\u3002\u4ece\u4e0b\u56fe\u53ef\u4ee5\u770b\u5230\uff0c\u4e0a\u9762\u4e00\u884c\u56fe\u7247\u90fd\u662f\u6709\u7a97\u6237\u7684\uff0c\u4e0b\u9762\u4e00\u884c\u901a\u8fc7\u8bed\u4e49\u906e\u7f69\u7684\u65b9\u5f0f\u62ff\u6389\u4e86\u7a97\u6237\uff0c\u4f46\u662f\u7a7a\u7f3a\u7684\u4f4d\u7f6e\u4f9d\u7136\u662f\u5e73\u6ed1\u8fde\u7eed\u7684\uff0c\u4f7f\u6574\u5e45\u56fe\u50cf\u7684\u8bed\u4e49\u6ca1\u6709\u53d1\u751f\u592a\u5927\u7684\u53d8\u5316\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-style-default\"><img loading=\"lazy\" width=\"996\" height=\"207\" src=\"http:\/\/139.9.1.231\/wp-content\/uploads\/2022\/01\/image-153.png\" alt=\"\" class=\"wp-image-1673\" srcset=\"http:\/\/139.9.1.231\/wp-content\/uploads\/2022\/01\/image-153.png 996w, http:\/\/139.9.1.231\/wp-content\/uploads\/2022\/01\/image-153-300x62.png 300w, http:\/\/139.9.1.231\/wp-content\/uploads\/2022\/01\/image-153-768x160.png 768w\" sizes=\"(max-width: 996px) 100vw, 996px\" \/><\/figure>\n\n\n\n<h3>7. \u77e2\u91cf\u7b97\u6cd5<\/h3>\n\n\n\n<p>\u5728\u5411\u91cf\u7b97\u6cd5\u4e2d\u6709\u4e00\u4e2a\u5f88\u7ecf\u5178\u7684\u4f8b\u5b50\u5c31\u662f\u3010vector(&#8220;King&#8221;) &#8211; vector(&#8220;Man&#8221;) + vector(&#8220;Woman&#8221;) = vector(&#8220;Queue&#8221;)\u3011\uff0c\u4f5c\u8005\u5c06\u8be5\u601d\u60f3\u5f15\u5165\u5230\u56fe\u50cf\u751f\u6210\u5f53\u4e2d\u5e76\u5f97\u5230\u4e86\u4ee5\u4e0b\u5b9e\u9a8c\u7ed3\u679c\uff1a\u3010smiling woman &#8211; neutral woman + neutral man = smiling man\u3011<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><img loading=\"lazy\" width=\"1024\" height=\"776\" src=\"http:\/\/139.9.1.231\/wp-content\/uploads\/2022\/01\/image-154-1024x776.png\" alt=\"\" class=\"wp-image-1674\" srcset=\"http:\/\/139.9.1.231\/wp-content\/uploads\/2022\/01\/image-154-1024x776.png 1024w, http:\/\/139.9.1.231\/wp-content\/uploads\/2022\/01\/image-154-300x227.png 300w, http:\/\/139.9.1.231\/wp-content\/uploads\/2022\/01\/image-154-768x582.png 768w, http:\/\/139.9.1.231\/wp-content\/uploads\/2022\/01\/image-154.png 1092w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>DCGAN \u7684\u5224\u522b\u5668\u548c\u751f\u6210\u5668\u90fd\u4f7f\u7528\u4e86\u5377\u79ef\u795e\u7ecf\u7f51\u7edc\uff08CNN\uff09\u6765\u66ff\u4ee3GAN \u4e2d\u7684\u591a\u5c42\u611f\u77e5\u673a\uff0c\u540c\u65f6\u4e3a\u4e86\u4f7f\u6574\u4e2a\u7f51\u7edc\u53ef\u5fae &hellip; <a href=\"http:\/\/139.9.1.231\/index.php\/2022\/01\/08\/deep-convolutional-gandcgan\/\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">GAN\u7cfb\u5217\u4e4b&#8212;Deep Convolutional GAN\uff08DCGAN\uff09<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[4,12,9],"tags":[],"_links":{"self":[{"href":"http:\/\/139.9.1.231\/index.php\/wp-json\/wp\/v2\/posts\/1663"}],"collection":[{"href":"http:\/\/139.9.1.231\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/139.9.1.231\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/139.9.1.231\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/139.9.1.231\/index.php\/wp-json\/wp\/v2\/comments?post=1663"}],"version-history":[{"count":8,"href":"http:\/\/139.9.1.231\/index.php\/wp-json\/wp\/v2\/posts\/1663\/revisions"}],"predecessor-version":[{"id":1858,"href":"http:\/\/139.9.1.231\/index.php\/wp-json\/wp\/v2\/posts\/1663\/revisions\/1858"}],"wp:attachment":[{"href":"http:\/\/139.9.1.231\/index.php\/wp-json\/wp\/v2\/media?parent=1663"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/139.9.1.231\/index.php\/wp-json\/wp\/v2\/categories?post=1663"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/139.9.1.231\/index.php\/wp-json\/wp\/v2\/tags?post=1663"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}