{"id":436,"date":"2018-08-27T16:43:50","date_gmt":"2018-08-27T08:43:50","guid":{"rendered":"https:\/\/www.zhuyanbin.com\/?p=436"},"modified":"2018-08-29T11:19:33","modified_gmt":"2018-08-29T03:19:33","slug":"%e6%b7%b1%e5%ba%a6%e5%ad%a6%e4%b9%a0%e5%8a%a8%e6%89%8b%e5%85%a5%e9%97%a8%ef%bc%9agithub%e4%b8%8a%e5%9b%9b%e4%b8%aa%e8%b6%85%e6%a3%92%e7%9a%84tensorflow%e5%bc%80%e6%ba%90%e9%a1%b9%e7%9b%ae","status":"publish","type":"post","link":"https:\/\/www.yanbin888.com\/?p=436","title":{"rendered":"\u6df1\u5ea6\u5b66\u4e60\u52a8\u624b\u5165\u95e8\uff1aGitHub\u4e0a\u56db\u4e2a\u8d85\u68d2\u7684TensorFlow\u5f00\u6e90\u9879\u76ee"},"content":{"rendered":"<p>\u95ee\u8015 \u7f16\u8bd1\u81ea Source Dexter<\/p>\n<p>\u4f5c\u8005\u7b80\u4ecb\uff1aakshay pai\uff0c\u6570\u636e\u79d1\u5b66\u5de5\u7a0b\u5e08\uff0c\u70ed\u7231\u7814\u7a76\u673a\u5668\u5b66\u4e60\u95ee\u9898\u3002Source Dexter\u7f51\u7ad9\u521b\u529e\u4eba\u3002<\/p>\n<p>TensorFlow\u662fGoogle\u7684\u5f00\u6e90\u6df1\u5ea6\u5b66\u4e60\u5e93\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528\u8fd9\u4e2a\u6846\u67b6\u4ee5\u53caPython\u7f16\u7a0b\u8bed\u8a00\uff0c\u6784\u5efa\u5927\u91cf\u57fa\u4e8e\u673a\u5668\u5b66\u4e60\u7684\u5e94\u7528\u7a0b\u5e8f\u3002\u800c\u4e14\u8fd8\u6709\u5f88\u591a\u4eba\u628aTensorFlow\u6784\u5efa\u7684\u5e94\u7528\u7a0b\u5e8f\u6216\u8005\u5176\u4ed6\u6846\u67b6\uff0c\u5f00\u6e90\u53d1\u5e03\u5230GitHub\u4e0a\u3002<\/p>\n<p>\u8fd9\u6b21\u8ddf\u5927\u5bb6\u5206\u4eab\u4e00\u4e9bGitHub\u4e0a\u4ee4\u4eba\u60ca\u5947\u7684TensorFlow\u9879\u76ee\uff0c\u4f60\u53ef\u4ee5\u76f4\u63a5\u5728\u4f60\u7684\u5e94\u7528\u4e2d\u4f7f\u7528\uff0c\u6216\u8005\u6839\u636e\u81ea\u8eab\u6240\u9700\u8fdb\u4e00\u6b65\u4e88\u4ee5\u6539\u8fdb\u3002<\/p>\n<p>TensorFlow\u7b80\u4ecb<\/p>\n<p>\u5982\u679c\u4f60\u5df2\u7ecf\u77e5\u9053TensorFlow\u662f\u4ec0\u4e48\uff0c\u4ee5\u53ca\u5b83\u662f\u5982\u4f55\u5de5\u4f5c\u7684\uff0c\u5efa\u8bae\u76f4\u63a5\u8df3\u5230\u4e0b\u4e00\u8282\u3002\u5982\u679c\u4f60\u5bf9\u4f7f\u7528Python\u5b66\u4e60TensorFlow\u611f\u5174\u8da3\uff0c\u7f51\u4e0a\u4e5f\u6709\u76f8\u5173\u7684\u6559\u7a0b\u53ef\u4ee5\u53c2\u8003\u3002<\/p>\n<p>\u8fd9\u4e00\u8282\u5185\u5bb9\u6bd4\u8f83\u50b2\u9002\u5408\u521d\u5b66\u8005\u3002\u5982\u524d\u6240\u8ff0\uff0cTensorFlow\u662f\u4e00\u4e2a\u6df1\u5ea6\u5b66\u4e60\u5e93\uff0c\u4f7f\u7528\u8fd9\u4e00\u6846\u67b6\uff0c\u53ef\u4ee5\u7528\u6765\u6784\u5efa\u548c\u6d4b\u8bd5\u6df1\u5ea6\u795e\u7ecf\u7f51\u7edc\u3002<\/p>\n<p>\u6df1\u5ea6\u5b66\u4e60\u8ba9\u6211\u4eec\u80fd\u591f\u4ee5\u6781\u9ad8\u7684\u51c6\u786e\u6027\u6784\u5efa\u590d\u6742\u7684\u5e94\u7528\u7a0b\u5e8f\u3002\u56fe\u50cf\u3001\u89c6\u9891\u3001\u6587\u672c\u3001\u97f3\u9891\u7b49\u9886\u57df\u7684\u95ee\u9898\uff0c\u90fd\u53ef\u4ee5\u901a\u8fc7\u6df1\u5ea6\u5b66\u4e60\u89e3\u51b3\u3002TensorFlow\u53ef\u4ee5\u7528\u4e8e\u5b9e\u73b0\u524d\u8ff0\u6240\u6709\u5e94\u7528\u3002<\/p>\n<p>2015\u5e7411\u67089\u65e5\uff0cGoogle\u6b63\u5f0f\u53d1\u5e03\u5e76\u5f00\u6e90TensorFlow\uff0c\u76ee\u524d\u5b98\u65b9\u6b63\u5f0f\u7248\u672c\u4e3aTensorFlow 1.2\u3002\u4e0b\u9762\u8fd9\u6bb5\u89c6\u9891\uff0c\u662f\u5f53\u5e74TensorFlow\u521a\u53d1\u5e03\u65f6\uff0cGoogle\u53d1\u5e03\u7684\u4e00\u4e2a\u5b98\u65b9\u4ecb\u7ecd\u77ed\u7247\uff0cJeff Dean\u7b49\u51fa\u955c\u8bb2\u8ff0\u3002<\/p>\n<p>TensorFlow\u5f88\u5feb\u6210\u4e3aGitHub\u4e0a\u7528\u6237\u6700\u591a\u7684\u6df1\u5ea6\u5b66\u4e60\u6846\u67b6\u3002\u8fd9\u4e2a\u5e93\u4e4b\u6240\u4ee5\u5982\u6b64\u6d41\u884c\uff0c\u662f\u56e0\u4e3a\u5f00\u53d1\u4eba\u5458\u53ef\u4ee5\u8f7b\u677e\u7684\u7528\u5176\u6765\u642d\u5efa\u3001\u6d4b\u8bd5\u548c\u90e8\u7f72\u673a\u5668\u5b66\u4e60\u5e94\u7528\u3002<\/p>\n<p style=\"text-align: center;\"><a href=\"https:\/\/www.zhuyanbin.com\/wp-content\/uploads\/2018\/08\/01-1.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-482\" src=\"https:\/\/www.zhuyanbin.com\/wp-content\/uploads\/2018\/08\/01-1.jpg\" alt=\"\" width=\"298\" height=\"500\" srcset=\"https:\/\/www.yanbin888.com\/wp-content\/uploads\/2018\/08\/01-1.jpg 298w, https:\/\/www.yanbin888.com\/wp-content\/uploads\/2018\/08\/01-1-179x300.jpg 179w\" sizes=\"auto, (max-width: 298px) 100vw, 298px\" \/><\/a><\/p>\n<p>TensorFlow\u4f7f\u7528\u6570\u636e\u6d41\u56fe\uff0c\u4e0a\u9762\u662f\u4e00\u4e2aTensorFlow\u7684\u793a\u610f\u56fe\u3002\u6211\u4eec\u4e0d\u7528\u5173\u5fc3\u8fd9\u5f20\u56fe\u5177\u4f53\u4ee3\u8868\u4ec0\u4e48\uff0c\u4f46\u4f60\u9700\u8981\u77e5\u9053\uff0c\u5176\u4e2d\u7684\u692d\u5706\u548c\u6b63\u65b9\u5f62\u4ee3\u8868\u8282\u70b9\uff0c\u8282\u70b9\u5c31\u662f\u4e00\u4e9b\u6570\u5b66\u51fd\u6570\uff0c\u4f60\u53ef\u4ee5\u5c06\u8282\u70b9\u5206\u7ec4\u5f62\u6210\u5404\u79cd\u6570\u5b66\u8ba1\u7b97\uff0c\u5e76\u5f97\u5230\u8f93\u51fa\u3002<\/p>\n<p>\u7bad\u5934\u4ee3\u8868\u6d41\u52a8\u5230\u5404\u4e2a\u8282\u70b9\u7684\u6570\u636e\u3002\u6240\u4ee5TensorFlow\u4e5f\u88ab\u6210\u4e3a\u6570\u636e\u6d41\u5e93\u3002<\/p>\n<p>OK\uff0c\u7b80\u4ecb\u5230\u6b64\uff0c\u4e0b\u9762\u5206\u4eab\u56db\u4e2a\u6211\u975e\u5e38\u559c\u6b22\u7684TensorFlow GitHub\u9879\u76ee\u3002<\/p>\n<p>\u9879\u76ee\u4e00\uff1aNeural Style<\/p>\n<p>\u8fd9\u662f\u6700\u9177\u7684TensorFlow GitHub\u9879\u76ee\u4e4b\u4e00\u3002\u795e\u7ecf\u98ce\u683c\u662f\u5c06\u4e00\u5f20\u7167\u7247\u7684\u98ce\u683c\u8fc1\u79fb\u5230\u53e6\u4e00\u5f20\u7167\u7247\u4e0a\u7684\u8fc7\u7a0b\uff0c\u540c\u65f6\u4fdd\u7559\u76f8\u5173\u7684\u7279\u5f20\u3002\u7b80\u5355\u7684\u6765\u8bf4\uff0c\u901a\u8fc7\u8fd9\u4e2a\u9879\u76ee\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528TensorFlow\u521b\u5efa\u81ea\u5df1\u7684Prisma\u5e94\u7528\u7a0b\u5e8f\u3002<\/p>\n<p><a href=\"https:\/\/www.zhuyanbin.com\/wp-content\/uploads\/2018\/08\/02.jpg\"><img decoding=\"async\" class=\"alignnone size-full wp-image-483 aligncenter\" src=\"https:\/\/www.zhuyanbin.com\/wp-content\/uploads\/2018\/08\/02.jpg\" alt=\"\" width=\"100%\" srcset=\"https:\/\/www.yanbin888.com\/wp-content\/uploads\/2018\/08\/02.jpg 1280w, https:\/\/www.yanbin888.com\/wp-content\/uploads\/2018\/08\/02-300x191.jpg 300w, https:\/\/www.yanbin888.com\/wp-content\/uploads\/2018\/08\/02-768x490.jpg 768w, https:\/\/www.yanbin888.com\/wp-content\/uploads\/2018\/08\/02-1024x654.jpg 1024w\" sizes=\"(max-width: 1280px) 100vw, 1280px\" \/><\/a><\/p>\n<p>\u5982\u4e0a\u56fe\u6240\u793a\uff0c\u628a\u68b5\u9ad8\u753b\u4f5c\u7684\u98ce\u683c\uff0c\u8fc1\u79fb\u5230\u4e00\u5f20\u72ee\u5b50\u7684\u7167\u7247\u4e0a\uff0c\u5c31\u5f97\u5230\u4e00\u4e2a\u661f\u7a7a\u98ce\u683c\u7684\u72ee\u5b50\u7167\u7247\uff0c\u8fd9\u5c31\u662f\u6240\u8c13\u7684\u98ce\u683c\u8fc1\u79fb\u3002\u4e0b\u9762\u518d\u5c55\u793a\u4e00\u7ec4\u8fd9\u4e2a\u9879\u76ee\u7684\u98ce\u683c\u8fc1\u79fb\uff0c\u80fd\u628a\u8fd9\u5f20\u72ee\u5b50\u7684\u7167\u7247\uff0c\u53d8\u6210\u54ea\u4e9b\u975e\u5e38\u6709\u8da3\u7684\u6548\u679c\u3002<\/p>\n<p style=\"text-align: center;\"><a href=\"https:\/\/www.zhuyanbin.com\/wp-content\/uploads\/2018\/08\/03.jpg\"><img decoding=\"async\" class=\"alignnone size-full wp-image-484\" src=\"https:\/\/www.zhuyanbin.com\/wp-content\/uploads\/2018\/08\/03.jpg\" alt=\"\" width=\"100%\" srcset=\"https:\/\/www.yanbin888.com\/wp-content\/uploads\/2018\/08\/03.jpg 1200w, https:\/\/www.yanbin888.com\/wp-content\/uploads\/2018\/08\/03-300x226.jpg 300w, https:\/\/www.yanbin888.com\/wp-content\/uploads\/2018\/08\/03-768x577.jpg 768w, https:\/\/www.yanbin888.com\/wp-content\/uploads\/2018\/08\/03-1024x770.jpg 1024w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" \/><\/a><\/p>\n<p>\u8fd9\u4e2a\u9879\u76ee\u5728\u98ce\u683c\u8fc1\u79fb\u7684\u540c\u65f6\uff0c\u8fd8\u80fd\u5bf9\u56fe\u50cf\u8fdb\u884c\u8bed\u4e49\u5206\u5272\u3002\u8fdb\u800c\u5b9e\u73b0\u5bf9\u5185\u5bb9\u7684\u524d\u666f\u3001\u80cc\u666f\u8fdb\u884c\u4e0d\u540c\u7684\u98ce\u683c\u8fc1\u79fb\u5904\u7406\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u5982\u4e0b\u56fe\u6240\u793a\uff1a<\/p>\n<p><a href=\"https:\/\/www.zhuyanbin.com\/wp-content\/uploads\/2018\/08\/04.jpg\"><img decoding=\"async\" class=\"alignnone size-full wp-image-485\" src=\"https:\/\/www.zhuyanbin.com\/wp-content\/uploads\/2018\/08\/04.jpg\" alt=\"\" width=\"100%\" srcset=\"https:\/\/www.yanbin888.com\/wp-content\/uploads\/2018\/08\/04.jpg 1688w, https:\/\/www.yanbin888.com\/wp-content\/uploads\/2018\/08\/04-300x141.jpg 300w, https:\/\/www.yanbin888.com\/wp-content\/uploads\/2018\/08\/04-768x362.jpg 768w, https:\/\/www.yanbin888.com\/wp-content\/uploads\/2018\/08\/04-1024x483.jpg 1024w\" sizes=\"(max-width: 1688px) 100vw, 1688px\" \/><\/a><\/p>\n<p>\u53e6\u5916\u8fd9\u4e2a\u7b97\u6cd5\u8fd8\u80fd\u9002\u7528\u4e8e\u89c6\u9891\u5904\u7406\u3002<\/p>\n<p style=\"text-align: center;\"><a href=\"https:\/\/www.zhuyanbin.com\/wp-content\/uploads\/2018\/08\/05.gif\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-491\" src=\"https:\/\/www.zhuyanbin.com\/wp-content\/uploads\/2018\/08\/05.gif\" alt=\"\" width=\"600\" height=\"262\" \/><\/a><\/p>\n<p>\u4e0a\u8ff0\u56fe\u7247\u5904\u7406\u4f7f\u7528\u7684\u8f6f\u786c\u4ef6\u5982\u4e0b\uff1a<\/p>\n<p>CPU: Intel Core i7-6800K@3.4GHz\u00d712<\/p>\n<p>GPU: NVIDIA GeForce GTX 1080\/PCIe\/SSE2<\/p>\n<p>OS: Linux Ubuntu 16.04.1 LTS 64-bit<\/p>\n<p>CUDA: 8.0<\/p>\n<p>python: 2.7.12<\/p>\n<p>tensorflow: 0.10.0rc<\/p>\n<p>opencv: 2.4.9.1<\/p>\n<p>GitHub\u5730\u5740\u5982\u4e0b\uff1a<\/p>\n<p>https:\/\/github.com\/cysmith\/neural-style-tf<\/p>\n<p>\u9879\u76ee\u4e8c\uff1aMozilla Deep Speech<\/p>\n<p>\u8fd9\u4e2aGitHub\u9879\u76ee\u4f7f\u7528TensorFlow\u5c06\u8bed\u97f3\u8f6c\u6362\u4e3a\u6587\u672c\u3002\u8bed\u97f3\u8f6c\u6587\u672c\u662f\u4e00\u4e2a\u70ed\u95e8\u7684\u673a\u5668\u5b66\u4e60\u9886\u57df\uff0c\u7136\u800c\u5404\u5730\u7684\u4eba\u4eec\u6709\u7740\u4e0d\u540c\u7684\u53e3\u97f3\uff0c\u8fd9\u4e5f\u662f\u4e00\u4e2a\u96be\u4ee5\u89e3\u51b3\u7684\u95ee\u9898\u3002\u4e0d\u8fc7\u4ecd\u7136\u53ef\u4ee5\u901a\u8fc7\u6df1\u5ea6\u5b66\u4e60\u5b9e\u73b0\u975e\u5e38\u4e0d\u9519\u7684\u51c6\u786e\u6027\u3002<\/p>\n<p>\u5176\u5b9e\u8fd9\u4e2a\u9879\u76ee\uff0c\u662f\u4e00\u4e2a\u57fa\u4e8e\u767e\u5ea6DeepSpeech\u67b6\u6784\u7684TensorFlow\u5b9e\u73b0\u3002\u6362\u53e5\u8bdd\u8bf4\uff0c\u8fd9\u4e2a\u9879\u76ee\u662f\u767e\u5ea6\u7684\u5185\u6838\uff0cGoogle\u7684\u5916\u8c8c\u3002<\/p>\n<p>\u767e\u5ea6\u7684\u76f8\u5173\u8bba\u6587\u5730\u5740\u5728\u6b64\uff1a<\/p>\n<p>https:\/\/arxiv.org\/abs\/1412.5567<\/p>\n<p style=\"text-align: center;\"><a href=\"https:\/\/www.zhuyanbin.com\/wp-content\/uploads\/2018\/08\/06.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-486\" src=\"https:\/\/www.zhuyanbin.com\/wp-content\/uploads\/2018\/08\/06.jpg\" alt=\"\" width=\"754\" height=\"640\" srcset=\"https:\/\/www.yanbin888.com\/wp-content\/uploads\/2018\/08\/06.jpg 754w, https:\/\/www.yanbin888.com\/wp-content\/uploads\/2018\/08\/06-300x255.jpg 300w\" sizes=\"auto, (max-width: 754px) 100vw, 754px\" \/><\/a><\/p>\n<p>DeepSpeech\u662f\u5434\u6069\u8fbe\u5e26\u9886\u767e\u5ea6\u56e2\u961f\u7814\u53d1\u51fa\u7684\u6210\u679c\uff0c\u6700\u65e9\u53d1\u5e03\u4e8e2014\u5e74\u5e95\u3002\u4eca\u5e74\u521d\uff0c\u767e\u5ea6\u57fa\u4e8eDeepSpeech2\uff0c\u5f00\u53d1\u51fa\u4e00\u6b3e\u540d\u4e3aSwiftScribe\u7684\u5e94\u7528\uff08swiftscribe.ai\uff09\uff0c\u53ef\u4ee5\u628a\u8bed\u97f3\u6587\u4ef6\u66f4\u4e3a\u5feb\u901f\u3001\u4fbf\u6377\u7684\u8f6c\u6362\u4e3a\u6587\u5b57\u3002\u76ee\u524d\u53ea\u9650\u4e8e\u82f1\u6587\u3002<\/p>\n<p>\u56de\u5230\u8fd9\u4e2a\u9879\u76ee\u3002<\/p>\n<p>\u6240\u9700\u8f6f\u4ef6\u73af\u5883\u5982\u4e0b\uff1a<\/p>\n<p>Git Large File Storage<\/p>\n<p>TensorFlow 1.0 or 1.1<\/p>\n<p>SciPy<\/p>\n<p>PyXDG<\/p>\n<p>python_speech_features (nb: deprecated)<\/p>\n<p>python sox<\/p>\n<p>pandas<\/p>\n<p>DeepSpeech native client libraries<\/p>\n<p>\u5982\u679c\u4f60\u6709\u81f3\u5c118GB\u663e\u5b58\u7684\u82f1\u4f1f\u8fbeGPU\uff0c\u5f3a\u70c8\u5efa\u8bae\u5b89\u88c5\u652f\u6301GPU\u7684TensorFlow\uff0c\u56e0\u4e3a\u4f7f\u7528GPU\u7684\u8bad\u7ec3\u6bd4CPU\u5feb\u5f97\u591a\u3002<\/p>\n<p>GitHub\u5730\u5740\u5982\u4e0b\uff1a<\/p>\n<p>https:\/\/github.com\/mozilla\/DeepSpeech<\/p>\n<p>\u9879\u76ee\u4e09\uff1a\u53e5\u5b50\u5206\u7c7b<\/p>\n<p>\u53e5\u5b50\u5206\u7c7b\u5c31\u662f\u8bc6\u522b\u53e5\u5b50\u7c7b\u578b\u7684\u8fc7\u7a0b\u3002\u4f8b\u5982\uff0c\u5bf9\u4e8e\u201c\u98df\u7269\u975e\u5e38\u7cdf\u7cd5\u201d\u8fd9\u4e2a\u53e5\u5b50\uff0c\u4f60\u53ef\u80fd\u5e0c\u671b\u5c06\u5176\u5206\u7c7b\u4e3a\u6b63\u9762\u53e5\u5b50\u6216\u8d1f\u9762\u53e5\u5b50\uff0c\u8fd9\u4e5f\u88ab\u79f0\u4e3a\u60c5\u7eea\u5206\u6790\u3002\u8fd9\u4e2a\u95ee\u9898\u7684\u96be\u70b9\u5728\u4e8e\uff1a\u53e5\u5b50\u7ed3\u6784\u5e26\u6765\u7684\u590d\u6742\u6027\u3002<\/p>\n<p>\u5229\u7528\u5377\u79ef\u795e\u7ecf\u7f51\u7edc\uff0c\u6211\u4eec\u53ef\u4ee5\u5c1d\u8bd5\u6784\u5efa\u4e00\u4e2a\u5f3a\u5927\u7684\u6587\u672c\u5206\u7c7b\u5668\u3002<\/p>\n<p><a href=\"https:\/\/www.zhuyanbin.com\/wp-content\/uploads\/2018\/08\/07.jpg\"><img decoding=\"async\" class=\"size-full wp-image-487 aligncenter\" src=\"https:\/\/www.zhuyanbin.com\/wp-content\/uploads\/2018\/08\/07.jpg\" alt=\"\" width=\"100%\" srcset=\"https:\/\/www.yanbin888.com\/wp-content\/uploads\/2018\/08\/07.jpg 1050w, https:\/\/www.yanbin888.com\/wp-content\/uploads\/2018\/08\/07-300x149.jpg 300w, https:\/\/www.yanbin888.com\/wp-content\/uploads\/2018\/08\/07-768x382.jpg 768w, https:\/\/www.yanbin888.com\/wp-content\/uploads\/2018\/08\/07-1024x509.jpg 1024w\" sizes=\"(max-width: 1050px) 100vw, 1050px\" \/><\/a><\/p>\n<p>\u8fd9\u91cc\u4ecb\u7ecd\u7684\u9879\u76ee\uff0c\u662fYoon Kim\u8bba\u6587\u300aConvolutional Neural Networks for Sentence Classification\uff08\u4f7f\u7528\u5377\u79ef\u795e\u7ecf\u7f51\u7edc\u8fdb\u884c\u53e5\u5b50\u5206\u7c7b\uff09\u300b\u7684\u7b80\u5355\u5b9e\u73b0\u3002\u8fd9\u4e2a\u8bba\u6587\u7684\u5730\u5740\u5982\u4e0b\uff1a<\/p>\n<p>https:\/\/arxiv.org\/abs\/1408.5882<\/p>\n<p>\u901a\u8fc7\u4e00\u4e2a\u7b80\u5355\u7684CNN\u5377\u79ef\u795e\u7ecf\u7f51\u7edc\uff0c\u53ea\u8fdb\u884c\u5f88\u5c11\u7684\u8d85\u53c2\u6570\u8c03\u6574\u548c\u9759\u6001\u77e2\u91cf\uff0c\u5c31\u53ef\u4ee5\u5f97\u5230\u51fa\u8272\u7684\u53e5\u5b50\u5206\u7c7b\u7ed3\u679c\u3002<\/p>\n<p>\u6240\u9700\u8f6f\u4ef6\u73af\u5883\u5982\u4e0b\uff1a<\/p>\n<p>Python 3<\/p>\n<p>Tensorflow &gt; 0.12<\/p>\n<p>Numpy<\/p>\n<p>GitHub\u5730\u5740\u5982\u4e0b\uff1a<\/p>\n<p>https:\/\/github.com\/dennybritz\/cnn-text-classification-tf<\/p>\n<p>\u9879\u76ee\u56db\uff1a\u56fe\u50cf\u5206\u7c7b\/\u7269\u4f53\u8bc6\u522b<\/p>\n<p>\u56fe\u50cf\u5206\u7c7b\uff0c\u4e5f\u5c31\u662f\u8bad\u7ec3\u7cfb\u7edf\u8bc6\u522b\u732b\u732b\u72d7\u72d7\uff0c\u6216\u8005\u8f66\u9053\u3001\u6d77\u6ee9\u3001\u5929\u9645\u7ebf\u7b49\u573a\u666f\u3002\u8ba1\u7b97\u673a\u89c6\u89c9\u662f\u4e00\u4e2a\u8303\u56f4\u5de8\u5927\u7684\u9886\u57df\uff0c\u4ece\u9762\u90e8\u8bc6\u522b\u5230\u60c5\u611f\u8bc6\u522b\uff0c\u751a\u81f3\u53ef\u4ee5\u8fdb\u884c\u89c6\u89c9\u6c14\u4f53\u6cc4\u6f0f\u68c0\u6d4b\u3002\u867d\u7136\u5b9e\u73b0\u6d41\u7a0b\u5404\u5f02\uff0c\u4f46\u5e95\u5c42\u7cfb\u7edf\u662f\u76f8\u901a\u7684\u3002<\/p>\n<p>\u6240\u4ee5\u4f5c\u8005\u521b\u5efa\u4e86\u4e00\u4e2aTensorFlow GitHub\u5e93\uff0c\u5176\u4e2d\u5305\u62ec\u4e24\u4e2a\u76f8\u4e92\u5173\u8054\u7684\u90e8\u5206\u3002\u7b2c\u4e00\u90e8\u5206\uff1a\u80fd\u591f\u8bc6\u522b1000\u4e2a\u5bf9\u8c61\u7684TensorFlow\u56fe\u50cf\u5206\u7c7b\u5668\u3002\u7b2c\u4e8c\u90e8\u5206\uff1a\u521b\u5efa\u5e76\u8bad\u7ec3\u4e00\u4e2a\u5168\u65b0\u7684\u56fe\u50cf\u5206\u7c7b\u5668\u3002<\/p>\n<p>\u6211\u4eec\u5148\u6765\u770b\u770b\u7b2c\u4e00\u90e8\u5206\u3002<\/p>\n<p><a href=\"https:\/\/www.zhuyanbin.com\/wp-content\/uploads\/2018\/08\/08.gif\"><img decoding=\"async\" class=\"alignnone size-full wp-image-488\" src=\"https:\/\/www.zhuyanbin.com\/wp-content\/uploads\/2018\/08\/08.gif\" alt=\"\" width=\"100%\" \/><\/a><\/p>\n<p>Google\u7684TensorFlow\u56fe\u50cf\u8bc6\u522b\u7cfb\u7edf\u662f\u76ee\u524d\u6700\u51c6\u786e\u7684\u56fe\u50cf\u5206\u7c7b\u8f6f\u4ef6\u3002\u6240\u8c13\u56fe\u50cf\u8bc6\u522b\uff0c\u5c31\u662f\u5bf9\u56fe\u7247\u4e2d\u7684\u5185\u5bb9\u8fdb\u884c\u8bc6\u522b\uff0c\u7136\u800c\u8fd9\u5e76\u975e\u5bf9\u4efb\u610f\u56fe\u7247\u90fd\u80fd\u8bc6\u522b\u3002<\/p>\n<p>\u53ea\u6709\u88ab\u8bad\u7ec3\u8fc7\u7684\u5bf9\u8c61\uff0c\u7cfb\u7edf\u624d\u80fd\u8bc6\u522b\u3002\u4f8b\u5982\uff0c\u6211\u4eec\u7528\u4e09\u4e2a\u7c7b\u578b\u8bad\u7ec3\u5206\u7c7b\u5668\uff1a\u732b\u3001\u72d7\u548c\u725b\u3002\u4e09\u4e2a\u5206\u7c7b\u5668\u53ea\u80fd\u8bc6\u522b\u76f8\u5e94\u7c7b\u522b\u4e2d\u7684\u4e00\u4e2a\u3002\u5982\u679c\u7ed9\u51fa\u4e00\u5f20\u9a86\u9a7c\u7684\u56fe\u7247\u4f1a\u600e\u6837\uff1f\u56fe\u7247\u4ecd\u4f1a\u901a\u8fc7\u4e00\u4e2a\u5206\u7c7b\u5668\uff0c\u4f46\u662f\u7f6e\u4fe1\u7387\u4f1a\u975e\u5e38\u7684\u4f4e\u3002<\/p>\n<p>\u5982\u4f55\u5feb\u901f\u521b\u5efa\u4e00\u4e2aTensorFlow\u56fe\u50cf\u5206\u7c7b\u5668\uff1f\u53ea\u9700\u8981\u7b80\u5355\u7684\u4e09\u6b65\u3002\u5f53\u7136\u524d\u63d0\u662f\u4f60\u5df2\u7ecf\u88c5\u597d\u4e86TensorFlow\uff0c\u800c\u4e14\u61c2\u7f16\u7a0b\u3001\u4f1a\u7528Python\u3002<\/p>\n<p>\u7b2c\u4e00\u6b65\uff1a\u4e0b\u8f7d<\/p>\n<p>\u4e0b\u8f7d\u9884\u8bad\u7ec3\u7684\u6a21\u578b\u3001\u56fe\u7247\u548c\u811a\u672c\u3002\u4f7f\u7528\u5982\u4e0b\u547d\u4ee4\u5373\u53ef\u3002<\/p>\n<p>git clone https:\/\/github.com\/akshaypai\/tfClassifiercd tfClassifier<\/p>\n<p>\u7b2c\u4e8c\u6b65\uff1a\u8fd0\u884c\u811a\u672c\u627e\u5230\u6700\u4f73\u9884\u6d4b<\/p>\n<p>\u7ed9\u5b9a\u4e00\u4e2a\u56fe\u7247\uff0c\u8fd0\u884c\u811a\u672c\u6765\u8fdb\u884c\u5206\u7c7b\u3002\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c\u4f1a\u663e\u793a\u6700\u4f73\u9884\u6d4b\u3002<\/p>\n<p>Python classifier.py &#8211;image_file file_path_to_image<\/p>\n<p>\u4e3a\u4e86\u83b7\u5f97top n\u5206\u7c7b\uff0c\u53ef\u4ee5\u4f7f\u7528\u5982\u4e0b\u53c2\u6570\u3002<\/p>\n<p>Python classifier.py &#8211;image_file file_path_to_image &#8211;num_top_predictions number_of_top_results<\/p>\n<p>\u793a\u4f8b\uff1a\u6bd4\u65b9\u6211\u4eec\u7ed9\u51fa\u8fd9\u6837\u4e00\u5f20\u56fe\u7247\u3002<\/p>\n<p style=\"text-align: center;\"><a href=\"https:\/\/www.zhuyanbin.com\/wp-content\/uploads\/2018\/08\/09.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-489\" src=\"https:\/\/www.zhuyanbin.com\/wp-content\/uploads\/2018\/08\/09.jpg\" alt=\"\" width=\"550\" height=\"420\" srcset=\"https:\/\/www.yanbin888.com\/wp-content\/uploads\/2018\/08\/09.jpg 550w, https:\/\/www.yanbin888.com\/wp-content\/uploads\/2018\/08\/09-300x229.jpg 300w\" sizes=\"auto, (max-width: 550px) 100vw, 550px\" \/><\/a><\/p>\n<p>python classifier.py &#8211;image_file ~\/Pictures\/fruit.jpgpomegranate (score = 0.98216)<\/p>\n<p>\u5206\u7c7b\u5668\u8868\u793a\uff1a\u8fd9\u662f\u77f3\u69b4\uff0c\u51c6\u786e\u738798%\u3002<\/p>\n<p>\u7b2c\u4e09\u6b65\uff1a\u8fd0\u884c\u811a\u672c\u83b7\u5f97top n\u8bc6\u522b\u5206\u7c7b<\/p>\n<p>\u73b0\u5728\u6211\u4eec\u5c1d\u8bd5\u7ed9\u51fa\u4e00\u4e2a\u5177\u6709\u66f4\u591a\u5c5e\u6027\u7684\u56fe\u50cf\uff0c\u5982\u4e0b\u56fe\u7684\u623f\u5b50\u3002<\/p>\n<p style=\"text-align: center;\"><a href=\"https:\/\/www.zhuyanbin.com\/wp-content\/uploads\/2018\/08\/10.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-490\" src=\"https:\/\/www.zhuyanbin.com\/wp-content\/uploads\/2018\/08\/10.jpg\" alt=\"\" width=\"259\" height=\"195\" \/><\/a><\/p>\n<p>python classifier.py &#8211;image_file ~\/Pictures\/house.jpg &#8211;num_top_predictions 5picket fence, paling (score = 0.95750)worm fence, snake fence, snake-rail fence, Virginia fence (score = 0.03615)beacon, lighthouse, beacon light, pharos (score = 0.00018)boathouse (score = 0.00013)patio, terrace (score = 0.00007)<\/p>\n<p>\u4ece\u4e0a\u9762\u7684\u7ed3\u679c\u53ef\u4ee5\u770b\u51fa\uff0c\u5206\u7c7b\u5668\u4ee595%\u7684\u53ef\u80fd\u6027\u9884\u6d4b\u56fe\u7247\u4e2d\u6709\u4e00\u4e2a\u6805\u680f\uff0c\u53e6\u5916\u5206\u7c7b\u5668\u8fd8\u53d1\u73b0\u4e86\u5176\u4ed6\u56f4\u680f\u3001\u5ead\u9662\u3001\u9732\u53f0\u7b49\u3002<\/p>\n<p>\u5230\u6b64\u4e3a\u6b62\uff0c\u4f60\u5df2\u7ecf\u5b66\u5230\u5982\u4f55\u8bbe\u7f6eTensorFlow\u56fe\u50cf\u8bc6\u522b\u7cfb\u7edf\u3002\u867d\u7136\uff0c\u8fd9\u4e2a\u7cfb\u7edf\u88ab\u9650\u5236\u5728\u9884\u8bad\u7ec3\u6a21\u578b\u7684\u51e0\u4e2a\u5206\u7c7b\u5668\u4e4b\u95f4\u3002<\/p>\n<p>\u90a3\u4e48\u6211\u4eec\u63a5\u4e0b\u6765\u770b\u770b\u7b2c\u4e8c\u90e8\u5206\uff0c\u5982\u4f55\u589e\u52a0\u4e00\u4e9b\u65b0\u7684\u5206\u7c7b\u5668\u3002<\/p>\n<p>\u4e5f\u662f\u4e09\u4e2a\u6b65\u9aa4\u3002<\/p>\n<p>\u7b2c\u4e00\u6b65\uff1a\u4e0b\u8f7d\u9884\u8bad\u7ec3\u6a21\u578b\u4ee5\u53ca\u6240\u9700\u811a\u672c<\/p>\n<p>\u6211\u5df2\u7ecf\u628a\u5168\u90e8\u6240\u9700\u7684\u6587\u4ef6\u6574\u5408\u8fdb\u4e00\u4e2agit\u4ed3\u5e93\u91cc\u3002\u4f7f\u7528\u4e0b\u9762\u7684\u547d\u4ee4\u53ef\u4ee5\u4e0b\u8f7d\u3002<\/p>\n<p>git clone https:\/\/github.com\/akshaypai\/tfClassifiercd tfClassifier<\/p>\n<p>\u7b2c\u4e8c\u6b65\uff1a\u8bbe\u7f6e\u56fe\u50cf\u6587\u4ef6\u5939<\/p>\n<p>\u8fd9\u4e2a\u6b65\u9aa4\u7528\u4e8e\u8bbe\u7f6e\u6587\u4ef6\u5939\u7ed3\u6784\uff0c\u4ee5\u4fbf\u6570\u636e\u6d41\u56fe\u53ef\u4ee5\u7b80\u5355\u5730\u62fe\u53d6\u5206\u7c7b\u3002\u5047\u8bbe\uff0c\u4f60\u60f3\u91cd\u65b0\u8bad\u7ec3\u4e94\u79cd\u65b0\u7684\u82b1\u6735\u5206\u7c7b\u5668\uff1a\u73ab\u7470\u3001\u90c1\u91d1\u9999\u3001\u84b2\u516c\u82f1\u3001\u4e94\u6708\u82b1\u548c\u4e07\u5bff\u83ca\uff0c\u90a3\u4e48\u9700\u8981\u5982\u4e0b\u7684\u4e09\u4e2a\u6b65\u9aa4\u6765\u521b\u5efa\u76f8\u5e94\u7684\u6587\u4ef6\u5939\u7ed3\u6784\uff1a<\/p>\n<p>1\u3001\u4e3a\u6bcf\u79cd\u82b1\u578b\u521b\u5efa\u4e00\u4e2a\u6587\u4ef6\u5939\uff0c\u6587\u4ef6\u5939\u7684\u540d\u79f0\u5c31\u662f\u7c7b\u578b\u7684\u540d\u79f0<\/p>\n<p>2\u3001\u5c06\u82b1\u7684\u6240\u6709\u56fe\u50cf\u6dfb\u52a0\u5230\u5404\u81ea\u7684\u6587\u4ef6\u5939\u4e2d\uff0c\u6240\u6709\u7684\u73ab\u7470\u653e\u5165\u73ab\u7470\u82b1\u6587\u4ef6\u5939<\/p>\n<p>3\u3001\u5c06\u6240\u6709\u7684\u6587\u4ef6\u5939\uff0c\u6dfb\u52a0\u5230\u4e00\u4e2a\u7236\u6587\u4ef6\u5939\u4e2d\uff0c\u53ef\u4ee5\u547d\u540d\u4e3a\uff1a\u82b1<\/p>\n<p>\u7136\u540e\u6211\u4eec\u5c31\u5f97\u5230\u5982\u4e0b\u7684\u7ed3\u6784\uff1a<\/p>\n<p>~\/flowers~\/flowers\/roses\/img1.jpg~\/flowers\/roses\/img2.jpg&#8230;~\/flowers\/tulips\/tulips_img1.jpg~\/flowers\/tulips\/tulips_img2.jpg~\/flowers\/tulips\/tulips_img3.jpg&#8230;<\/p>\n<p>\u8fd9\u6837\uff0c\u6587\u4ef6\u5939\u7ed3\u6784\u5df2\u7ecfOK\u4e86\u3002<\/p>\n<p>\u7b2c\u4e09\u6b65\uff1a\u8fd0\u884c\u9884\u8bad\u7ec3\u811a\u672c<\/p>\n<p>\u4f7f\u7528\u5982\u4e0b\u547d\u4ee4\u8fd0\u884c\u811a\u672c\u3002<\/p>\n<p>python retrain.py &#8211;model_dir .\/inception &#8211;image_dir ~\/flowers &#8211;output_graph .\/output &#8211;how_many_training_steps 500<\/p>\n<p>\u90e8\u5206\u547d\u4ee4\u884c\u53c2\u6570\uff1a<\/p>\n<p>-model_dir\u8fd9\u4e2a\u53c2\u6570\u7ed9\u51fa\u4e86\u9884\u8bad\u7ec3\u6a21\u578b\u7684\u4f4d\u7f6e\u3002<\/p>\n<p>-image_dir\u5728\u6b65\u9aa4\u4e8c\u4e2d\u521b\u5efa\u7684\u6587\u4ef6\u5939\u8def\u5f84<\/p>\n<p>-output_graph\u5b58\u50a8\u65b0\u8bad\u7ec3\u56fe\u7684\u4f4d\u7f6e<\/p>\n<p>-how_many_training_steps\u8fd9\u4ee3\u8868\u8981\u6267\u884c\u7684\u8fed\u4ee3\u6b21\u6570\uff0c\u9ed8\u8ba4\u4e3a4000<\/p>\n<p>\u597d\u4e86\uff0c\u4ee5\u4e0a\u5c31\u662f\u5982\u4f55\u91cd\u65b0\u8bad\u7ec3\u4e00\u4e2aTensorFlow Inception\u6a21\u578b\u3002\u4e00\u65e6\u4f60\u6709\u4e86\u6a21\u578b\uff0c\u5c31\u80fd\u5f00\u59cb\u7528\u6765\u8fdb\u884c\u5206\u7c7b\u5904\u7406\u3002<\/p>\n<p>\u7ed3\u8bba<\/p>\n<p>\u6211\u5e0c\u671b\u4f60\u4eec\u4e5f\u80fd\u4f53\u4f1a\u5230\u4e0a\u8ff0\u8fd9\u4e9b\u9879\u76ee\u7684\u7cbe\u5f69\u4e4b\u5904\u3002\u5b66\u4e60\u4e00\u4ef6\u4e8b\u6700\u597d\u7684\u65b9\u6cd5\u5c31\u662f\u52a8\u624b\u53bb\u505a\u3002\u5982\u679c\u4f60\u8fd8\u6709\u66f4\u503c\u5f97\u63a8\u8350\u7684TensorFlow GitHub\u9879\u76ee\uff0c\u53ef\u4ee5\u7559\u8a00\u7ed9\u6211\u4eec\uff0c\u8ba9\u66f4\u591a\u7684\u4eba\u770b\u5230\u3002\u4eca\u5929\u5c31\u5148\u5230\u8fd9\u91cc\u5427\u3002\u4f11\u606f\uff0c\u4f11\u606f\u4e00\u4e0b~<\/p>\n<p>&nbsp;<\/p>\n<p>link:\u00a0<a href=\"http:\/\/www.techweb.com.cn\/news\/2017-07-31\/2566452.shtml\">http:\/\/www.techweb.com.cn\/news\/2017-07-31\/2566452.shtml<\/a><\/p>\n<p><audio style=\"display: none;\" controls=\"controls\"><\/audio><\/p>\n<p><audio style=\"display: none;\" controls=\"controls\"><\/audio><\/p>\n<p><audio style=\"display: none;\" controls=\"controls\"><\/audio><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u95ee\u8015 \u7f16\u8bd1\u81ea Source Dexter \u4f5c\u8005\u7b80\u4ecb\uff1aakshay pai\uff0c\u6570\u636e\u79d1\u5b66\u5de5\u7a0b\u5e08\uff0c\u70ed\u7231\u7814\u7a76\u673a\u5668\u5b66\u4e60\u95ee\u9898 <span class=\"ellipsis\">&hellip;<\/span> <span class=\"more-link-wrap\"><a href=\"https:\/\/www.yanbin888.com\/?p=436\" class=\"more-link\"><span>Read More &rarr;<\/span><\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[47],"tags":[48],"class_list":["post-436","post","type-post","status-publish","format-standard","hentry","category-tensorflow","tag-tensorflow"],"_links":{"self":[{"href":"https:\/\/www.yanbin888.com\/index.php?rest_route=\/wp\/v2\/posts\/436","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.yanbin888.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.yanbin888.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.yanbin888.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.yanbin888.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=436"}],"version-history":[{"count":5,"href":"https:\/\/www.yanbin888.com\/index.php?rest_route=\/wp\/v2\/posts\/436\/revisions"}],"predecessor-version":[{"id":493,"href":"https:\/\/www.yanbin888.com\/index.php?rest_route=\/wp\/v2\/posts\/436\/revisions\/493"}],"wp:attachment":[{"href":"https:\/\/www.yanbin888.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=436"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yanbin888.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=436"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yanbin888.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=436"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}