{"id":72,"date":"2019-04-07T15:36:06","date_gmt":"2019-04-07T06:36:06","guid":{"rendered":"https:\/\/www.grass-moss.com\/blog\/?p=72"},"modified":"2019-05-11T16:09:03","modified_gmt":"2019-05-11T07:09:03","slug":"unity_ml_agent","status":"publish","type":"post","link":"https:\/\/www.grass-moss.com\/blog\/unity_ml_agent","title":{"rendered":"Unity\u3067\u6a5f\u68b0\u5b66\u7fd2\u3000ML-Agents\u3000\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3068\u8a2d\u5b9a"},"content":{"rendered":"<h2>Unity ML-Agents<\/h2>\n<p>\u307b\u3068\u3093\u3069\u306e\u4e8b\u67c4\u306f\u3001\u4eba\u304c\u8003\u3048\u308b\u3088\u308a\u3082\u6a5f\u68b0\u304c\u8003\u3048\u305f\u65b9\u304c\u65e9\u3044\u3093\u3058\u3083\u306a\u3044\u304b<\/p>\n<p>\u3068\u601d\u3063\u3066\u3044\u308bikosami\u3067\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001Unity\u3067\u6a5f\u68b0\u5b66\u7fd2\u3092\u884c\u3046\u305f\u3081\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u300cML-Agent\u300d\u306e\u8a2d\u5b9a\u65b9\u6cd5\u3092\u8aac\u660e\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u203b\u3053\u306e\u8a18\u4e8b\u306f\u3001\u3082\u3068\u3082\u3068\u81ea\u5206\u7528\u306b\u307e\u3068\u3081\u305f\u3060\u3051\u306e\u90e8\u5206\u304c\u3042\u308b\u305f\u3081\u3001\u30b9\u30af\u30b7\u30e7\u304c\u5168\u7136\u306a\u3044\u306a\u3069\u3001\u5c11\u3057\u96d1\u306a\u90e8\u5206\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n\u3059\u3079\u3066\u3053\u305f\u3048\u3089\u308c\u308b\u304b\u308f\u304b\u308a\u307e\u305b\u3093\u304c\u3001\u30b3\u30e1\u30f3\u30c8\u306b\u7591\u554f\u70b9\u66f8\u3044\u3066\u3082\u3089\u3048\u308c\u3070\u3001\u5c11\u3057\u306f\u7b54\u3048\u3089\u308c\u308b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<h2>\u3053\u306e\u8a18\u4e8b\u306e\u5185\u5bb9\u306b\u3064\u3044\u3066<\/h2>\n<p>\u3053\u306e\u8a18\u4e8b\u306e\u5185\u5bb9\u306f\u3001\u57fa\u672c\u7684\u306b\u3001\u516c\u5f0f\u306e\u8aac\u660e\u3092\u65e5\u672c\u8a9e\u5316\u3057\u305f\u3088\u3046\u306a\u3082\u306e\u3067\u3059\u3002<br \/>\n\u3082\u3057\u4e0d\u8db3\u304c\u3042\u308c\u3070\u3001\u516c\u5f0f\u3092\u898b\u308b\u3068\u308f\u304b\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<p><a href=\"https:\/\/github.com\/Unity-Technologies\/ml-agents\/blob\/master\/docs\/Installation.md\">https:\/\/github.com\/Unity-Technologies\/ml-agents\/blob\/master\/docs\/Installation.md<\/a><\/p>\n<p>\u307e\u305f\u3001Windows\u5411\u3051\u306e\u8a18\u4e8b\u306a\u306e\u3067\u3001Mac\u306e\u65b9\u3082\u3001\u305d\u306e\u307e\u307e\u516c\u5f0f\u3078Go\u3067\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<h2>Unity\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<p>Unity 2017.4\u4ee5\u964d\u304c\u5fc5\u8981\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>Unity2019\u306a\u3069\u3001\u65b0\u3057\u3044\u3082\u306e\u3082\u3042\u308a\u307e\u3059\u304c\u3001\u5b89\u5b9a\u677f\u304c\u304a\u3059\u3059\u3081\u3067\u3059\u3002<\/p>\n<p><a href=\"https:\/\/unity3d.com\/unity\/qa\/lts-releases\">https:\/\/unity3d.com\/unity\/qa\/lts-releases<\/a><\/p>\n<p>\u306a\u304b\u3063\u305f\u3089\u3069\u3046\u306a\u308b\u306e\u304b\u306f\u8a66\u3057\u3066\u3044\u307e\u305b\u3093\u304c\u3001Linux Build Support\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<h2>Anaconda\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9<\/h2>\n<p>Windows\u7528\u306eAnaconda\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<br \/>\n<a href=\"https:\/\/www.anaconda.com\/distribution\/#windows\">https:\/\/www.anaconda.com\/distribution\/#windows<\/a><\/p>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6642\u306b\u3001Advanced Options\u3067<br \/>\nRegister Anaconda as my default Python 3.6\u306b\u30c1\u30a7\u30c3\u30af\u3092\u5165\u308c\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>&nbsp;<\/p>\n<h2>Anaconda navigator\u3092\u958b\u304f<\/h2>\n<p>Windows\u306e\u691c\u7d22\u30d0\u30fc\u304b\u3089anaconda navigator\u3092\u958b\u3044\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\n\u6b63\u5e38\u306b\u958b\u304f\u3053\u3068\u304c\u3067\u304d\u308c\u3070\u3001\u74b0\u5883\u5909\u6570\u306a\u3069\u304c\u6b63\u5e38\u306b\u901a\u3063\u3066\u3044\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n<p>\u3082\u3057\u958b\u3051\u306a\u3051\u308c\u3070Windows\u306e\u691c\u7d22\u30d0\u30fc\u304b\u3089\u300c\u74b0\u5883\u5909\u6570\u3092\u7de8\u96c6\u300d\u3067\u4ee5\u4e0b\u3092\u8ffd\u52a0\u3057\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\n%UserProfile%\\Anaconda3\\Scripts<br \/>\n%UserProfile%\\Anaconda3\\Scripts\\conda.exe<br \/>\n%UserProfile%\\Anaconda3<br \/>\n%UserProfile%\\Anaconda3\\python.exe<\/p>\n<h2>Anaconda Prompt\u3092\u958b\u304f<\/h2>\n<p>\u3053\u308c\u306f\u3001\u8a2d\u5b9a\u3060\u3051\u3067\u306a\u304f\u3001\u5b9f\u969b\u306e\u6a5f\u68b0\u5b66\u7fd2\u6642\u306b\u3082\u4f7f\u7528\u3059\u308b\u3001\u30b3\u30de\u30f3\u30c9\u30d7\u30ed\u30f3\u30d7\u30c8\u307f\u305f\u3044\u306a\u3082\u306e\u3067\u3059\u3002<\/p>\n<p>Windows\u306e\u691c\u7d22\u30d0\u30fc\u304b\u3089Anaconda Prompt\u3067\u691c\u7d22\u3059\u308c\u3070\u3067\u3066\u304d\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<h2>\u65b0\u3057\u3044\u30b3\u30f3\u30c0\u74b0\u5883\u306e\u8a2d\u5b9a<\/h2>\n<p>Anaconda Prompt\u3067\u4e0b\u8a18\u306e\u30b3\u30de\u30f3\u30c9<\/p>\n<p>conda create -n ml-agents python=3.6<\/p>\n<p>Proceed([y]\/n)? \u3068\u805e\u304b\u308c\u305f\u3089\u3001y\u306b\u3059\u308b\u3002<br \/>\n\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u304c\u59cb\u307e\u308a\u307e\u3059\u3002<\/p>\n<h2>ml-agents\u3092\u6709\u52b9\u5316<\/h2>\n<p>\u6709\u52b9\u5316\u306f\u5b9f\u969b\u306e\u6a5f\u68b0\u5b66\u7fd2\u6642\u306b\u3082\u3001\u6bce\u56de\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u3082\u306e\u3067\u3059\u3002<\/p>\n<p>Anaconda Prompt\u3067\u4e0b\u8a18\u306e\u30b3\u30de\u30f3\u30c9<br \/>\nactivate ml-agents<\/p>\n<p>&nbsp;<\/p>\n<h2>tensorflow\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<p>Anaconda Prompt\u3067\u4e0b\u8a18\u306e\u30b3\u30de\u30f3\u30c9<br \/>\npip install tensorflow==1.7.1<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"73\" data-permalink=\"https:\/\/www.grass-moss.com\/blog\/unity_ml_agent\/active\" data-orig-file=\"https:\/\/i0.wp.com\/www.grass-moss.com\/blog\/wp-content\/uploads\/2019\/04\/active.png?fit=960%2C157&amp;ssl=1\" data-orig-size=\"960,157\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"active\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/www.grass-moss.com\/blog\/wp-content\/uploads\/2019\/04\/active.png?fit=300%2C49&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/www.grass-moss.com\/blog\/wp-content\/uploads\/2019\/04\/active.png?fit=920%2C150&amp;ssl=1\" tabindex=\"0\" role=\"button\" class=\"alignnone size-full wp-image-73\" src=\"https:\/\/i0.wp.com\/www.grass-moss.com\/blog\/wp-content\/uploads\/2019\/04\/active.png?resize=920%2C150&#038;ssl=1\" alt=\"\" width=\"920\" height=\"150\" srcset=\"https:\/\/i0.wp.com\/www.grass-moss.com\/blog\/wp-content\/uploads\/2019\/04\/active.png?w=960&amp;ssl=1 960w, https:\/\/i0.wp.com\/www.grass-moss.com\/blog\/wp-content\/uploads\/2019\/04\/active.png?resize=300%2C49&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.grass-moss.com\/blog\/wp-content\/uploads\/2019\/04\/active.png?resize=768%2C126&amp;ssl=1 768w\" sizes=\"auto, (max-width: 920px) 100vw, 920px\" \/><\/p>\n<p>&nbsp;<\/p>\n<h2>UnitySDK\u3092\u5165\u624b<\/h2>\n<p>UnitySDK\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3001\u3082\u3057\u304f\u306fgit\u304b\u3089\u5165\u624b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>https:\/\/github.com\/Unity-Technologies\/ml-agents\/archive\/master.zip<\/p>\n<p>git clone https:\/\/github.com\/Unity-Technologies\/ml-agents.git<\/p>\n<p>&nbsp;<\/p>\n<p>\u3053\u308c\u306b\u306f\u3001\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3060\u3051\u3067\u306a\u304f<br \/>\n\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u305f\u3081\u306e\u3082\u306e\u306a\u3069\u3082\u5165\u3063\u3066\u3044\u308b\u306e\u3067\u3001\u5fc5\u305a\u5fc5\u8981\u3067\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<h2>Python\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<p>Anaconda Prompt\u3067\u4e0b\u8a18\u306e\u30b3\u30de\u30f3\u30c9<br \/>\ncd ml-agents\u306e\u4e2d\u306b\u3042\u308b\u3001<span style=\"color: #ff0000;\"><strong>\u3082\u3046\u4e00\u3064\u306eml-agents<\/strong><\/span>\u306e\u30d1\u30b9<br \/>\n(\u4f8b\u3000cd C:\\Downloads\\ml-agents\\ml-agents)<\/p>\n<p>pip install -e .<\/p>\n<p>\u30ad\u30e3\u30c3\u30b7\u30e5\u3067\u4f55\u304b\u304a\u304b\u3057\u3044\u5834\u5408\u306f\u3001<br \/>\npip install -e . &#8211;no-cache-dir<\/p>\n<h2>GPU\u8a2d\u5b9a<\/h2>\n<p>GPU\u306f\u300cCUDA v9.0\u3068cuDNN v7.0.5\u300d\u306b\u306e\u307f\u5bfe\u5fdc\u3057\u3066\u3044\u308b\u3089\u3057\u3044<br \/>\n\u81ea\u5206\u306f\u5bfe\u5fdc\u3057\u3066\u3044\u306a\u3044\u306e\u3067\u3001\u3067\u304d\u306a\u304b\u3063\u305f\u306e\u3068\u3001\u306a\u304f\u3066\u3082\u52d5\u304f\u306e\u3067\u7701\u7565<\/p>\n<p>&nbsp;<\/p>\n<h2>\u8a2d\u5b9a\u5b8c\u4e86<\/h2>\n<p>\u3068\u308a\u3042\u3048\u305a\u3001\u3053\u308c\u3067\u8a2d\u5b9a\u81ea\u4f53\u306f\u5b8c\u4e86\u3067\u3059\u3002<\/p>\n<p>\u81ea\u5206\u304c\u3084\u3063\u305f\u6642\u306f\u3001\u306a\u305c\u304b\u52d5\u304b\u306a\u304b\u3063\u305f\u306e\u3067\u3059\u304c\u3001\u518d\u8d77\u52d5\u3057\u305f\u3089\u52d5\u3044\u305f\u306e\u3067<\/p>\n<p>\u3053\u3053\u307e\u3067\u7d42\u308f\u3063\u305f\u3089\u518d\u8d77\u52d5\u306f\u5fc5\u9808\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u6b21\u56de\u306e\u8a18\u4e8b\u3067\u3001\u4f7f\u3044\u65b9\u3092\u8aac\u660e\u3057\u307e\u3059\u3002<br \/>\n\u3082\u3046\u3057\u3070\u3089\u304f\u304a\u5f85\u3061\u304f\u3060\u3055\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Unity ML-Agents \u307b\u3068\u3093\u3069\u306e\u4e8b\u67c4\u306f\u3001\u4eba\u304c\u8003\u3048\u308b\u3088\u308a\u3082\u6a5f\u68b0\u304c\u8003\u3048\u305f\u65b9\u304c\u65e9\u3044\u3093\u3058\u3083\u306a\u3044\u304b \u3068\u601d\u3063\u3066\u3044\u308bikosami\u3067\u3059\u3002 &nbsp; \u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001Unity\u3067\u6a5f\u68b0\u5b66\u7fd2\u3092\u884c\u3046\u305f\u3081\u306e\u30e9\u30a4\u30d6 &#8230; <\/p>\n","protected":false},"author":1,"featured_media":131,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false},"version":2}},"categories":[2],"tags":[],"class_list":["post-72","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-unity"],"jetpack_publicize_connections":[],"aioseo_notices":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/www.grass-moss.com\/blog\/wp-content\/uploads\/2019\/05\/unity-icon.png?fit=255%2C255&ssl=1","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/paJ1IJ-1a","jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/www.grass-moss.com\/blog\/wp-json\/wp\/v2\/posts\/72","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.grass-moss.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.grass-moss.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.grass-moss.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.grass-moss.com\/blog\/wp-json\/wp\/v2\/comments?post=72"}],"version-history":[{"count":2,"href":"https:\/\/www.grass-moss.com\/blog\/wp-json\/wp\/v2\/posts\/72\/revisions"}],"predecessor-version":[{"id":75,"href":"https:\/\/www.grass-moss.com\/blog\/wp-json\/wp\/v2\/posts\/72\/revisions\/75"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.grass-moss.com\/blog\/wp-json\/wp\/v2\/media\/131"}],"wp:attachment":[{"href":"https:\/\/www.grass-moss.com\/blog\/wp-json\/wp\/v2\/media?parent=72"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.grass-moss.com\/blog\/wp-json\/wp\/v2\/categories?post=72"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.grass-moss.com\/blog\/wp-json\/wp\/v2\/tags?post=72"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}