{"id":10389,"date":"2023-02-25T13:00:39","date_gmt":"2023-02-25T04:00:39","guid":{"rendered":"https:\/\/tetsumag.com\/?p=10389"},"modified":"2026-08-01T13:46:28","modified_gmt":"2026-08-01T04:46:28","slug":"310","status":"publish","type":"post","link":"https:\/\/tetsumag.com\/blog\/2023\/02\/25\/310\/","title":{"rendered":"\u3010YOLO\u3011\u7c21\u6613\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u306b\u3064\u3044\u3066\u3010\u7269\u4f53\u691c\u77e5\u3011"},"content":{"rendered":"\n<p>\u7269\u4f53\u691c\u77e5AI\u306e\u7cbe\u5ea6\u3092\u5411\u4e0a\u3055\u305b\u308b\u306b\u306f\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u30c7\u30fc\u30bf\u91cf\u3092\u5897\u3084\u3059\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u5fc5\u8981\u306a\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u30c7\u30fc\u30bf\u306f\u5834\u5408\u306b\u3088\u3063\u3066\u306f\u6570\u5343\u679a\u5fc5\u8981\u306a\u5834\u5408\u3082\u73cd\u3057\u304f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>\u7c21\u6613\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u3068\u306f\u3042\u308b\u7a0b\u5ea6\u7cbe\u5ea6\u304c\u51fa\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u6bb5\u968e\u3067\u3001\u5b66\u7fd2\u3057\u305fAI\u3092\u57fa\u306b\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u30c7\u30fc\u30bf\u3092\u81ea\u52d5\u7684\u306b\u4f5c\u6210\u3059\u308b\u30c4\u30fc\u30eb\u3067\u3059\u3002<\/p>\n<p>\u3053\u306e\u8a18\u4e8b\u3067\u306f\u7c21\u6613\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u306e\u4f5c\u6210\u65b9\u6cd5\u306b\u3064\u3044\u3066\u8a73\u3057\u304f\u89e3\u8aac\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p><span style=\"color: #ff0000;\"><a href=\"https:\/\/www.udemy.com\/course\/tetsumag-objectdetection\/?referralCode=7046593115956EE41BF7\" target=\"_blank\" rel=\"noopener\" style=\"color: #ff0000;\">\u300cAI\u958b\u767a\u306e\u30ca\u30d3\u30b2\u30fc\u30bf\u30fc\u7269\u4f53\u691c\u77e5AI\u7de8\u300d\u306f\u3053\u3061\u3089\u304b\u3089\u3069\u3046\u305e\uff01<\/a><\/span><br \/>\n<a href=\"https:\/\/www.udemy.com\/course\/tetsumag-objectdetection\/?referralCode=7046593115956EE41BF7\"><img decoding=\"async\" loading=\"lazy\" src=\"http:\/\/www.tetsumag.com\/wp-content\/uploads\/2025\/01\/5258858_7664_5.jpg\" alt=\"\" width=\"750\" height=\"422\" class=\"aligncenter size-full wp-image-16077\" srcset=\"https:\/\/tetsumag.com\/blog\/wp-content\/uploads\/2025\/01\/5258858_7664_5.jpg 750w, https:\/\/tetsumag.com\/blog\/wp-content\/uploads\/2025\/01\/5258858_7664_5-600x338.jpg 600w\" sizes=\"(max-width: 750px) 100vw, 750px\" \/><\/a><\/p>\n<blockquote class=\"wp-embedded-content\" data-secret=\"uQQ9jLIfqG\"><p><a href=\"https:\/\/www.tetsumag.com\/2022\/08\/30\/504\/\">\u30102022\u5e74\u3011AI\u306e\u8eab\u8fd1\u306a\u6d3b\u7528\u304b\u3089\u30d3\u30b8\u30cd\u30b9\u306e\u6d3b\u7528\u4e8b\u4f8b\u307e\u3067\u7d39\u4ecb<\/a><\/p><\/blockquote>\n<p><iframe class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;\u30102022\u5e74\u3011AI\u306e\u8eab\u8fd1\u306a\u6d3b\u7528\u304b\u3089\u30d3\u30b8\u30cd\u30b9\u306e\u6d3b\u7528\u4e8b\u4f8b\u307e\u3067\u7d39\u4ecb&#8221; &#8212; \u3066\u3064\u307e\u3050\" src=\"https:\/\/www.tetsumag.com\/2022\/08\/30\/504\/embed\/#?secret=HUltu4cbDg#?secret=uQQ9jLIfqG\" data-secret=\"uQQ9jLIfqG\" width=\"500\" height=\"282\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_38 counter-hierarchy ez-toc-counter ez-toc-transparent ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\">\u76ee\u6b21<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" style=\"display: none;\"><label for=\"item\" aria-label=\"Table of Content\"><span style=\"display: flex;align-items: center;width: 35px;height: 30px;justify-content: center;\"><svg style=\"fill: #444444;color:#444444\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #444444;color:#444444\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/label><input type=\"checkbox\" id=\"item\"><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/tetsumag.com\/blog\/2023\/02\/25\/310\/#%E7%94%BB%E5%83%8F%E8%AA%8D%E8%AD%98AI%E3%81%AE%E5%B0%8E%E5%85%A5%E6%89%8B%E9%A0%86\" title=\"\u753b\u50cf\u8a8d\u8b58AI\u306e\u5c0e\u5165\u624b\u9806\">\u753b\u50cf\u8a8d\u8b58AI\u306e\u5c0e\u5165\u624b\u9806<\/a><ul class='ez-toc-list-level-3'><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/tetsumag.com\/blog\/2023\/02\/25\/310\/#AI%E6%A7%8B%E6%83%B3%E6%AE%B5%E9%9A%8E%E2%86%92AI%E8%A8%AD%E8%A8%88%E6%AE%B5%E9%9A%8E%E2%86%92AI%E6%A4%9C%E8%A8%BC%E6%AE%B5%E9%9A%8E%E2%86%92AI%E9%81%8B%E7%94%A8%E6%AE%B5%E9%9A%8E\" title=\"AI\u69cb\u60f3\u6bb5\u968e\u2192AI\u8a2d\u8a08\u6bb5\u968e\u2192AI\u691c\u8a3c\u6bb5\u968e\u2192AI\u904b\u7528\u6bb5\u968e\">AI\u69cb\u60f3\u6bb5\u968e\u2192AI\u8a2d\u8a08\u6bb5\u968e\u2192AI\u691c\u8a3c\u6bb5\u968e\u2192AI\u904b\u7528\u6bb5\u968e<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/tetsumag.com\/blog\/2023\/02\/25\/310\/#%E7%B2%BE%E5%BA%A6%E3%82%92%E4%B8%8A%E3%81%92%E3%82%8B%E3%81%AB%E3%81%AF1500%E6%9E%9A%E4%BB%A5%E4%B8%8A%E5%BF%85%E8%A6%81%EF%BC%81%E5%BF%85%E3%81%9A%E6%99%82%E7%9F%AD%E3%83%84%E3%83%BC%E3%83%AB%E3%81%8C%E5%BF%85%E8%A6%81%E3%81%AB%E3%81%AA%E3%81%A3%E3%81%A6%E3%81%8F%E3%82%8B\" title=\"\u7cbe\u5ea6\u3092\u4e0a\u3052\u308b\u306b\u306f1500\u679a\u4ee5\u4e0a\u5fc5\u8981\uff01\u5fc5\u305a\u6642\u77ed\u30c4\u30fc\u30eb\u304c\u5fc5\u8981\u306b\u306a\u3063\u3066\u304f\u308b\">\u7cbe\u5ea6\u3092\u4e0a\u3052\u308b\u306b\u306f1500\u679a\u4ee5\u4e0a\u5fc5\u8981\uff01\u5fc5\u305a\u6642\u77ed\u30c4\u30fc\u30eb\u304c\u5fc5\u8981\u306b\u306a\u3063\u3066\u304f\u308b<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/tetsumag.com\/blog\/2023\/02\/25\/310\/#%E3%80%90%E4%BA%8B%E5%89%8D%E6%BA%96%E5%82%99%E3%80%91%E8%87%AA%E5%88%86%E3%81%A7%E4%BD%9C%E6%88%90%E3%81%97%E3%81%9F%E3%83%87%E3%83%BC%E3%82%BF%E3%82%92%E5%AD%A6%E7%BF%92%E3%81%95%E3%81%9B%E3%82%8B\" title=\"\u3010\u4e8b\u524d\u6e96\u5099\u3011\u81ea\u5206\u3067\u4f5c\u6210\u3057\u305f\u30c7\u30fc\u30bf\u3092\u5b66\u7fd2\u3055\u305b\u308b\">\u3010\u4e8b\u524d\u6e96\u5099\u3011\u81ea\u5206\u3067\u4f5c\u6210\u3057\u305f\u30c7\u30fc\u30bf\u3092\u5b66\u7fd2\u3055\u305b\u308b<\/a><ul class='ez-toc-list-level-3'><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/tetsumag.com\/blog\/2023\/02\/25\/310\/#%E3%82%A2%E3%83%8E%E3%83%86%E3%83%BC%E3%82%B7%E3%83%A7%E3%83%B3%E3%81%97%E3%81%A6%E5%AD%A6%E7%BF%92%E3%83%87%E3%83%BC%E3%82%BF%E3%82%92%E4%BD%9C%E3%82%8B\" title=\"\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u3057\u3066\u5b66\u7fd2\u30c7\u30fc\u30bf\u3092\u4f5c\u308b\">\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u3057\u3066\u5b66\u7fd2\u30c7\u30fc\u30bf\u3092\u4f5c\u308b<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/tetsumag.com\/blog\/2023\/02\/25\/310\/#Google_Drive%E3%81%AB%E6%8E%A5%E7%B6%9A\" title=\"Google Drive\u306b\u63a5\u7d9a\">Google Drive\u306b\u63a5\u7d9a<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/tetsumag.com\/blog\/2023\/02\/25\/310\/#%E3%82%A2%E3%83%8E%E3%83%86%E3%83%BC%E3%82%B7%E3%83%A7%E3%83%B3%E3%81%97%E3%81%9F%E7%94%BB%E5%83%8F%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB%E3%81%A8txt%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB%E3%81%AE%E6%BA%96%E5%82%99\" title=\"\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u3057\u305f\u753b\u50cf\u30d5\u30a1\u30a4\u30eb\u3068txt\u30d5\u30a1\u30a4\u30eb\u306e\u6e96\u5099\">\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u3057\u305f\u753b\u50cf\u30d5\u30a1\u30a4\u30eb\u3068txt\u30d5\u30a1\u30a4\u30eb\u306e\u6e96\u5099<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/tetsumag.com\/blog\/2023\/02\/25\/310\/#train%E3%83%87%E3%83%BC%E3%82%BF%E3%81%A8val%E3%83%87%E3%83%BC%E3%82%BF%E3%81%AE%E6%BA%96%E5%82%99\" title=\"train\u30c7\u30fc\u30bf\u3068val\u30c7\u30fc\u30bf\u306e\u6e96\u5099\">train\u30c7\u30fc\u30bf\u3068val\u30c7\u30fc\u30bf\u306e\u6e96\u5099<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/tetsumag.com\/blog\/2023\/02\/25\/310\/#YOLOv5%E3%81%AE%E7%94%A8%E6%84%8F\" title=\"YOLOv5\u306e\u7528\u610f\">YOLOv5\u306e\u7528\u610f<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/tetsumag.com\/blog\/2023\/02\/25\/310\/#%E5%AD%A6%E7%BF%92%E3%81%95%E3%81%9B%E3%82%8B\" title=\"\u5b66\u7fd2\u3055\u305b\u308b\">\u5b66\u7fd2\u3055\u305b\u308b<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/tetsumag.com\/blog\/2023\/02\/25\/310\/#%E7%B0%A1%E6%98%93%E3%82%A2%E3%83%8E%E3%83%86%E3%83%BC%E3%82%B7%E3%83%A7%E3%83%B3%E3%81%AE%E4%BD%9C%E6%88%90%E6%96%B9%E6%B3%95\" title=\"\u7c21\u6613\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u306e\u4f5c\u6210\u65b9\u6cd5\">\u7c21\u6613\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u306e\u4f5c\u6210\u65b9\u6cd5<\/a><ul class='ez-toc-list-level-3'><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/tetsumag.com\/blog\/2023\/02\/25\/310\/#%E8%BF%BD%E5%8A%A0%E3%81%99%E3%82%8B%E5%86%99%E7%9C%9F%E3%82%92%E8%AA%AD%E3%81%BF%E8%BE%BC%E3%82%80\" title=\"\u8ffd\u52a0\u3059\u308b\u5199\u771f\u3092\u8aad\u307f\u8fbc\u3080\">\u8ffd\u52a0\u3059\u308b\u5199\u771f\u3092\u8aad\u307f\u8fbc\u3080<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/tetsumag.com\/blog\/2023\/02\/25\/310\/#%E7%A2%BA%E4%BF%A1%E5%BA%A6%E3%81%8C%E4%B8%80%E5%AE%9A%E4%BB%A5%E4%B8%8A%E3%81%AE%E3%82%82%E3%81%AE%E3%82%92%E3%82%A2%E3%83%8E%E3%83%86%E3%83%BC%E3%82%B7%E3%83%A7%E3%83%B3%E3%81%AB%E5%86%8D%E5%88%A9%E7%94%A8%E3%81%99%E3%82%8B\" title=\"\u78ba\u4fe1\u5ea6\u304c\u4e00\u5b9a\u4ee5\u4e0a\u306e\u3082\u306e\u3092\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u306b\u518d\u5229\u7528\u3059\u308b\">\u78ba\u4fe1\u5ea6\u304c\u4e00\u5b9a\u4ee5\u4e0a\u306e\u3082\u306e\u3092\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u306b\u518d\u5229\u7528\u3059\u308b<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-14\" href=\"https:\/\/tetsumag.com\/blog\/2023\/02\/25\/310\/#%E3%81%BE%E3%81%A8%E3%82%81\" title=\"\u307e\u3068\u3081\">\u307e\u3068\u3081<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"%E7%94%BB%E5%83%8F%E8%AA%8D%E8%AD%98AI%E3%81%AE%E5%B0%8E%E5%85%A5%E6%89%8B%E9%A0%86\"><\/span>\u753b\u50cf\u8a8d\u8b58AI\u306e\u5c0e\u5165\u624b\u9806<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><a href=\"http:\/\/www.tetsumag.com\/wp-content\/uploads\/2022\/09\/818a1857570aa508b720cc30bc0c15f7-1.jpg\"><img decoding=\"async\" loading=\"lazy\" src=\"http:\/\/www.tetsumag.com\/wp-content\/uploads\/2022\/09\/818a1857570aa508b720cc30bc0c15f7-1-1024x576.jpg\" alt=\"\" width=\"1024\" height=\"576\" class=\"aligncenter size-large wp-image-12025\" srcset=\"https:\/\/tetsumag.com\/blog\/wp-content\/uploads\/2022\/09\/818a1857570aa508b720cc30bc0c15f7-1-1024x576.jpg 1024w, https:\/\/tetsumag.com\/blog\/wp-content\/uploads\/2022\/09\/818a1857570aa508b720cc30bc0c15f7-1-768x432.jpg 768w, https:\/\/tetsumag.com\/blog\/wp-content\/uploads\/2022\/09\/818a1857570aa508b720cc30bc0c15f7-1-600x338.jpg 600w, https:\/\/tetsumag.com\/blog\/wp-content\/uploads\/2022\/09\/818a1857570aa508b720cc30bc0c15f7-1-300x169.jpg 300w, https:\/\/tetsumag.com\/blog\/wp-content\/uploads\/2022\/09\/818a1857570aa508b720cc30bc0c15f7-1.jpg 1280w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><br \/>\n\u753b\u50cf\u8a8d\u8b58AI\u306e\u958b\u767a\u624b\u9806\u3092\u78ba\u8a8d\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<h3><span class=\"ez-toc-section\" id=\"AI%E6%A7%8B%E6%83%B3%E6%AE%B5%E9%9A%8E%E2%86%92AI%E8%A8%AD%E8%A8%88%E6%AE%B5%E9%9A%8E%E2%86%92AI%E6%A4%9C%E8%A8%BC%E6%AE%B5%E9%9A%8E%E2%86%92AI%E9%81%8B%E7%94%A8%E6%AE%B5%E9%9A%8E\"><\/span>AI\u69cb\u60f3\u6bb5\u968e\u2192AI\u8a2d\u8a08\u6bb5\u968e\u2192AI\u691c\u8a3c\u6bb5\u968e\u2192AI\u904b\u7528\u6bb5\u968e<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\u7d4c\u7523\u7701HP\u306e\u300c\u4e2d\u5c0f\u4f01\u696d\u304c\uff21\uff29\u3092\u5c0e\u5165\u3059\u308b\u969b\u306b\u5fc5\u8981\u3068\u306a\u308b\u4f53\u5236\u6574\u5099\u3084\u6e96\u5099\u30fb\u5b9f\u8a3c\u624b\u6cd5\u7b49\u306b\u3064\u3044\u3066\u300d\u306b\u3088\u308c\u3070\u3001AI\u306e\u958b\u767a\u624b\u9806\u306f\u5927\u304d\u304f4\u3064\u306e\u6bb5\u968e\u306b\u5206\u304b\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/www.meti.go.jp\/policy\/it_policy\/jinzai\/AIutilization.html\" target=\"_blank\" rel=\"noopener\">\u4e2d\u5c0f\u4f01\u696d\u304c\uff21\uff29\u3092\u5c0e\u5165\u3059\u308b\u969b\u306b\u5fc5\u8981\u3068\u306a\u308b\u4f53\u5236\u6574\u5099\u3084\u6e96\u5099\u30fb\u5b9f\u8a3c\u624b\u6cd5\u7b49\u306b\u3064\u3044\u3066<\/a><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" title=\"\">1.AI\u69cb\u60f3\u6bb5\u968e\r\n\u30fbAI\u3068\u306f\u4f55\u304b\uff1f\u5c0e\u5165\u306e\u30e1\u30ea\u30c3\u30c8\u306e\u7406\u89e3\r\n\u30fb\u53d6\u7d44\u9818\u57df\u306e\u6c7a\u5b9a(\u4e88\u77e5\u4fdd\u5168\u3001\u9700\u8981\u4e88\u6e2c\u3001\u7d4c\u7406\u95a2\u9023\u6700\u9069\u5316\u3001\u30c7\u30fc\u30bf\u306b\u57fa\u3065\u304f\u8ca9\u4fc3\u3001\u4e0d\u826f\u500b\u6240\u81ea\u52d5\u691c\u51fa)\r\n\u30fb\u81ea\u793e\u306e\u73fe\u72b6\u628a\u63e1\r\n\u30fbAI\u306b\u3088\u308b\u89e3\u6c7a\u65b9\u6cd5\u306e\u4e8b\u4f8b\u8abf\u67fb\r\n\u30fb\u8cbb\u7528\u5bfe\u52b9\u679c\u306e\u78ba\u8a8d\r\n\r\n2.AI\u8a2d\u8a08\u6bb5\u968e\r\n\u30fbAI\u5c0e\u5165\u306e\u76ee\u7684\u30fb\u76ee\u6a19\u306e\u8a2d\u5b9a\r\n\u30fb\u30c7\u30fc\u30bf\u306e\u78ba\u8a8d\r\n\u30fb\u5b9f\u52d9\u3067\u306e\u6d3b\u7528\u30a4\u30e1\u30fc\u30b8\u691c\u8a0e\r\n\u30fb\u521d\u671f\u8cbb\u7528\u306e\u691c\u8a0e\r\n\r\n3.AI\u691c\u8a3c\u6bb5\u968e\r\n\u2605\u30fb\u30e2\u30c7\u30eb\u69cb\u7bc9\u3001\u7cbe\u5ea6\u306e\u5411\u4e0a\r\n\u30fb\u81ea\u793e\u696d\u52d9\u3078\u306e\u9069\u7528\u53ef\u5426\u691c\u8a0e\r\n\u30fb\u672c\u756a\u5b9f\u88c5\u8a08\u753b\u306e\u7b56\u5b9a(\u6295\u8cc7\u56de\u53ce\u8a08\u753b)\r\n\r\n4.AI\u904b\u7528\u6bb5\u968e\r\n\u30fb\u5b9f\u52d9\u7528\u306e\u6a5f\u5668\u306e\u5c0e\u5165\u6e96\u5099(\u8a66\u4f5c\u54c1\u3067\u306f\u306a\u304f\u5b9f\u969b\u306e\u6a5f\u5668\u306e\u6e96\u5099)\r\n\u30fb\u8cc7\u91d1\u8abf\u9054\r\n\u30fb\u4ed6\u5206\u91ce\u3078\u306e\u6d3b\u7528\u65b9\u6cd5\r\n\u30fb\u81ea\u793e\u4eba\u6750\u306e\u30ec\u30d9\u30eb\u30a2\u30c3\u30d7\u7814\u4fee\r\n\r\n<\/pre>\n<p>AI\u306e\u7cbe\u5ea6\u304c\u8ab2\u984c\u306b\u306a\u3063\u3066\u304f\u308b\u306e\u306f3.AI\u691c\u8a3c\u6bb5\u968e\u306e\u6bb5\u968e\u3067\u3042\u308a\u3001\u3053\u3053\u306b\u975e\u5e38\u306b\u30b3\u30b9\u30c8\u304c\u5927\u304d\u304f\u304b\u304b\u308a\u307e\u3059\u3002<\/p>\n<h3><span class=\"ez-toc-section\" id=\"%E7%B2%BE%E5%BA%A6%E3%82%92%E4%B8%8A%E3%81%92%E3%82%8B%E3%81%AB%E3%81%AF1500%E6%9E%9A%E4%BB%A5%E4%B8%8A%E5%BF%85%E8%A6%81%EF%BC%81%E5%BF%85%E3%81%9A%E6%99%82%E7%9F%AD%E3%83%84%E3%83%BC%E3%83%AB%E3%81%8C%E5%BF%85%E8%A6%81%E3%81%AB%E3%81%AA%E3%81%A3%E3%81%A6%E3%81%8F%E3%82%8B\"><\/span>\u7cbe\u5ea6\u3092\u4e0a\u3052\u308b\u306b\u306f1500\u679a\u4ee5\u4e0a\u5fc5\u8981\uff01\u5fc5\u305a\u6642\u77ed\u30c4\u30fc\u30eb\u304c\u5fc5\u8981\u306b\u306a\u3063\u3066\u304f\u308b<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\u7269\u4f53\u691c\u77e5AI\u306e\u7cbe\u5ea6\u3092\u4e0a\u3052\u308b\u3053\u3068\u306f\u7c21\u5358\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>\u30ac\u30a4\u30c9\u30e9\u30a4\u30f3\u306b\u3088\u308b\u3068\u3001\u63a8\u5968\u3055\u308c\u3066\u3044\u308b\u679a\u6570\u306f\u30af\u30e9\u30b9\u3054\u3068\u306b1500\u679a\u4ee5\u4e0a\u3068\u8a00\u308f\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/github.com\/ultralytics\/yolov5\/discussions\/9198\" target=\"_blank\" rel=\"noopener\">Best practice when YOLOv5 training performance is only mediocre <\/a><\/p>\n<p>1500\u679a\u4ee5\u4e0a\u306e\u753b\u50cf\u30c7\u30fc\u30bf\u3092\u81ea\u529b\u3067\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u3059\u308b\u3068\u306a\u308b\u3068\u3069\u308c\u304f\u3089\u3044\u306e\u6642\u9593\u304c\u304b\u304b\u308b\u306e\u304b\u3001\u8003\u3048\u305f\u304f\u3082\u306a\u3044\u3067\u3059\u306d\u3002<\/p>\n<blockquote class=\"wp-embedded-content\" data-secret=\"iQwLeVUvwX\"><p><a href=\"https:\/\/www.tetsumag.com\/2022\/09\/19\/281\/\">\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u4f5c\u696d\u306b\u3064\u3044\u3066 \u6ce8\u610f\u70b9\u3084\u5de5\u592b\u70b9\u3001\u5916\u6ce8\u30b3\u30b9\u30c8\u3092\u89e3\u8aac<\/a><\/p><\/blockquote>\n<p><iframe class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u4f5c\u696d\u306b\u3064\u3044\u3066 \u6ce8\u610f\u70b9\u3084\u5de5\u592b\u70b9\u3001\u5916\u6ce8\u30b3\u30b9\u30c8\u3092\u89e3\u8aac&#8221; &#8212; \u3066\u3064\u307e\u3050\" src=\"https:\/\/www.tetsumag.com\/2022\/09\/19\/281\/embed\/#?secret=NnzclJ5AXn#?secret=iQwLeVUvwX\" data-secret=\"iQwLeVUvwX\" width=\"500\" height=\"282\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/p>\n<h2><span class=\"ez-toc-section\" id=\"%E3%80%90%E4%BA%8B%E5%89%8D%E6%BA%96%E5%82%99%E3%80%91%E8%87%AA%E5%88%86%E3%81%A7%E4%BD%9C%E6%88%90%E3%81%97%E3%81%9F%E3%83%87%E3%83%BC%E3%82%BF%E3%82%92%E5%AD%A6%E7%BF%92%E3%81%95%E3%81%9B%E3%82%8B\"><\/span>\u3010\u4e8b\u524d\u6e96\u5099\u3011\u81ea\u5206\u3067\u4f5c\u6210\u3057\u305f\u30c7\u30fc\u30bf\u3092\u5b66\u7fd2\u3055\u305b\u308b<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><a href=\"http:\/\/www.tetsumag.com\/wp-content\/uploads\/2023\/02\/202302251123.png\"><img decoding=\"async\" loading=\"lazy\" src=\"http:\/\/www.tetsumag.com\/wp-content\/uploads\/2023\/02\/202302251123-1024x576.png\" alt=\"\" width=\"1024\" height=\"576\" class=\"aligncenter size-large wp-image-12155\" srcset=\"https:\/\/tetsumag.com\/blog\/wp-content\/uploads\/2023\/02\/202302251123-1024x576.png 1024w, https:\/\/tetsumag.com\/blog\/wp-content\/uploads\/2023\/02\/202302251123-768x432.png 768w, https:\/\/tetsumag.com\/blog\/wp-content\/uploads\/2023\/02\/202302251123-600x338.png 600w, https:\/\/tetsumag.com\/blog\/wp-content\/uploads\/2023\/02\/202302251123.png 1280w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/p>\n<p>\u7c21\u6613\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u3092\u5b9f\u88c5\u3059\u308b\u306b\u306f\u307e\u305a\u306f\u81ea\u5206\u3067\u7528\u610f\u3057\u305f\u30c7\u30fc\u30bf\u3092\u5b66\u7fd2\u3055\u305b\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u5b66\u7fd2\u306e\u624b\u9806\u3092\u78ba\u8a8d\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<h3><span class=\"ez-toc-section\" id=\"%E3%82%A2%E3%83%8E%E3%83%86%E3%83%BC%E3%82%B7%E3%83%A7%E3%83%B3%E3%81%97%E3%81%A6%E5%AD%A6%E7%BF%92%E3%83%87%E3%83%BC%E3%82%BF%E3%82%92%E4%BD%9C%E3%82%8B\"><\/span>\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u3057\u3066\u5b66\u7fd2\u30c7\u30fc\u30bf\u3092\u4f5c\u308b<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\u4eca\u56de\u306f100\u679a\u306e\u753b\u50cf\u30c7\u30fc\u30bf\u3092\u7528\u610f\u3057\u307e\u3057\u305f\u3002<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Google_Drive%E3%81%AB%E6%8E%A5%E7%B6%9A\"><\/span>Google Drive\u306b\u63a5\u7d9a<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" title=\"\">from google.colab import drive\r\ndrive.mount('\/content\/drive')\r\n\r\n<\/pre>\n<h3><span class=\"ez-toc-section\" id=\"%E3%82%A2%E3%83%8E%E3%83%86%E3%83%BC%E3%82%B7%E3%83%A7%E3%83%B3%E3%81%97%E3%81%9F%E7%94%BB%E5%83%8F%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB%E3%81%A8txt%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB%E3%81%AE%E6%BA%96%E5%82%99\"><\/span>\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u3057\u305f\u753b\u50cf\u30d5\u30a1\u30a4\u30eb\u3068txt\u30d5\u30a1\u30a4\u30eb\u306e\u6e96\u5099<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><a href=\"http:\/\/www.tetsumag.com\/wp-content\/uploads\/2023\/02\/202302231832.jpg\"><img decoding=\"async\" loading=\"lazy\" src=\"http:\/\/www.tetsumag.com\/wp-content\/uploads\/2023\/02\/202302231832-1024x576.jpg\" alt=\"\" width=\"1024\" height=\"576\" class=\"aligncenter size-large wp-image-12119\" srcset=\"https:\/\/tetsumag.com\/blog\/wp-content\/uploads\/2023\/02\/202302231832-1024x576.jpg 1024w, https:\/\/tetsumag.com\/blog\/wp-content\/uploads\/2023\/02\/202302231832-768x432.jpg 768w, https:\/\/tetsumag.com\/blog\/wp-content\/uploads\/2023\/02\/202302231832-1536x864.jpg 1536w, https:\/\/tetsumag.com\/blog\/wp-content\/uploads\/2023\/02\/202302231832-1320x743.jpg 1320w, https:\/\/tetsumag.com\/blog\/wp-content\/uploads\/2023\/02\/202302231832-600x338.jpg 600w, https:\/\/tetsumag.com\/blog\/wp-content\/uploads\/2023\/02\/202302231832.jpg 1920w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/p>\n<p>\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u3057\u305f\u753b\u50cf\u30d5\u30a1\u30a4\u30eb\u3068txt\u30d5\u30a1\u30a4\u30eb\u3092\u6e96\u5099\u3057\u307e\u3059\u3002<\/p>\n<blockquote class=\"wp-embedded-content\" data-secret=\"KTfdxmZEwp\"><p><a href=\"https:\/\/www.tetsumag.com\/2023\/02\/24\/312\/\">\u3010\u7269\u4f53\u691c\u77e5\u3011xml\u30d5\u30a1\u30a4\u30eb\u3092txt\u30d5\u30a1\u30a4\u30eb\u306b\u5909\u63db\u3059\u308b\u3010\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u3011<\/a><\/p><\/blockquote>\n<p><iframe class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;\u3010\u7269\u4f53\u691c\u77e5\u3011xml\u30d5\u30a1\u30a4\u30eb\u3092txt\u30d5\u30a1\u30a4\u30eb\u306b\u5909\u63db\u3059\u308b\u3010\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u3011&#8221; &#8212; \u3066\u3064\u307e\u3050\" src=\"https:\/\/www.tetsumag.com\/2023\/02\/24\/312\/embed\/#?secret=yatIZroCfj#?secret=KTfdxmZEwp\" data-secret=\"KTfdxmZEwp\" width=\"500\" height=\"282\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" title=\"\">import glob\r\nimport shutil\r\nfrom sklearn.model_selection import train_test_split\r\nimport os \r\n\r\ndata_path = \"\/content\/drive\/MyDrive\/ObjectDetectionCourseNotebook\/tekkin\/\"\r\nx_list = glob.glob(data_path + \"*.jpg\") + glob.glob(data_path + \"*.JPG\")\r\ny_list = glob.glob(data_path + \"*.txt\")\r\nx_train, x_test, y_train, y_test = train_test_split(x_list, y_list)\r\nprint(\"\u5b66\u7fd2\u6570\", len(x_train))\r\nprint(\"\u30c6\u30b9\u30c8\u6570\", len(x_test))\r\n\r\n\u5b66\u7fd2\u6570 75\r\n\u30c6\u30b9\u30c8\u6570 25\r\n\r\n<\/pre>\n<h3><span class=\"ez-toc-section\" id=\"train%E3%83%87%E3%83%BC%E3%82%BF%E3%81%A8val%E3%83%87%E3%83%BC%E3%82%BF%E3%81%AE%E6%BA%96%E5%82%99\"><\/span>train\u30c7\u30fc\u30bf\u3068val\u30c7\u30fc\u30bf\u306e\u6e96\u5099<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" title=\"\">from tqdm import tqdm\r\nimport shutil\r\nif os.path.exists(\"\/content\/train\"):\r\n  shutil.rmtree(\"\/content\/train\")\r\nif os.path.exists(\"\/content\/val\"):\r\n  shutil.rmtree(\"\/content\/val\")\r\nif not os.path.exists(\"\/content\/train\"):\r\n  os.mkdir(\"\/content\/train\")\r\nif not os.path.exists(\"\/content\/val\"):\r\n  os.mkdir(\"\/content\/val\")\r\nfor f in tqdm(x_train):\r\n  file_name = os.path.basename(f)\r\n  shutil.copyfile(f, f\"\/content\/train\/{file_name}\")\r\nfor f in tqdm(y_train):\r\n  file_name = os.path.basename(f)\r\n  shutil.copyfile(f, f\"\/content\/train\/{file_name}\")\r\nfor f in tqdm(x_test):\r\n  file_name = os.path.basename(f)\r\n  shutil.copyfile(f, f\"\/content\/val\/{file_name}\")\r\nfor f in tqdm(y_test):\r\n  file_name = os.path.basename(f)\r\n  shutil.copyfile(f, f\"\/content\/val\/{file_name}\")\r\n\r\n<\/pre>\n<p>train\u30c7\u30fc\u30bf\u3068val\u30c7\u30fc\u30bf\u306e\u5834\u6240\u3068\u30af\u30e9\u30b9\u306e\u6570\u304a\u3088\u3073\u305d\u306e\u5185\u5bb9\u3092yaml\u30d5\u30a1\u30a4\u30eb\u306b\u4fdd\u5b58\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" title=\"\">yaml = \"\"\"\r\n# here you need to specify the files train, test and validation txt\r\ntrain: \/content\/train\r\nval: \/content\/val\r\n\r\n# number of classes in your dataset\r\nnc: 1\r\n\r\n# class names\r\nnames: ['tekkin']\r\n\"\"\"\r\nwith open(\"data.yaml\", \"w\") as f:\r\n  f.write(yaml)\r\n\r\n<\/pre>\n<h3><span class=\"ez-toc-section\" id=\"YOLOv5%E3%81%AE%E7%94%A8%E6%84%8F\"><\/span>YOLOv5\u306e\u7528\u610f<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" title=\"\">!git clone https:\/\/github.com\/ultralytics\/yolov5.git\r\n%cd yolov5\r\n%pip install -qr requirements.txt  # install\r\n\r\n<\/pre>\n<h3><span class=\"ez-toc-section\" id=\"%E5%AD%A6%E7%BF%92%E3%81%95%E3%81%9B%E3%82%8B\"><\/span>\u5b66\u7fd2\u3055\u305b\u308b<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" title=\"\">project_dir = \"\/content\/drive\/MyDrive\/ObjectDetectionCourseNotebook\/exps\/\"\r\nimage_size = 1280\r\nbatch_size = 8\r\nepoch_num = 30\r\nmodel_type = 'yolov5m' #@param [\"yolov5s\", \"yolov5m\", \"yolov5l\"]\r\n# weights_dir = '' # 1\u304b\u3089\u5b66\u7fd2\u3059\u308b\u5834\u5408\r\n# weights_dir = project_dir + \"exp\/weights\/best.pt\" # \u81ea\u5df1\u5b66\u7fd2\u3057\u305f\u91cd\u307f\u3092\u4f7f\u3046\u5834\u5408\r\nweights_dir = f'{model_type}.pt' # 80\u7a2e\u985e\u306e\u5206\u985e\u3067\u5b66\u7fd2\u305a\u307f\u306e\u91cd\u307f\u3092\u4f7f\u3046\u5834\u5408\r\nhyp_file = 'hyp.scratch-low.yaml' #@param [\"hyp.VOC.yaml\", \"hyp.scratch-high.yaml\", \"hyp.scratch-med.yaml\", \"hyp.scratch-low.yaml\"]\r\nhyp_file = f'.\/data\/hyps\/{hyp_file}'\r\narguments = f\"--img {image_size} --batch {batch_size} --epochs {epoch_num} \\\r\n              --data ..\/data.yaml --cfg .\/models\/{model_type}.yaml --weights '{weights_dir}' \\\r\n              --device 0 --project {project_dir} --hyp {hyp_file}\"\r\n\r\n<\/pre>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" title=\"\">!python train.py {arguments}\r\n\r\n\u9014\u4e2d\u7701\u7565\r\n\r\n Epoch    GPU_mem   box_loss   obj_loss   cls_loss  Instances       Size\r\n      27\/29      12.8G    0.07745     0.1872          0        153       1280: 100% 10\/10 [00:36&lt;00:00,  3.65s\/it]\r\n                 Class     Images  Instances          P          R      mAP50   mAP50-95: 100% 2\/2 [00:01&lt;00:00,  1.68it\/s]\r\n                   all         25       1912      0.701      0.787      0.724      0.357\r\n\r\n      Epoch    GPU_mem   box_loss   obj_loss   cls_loss  Instances       Size\r\n      28\/29      12.8G    0.07917     0.2011          0        526       1280: 100% 10\/10 [00:36&lt;00:00,  3.63s\/it]\r\n                 Class     Images  Instances          P          R      mAP50   mAP50-95: 100% 2\/2 [00:01&lt;00:00,  1.60it\/s]\r\n                   all         25       1912      0.705      0.792      0.718      0.353\r\n\r\n      Epoch    GPU_mem   box_loss   obj_loss   cls_loss  Instances       Size\r\n      29\/29      12.8G    0.07858     0.2073          0        413       1280: 100% 10\/10 [00:35&lt;00:00,  3.57s\/it]\r\n                 Class     Images  Instances          P          R      mAP50   mAP50-95: 100% 2\/2 [00:00&lt;00:00,  2.35it\/s]\r\n                   all         25       1912      0.717      0.791      0.723      0.363\r\n\r\n30 epochs completed in 0.344 hours.\r\nOptimizer stripped from \/content\/drive\/MyDrive\/ObjectDetectionCourseNotebook\/exps\/exp2\/weights\/last.pt, 42.5MB\r\nOptimizer stripped from \/content\/drive\/MyDrive\/ObjectDetectionCourseNotebook\/exps\/exp2\/weights\/best.pt, 42.5MB\r\n\r\nValidating \/content\/drive\/MyDrive\/ObjectDetectionCourseNotebook\/exps\/exp2\/weights\/best.pt...\r\nFusing layers... \r\nYOLOv5m summary: 212 layers, 20852934 parameters, 0 gradients, 47.9 GFLOPs\r\n                 Class     Images  Instances          P          R      mAP50   mAP50-95: 100% 2\/2 [00:05&lt;00:00,  2.58s\/it]\r\n                   all         25       1912      0.715      0.791      0.723      0.362\r\n\r\n<\/pre>\n<p>\u3053\u308c\u3067\u5b66\u7fd2\u304c\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n<p>mAP\u306f\u306a\u3093\u3068\u306a\u304f\u3067\u3059\u304c\u3001\u982d\u6253\u3061\u306b\u306a\u3063\u3066\u3044\u3066\u826f\u3055\u305d\u3046\u306b\u601d\u3048\u307e\u3059\u3002<\/p>\n<p><a href=\"http:\/\/www.tetsumag.com\/wp-content\/uploads\/2023\/02\/202302241147.png\"><img decoding=\"async\" loading=\"lazy\" src=\"http:\/\/www.tetsumag.com\/wp-content\/uploads\/2023\/02\/202302241147-1024x512.png\" alt=\"\" width=\"1024\" height=\"512\" class=\"aligncenter size-large wp-image-12135\" srcset=\"https:\/\/tetsumag.com\/blog\/wp-content\/uploads\/2023\/02\/202302241147-1024x512.png 1024w, https:\/\/tetsumag.com\/blog\/wp-content\/uploads\/2023\/02\/202302241147-768x384.png 768w, https:\/\/tetsumag.com\/blog\/wp-content\/uploads\/2023\/02\/202302241147-1536x768.png 1536w, https:\/\/tetsumag.com\/blog\/wp-content\/uploads\/2023\/02\/202302241147-2048x1024.png 2048w, https:\/\/tetsumag.com\/blog\/wp-content\/uploads\/2023\/02\/202302241147-1320x660.png 1320w, https:\/\/tetsumag.com\/blog\/wp-content\/uploads\/2023\/02\/202302241147-600x300.png 600w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/p>\n<blockquote class=\"wp-embedded-content\" data-secret=\"NMa0vTfUnK\"><p><a href=\"https:\/\/www.tetsumag.com\/2023\/02\/08\/309\/\">\u3010YOLOv5\u3011\u7269\u4f53\u691c\u51fa\u306e\u7cbe\u5ea6\u3068\u5b66\u7fd2\u7d50\u679c\uff4dAP\u306e\u8aad\u307f\u65b9\u306b\u3064\u3044\u3066<\/a><\/p><\/blockquote>\n<p><iframe class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;\u3010YOLOv5\u3011\u7269\u4f53\u691c\u51fa\u306e\u7cbe\u5ea6\u3068\u5b66\u7fd2\u7d50\u679c\uff4dAP\u306e\u8aad\u307f\u65b9\u306b\u3064\u3044\u3066&#8221; &#8212; \u3066\u3064\u307e\u3050\" src=\"https:\/\/www.tetsumag.com\/2023\/02\/08\/309\/embed\/#?secret=HpSUv43Zow#?secret=NMa0vTfUnK\" data-secret=\"NMa0vTfUnK\" width=\"500\" height=\"282\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/p>\n<h2><span class=\"ez-toc-section\" id=\"%E7%B0%A1%E6%98%93%E3%82%A2%E3%83%8E%E3%83%86%E3%83%BC%E3%82%B7%E3%83%A7%E3%83%B3%E3%81%AE%E4%BD%9C%E6%88%90%E6%96%B9%E6%B3%95\"><\/span>\u7c21\u6613\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u306e\u4f5c\u6210\u65b9\u6cd5<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><a href=\"http:\/\/www.tetsumag.com\/wp-content\/uploads\/2023\/02\/202302241849.jpg\"><img decoding=\"async\" loading=\"lazy\" src=\"http:\/\/www.tetsumag.com\/wp-content\/uploads\/2023\/02\/202302241849-1024x576.jpg\" alt=\"\" width=\"1024\" height=\"576\" class=\"aligncenter size-large wp-image-12153\" srcset=\"https:\/\/tetsumag.com\/blog\/wp-content\/uploads\/2023\/02\/202302241849-1024x576.jpg 1024w, https:\/\/tetsumag.com\/blog\/wp-content\/uploads\/2023\/02\/202302241849-768x432.jpg 768w, https:\/\/tetsumag.com\/blog\/wp-content\/uploads\/2023\/02\/202302241849-600x338.jpg 600w, https:\/\/tetsumag.com\/blog\/wp-content\/uploads\/2023\/02\/202302241849.jpg 1280w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/p>\n<p>\u7c21\u6613\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u3067\u306f\u4e0a\u8a18\u306e\u5b66\u7fd2\u3057\u305f\u30e2\u30c7\u30eb\u3092\u57fa\u306b\u3042\u308b\u4e00\u5b9a\u306e\u78ba\u4fe1\u5ea6\u4ee5\u4e0a\u306e\u3082\u306e\u3092\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u306b\u5229\u7528\u3057\u307e\u3059\u3002<\/p>\n<p>\u5b9f\u969b\u306e\u4f5c\u308a\u65b9\u3092\u898b\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<h3><span class=\"ez-toc-section\" id=\"%E8%BF%BD%E5%8A%A0%E3%81%99%E3%82%8B%E5%86%99%E7%9C%9F%E3%82%92%E8%AA%AD%E3%81%BF%E8%BE%BC%E3%82%80\"><\/span>\u8ffd\u52a0\u3059\u308b\u5199\u771f\u3092\u8aad\u307f\u8fbc\u3080<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><a href=\"http:\/\/www.tetsumag.com\/wp-content\/uploads\/2023\/02\/202302241212.jpg\"><img decoding=\"async\" loading=\"lazy\" src=\"http:\/\/www.tetsumag.com\/wp-content\/uploads\/2023\/02\/202302241212-1024x576.jpg\" alt=\"\" width=\"1024\" height=\"576\" class=\"aligncenter size-large wp-image-12139\" srcset=\"https:\/\/tetsumag.com\/blog\/wp-content\/uploads\/2023\/02\/202302241212-1024x576.jpg 1024w, https:\/\/tetsumag.com\/blog\/wp-content\/uploads\/2023\/02\/202302241212-768x432.jpg 768w, https:\/\/tetsumag.com\/blog\/wp-content\/uploads\/2023\/02\/202302241212-600x338.jpg 600w, https:\/\/tetsumag.com\/blog\/wp-content\/uploads\/2023\/02\/202302241212.jpg 1280w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/p>\n<p>\u4eca\u56de\u306f6\u679a\u3060\u3051\u753b\u50cf\u3092\u7528\u610f\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" title=\"\">import glob\r\nimages_dir = \"\/content\/drive\/MyDrive\/ObjectDetectionCourseNotebook\/images\/\"\r\nfiles = glob.glob(f\"{images_dir}*jpg\")\r\nprint(files)\r\n\r\n<\/pre>\n<h3><span class=\"ez-toc-section\" id=\"%E7%A2%BA%E4%BF%A1%E5%BA%A6%E3%81%8C%E4%B8%80%E5%AE%9A%E4%BB%A5%E4%B8%8A%E3%81%AE%E3%82%82%E3%81%AE%E3%82%92%E3%82%A2%E3%83%8E%E3%83%86%E3%83%BC%E3%82%B7%E3%83%A7%E3%83%B3%E3%81%AB%E5%86%8D%E5%88%A9%E7%94%A8%E3%81%99%E3%82%8B\"><\/span>\u78ba\u4fe1\u5ea6\u304c\u4e00\u5b9a\u4ee5\u4e0a\u306e\u3082\u306e\u3092\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u306b\u518d\u5229\u7528\u3059\u308b<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\u8aad\u307f\u8fbc\u3093\u3060\u753b\u50cf\u306b\u5bfe\u3057\u3066\u78ba\u4fe1\u5ea6\u304c\u4e00\u5b9a\u4ee5\u4e0a\u51fa\u3066\u3044\u308b\u7269\u4f53\u3092\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u3059\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n<p>\u4eca\u56de\u306f\u78ba\u4fe1\u5ea6\u30920.5\u4ee5\u4e0a\u3068\u3057\u307e\u3057\u305f\u3002<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" title=\"\">import numpy as np\r\nimport cv2\r\nfrom tqdm import tqdm\r\nconfidence = 0.5\r\nmodel.conf = 0.4\r\n\r\nfor file in tqdm(files):\r\n  output = []\r\n  img = cv2.imread(file)\r\n  results = model(file)\r\n  xyxy = results.xyxy[0].to('cpu').detach().numpy().copy()\r\n  text_file_name = file.split(\".\")[0] + \".txt\"\r\n  \r\n  for d in xyxy:\r\n    \r\n    if d[4] &gt; confidence:\r\n      \r\n      output.append([\r\n        int(d[5]), # class\u306e\u756a\u53f7\r\n        f\"{(d[2]+d[0])\/2\/img.shape[1]:.6f}\", # \u4e2d\u5fc3\u306eX\u306e\u6bd4\u7387\r\n        f\"{(d[3]+d[1])\/2\/img.shape[0]:.6f}\", # \u4e2d\u5fc3\u306eY\u306e\u6bd4\u7387\r\n        f\"{(d[2]-d[0])\/img.shape[1]:.6f}\", # \u5e45\u306e\u6bd4\u7387\r\n        f\"{(d[3]-d[1])\/img.shape[0]:.6f}\", # \u7e26\u306e\u6bd4\u7387\r\n    ])\r\n\r\n  text_datas = [\" \".join(map(str, text_line)) for text_line in output]\r\n\r\n  with open(text_file_name, mode=\"w\") as f:\r\n    f.write(\"\\n\".join(text_datas))\r\n\r\n<\/pre>\n<p>\u6570\u306f\u5c11\u306a\u3044\u3067\u3059\u304c\u3001\u304d\u3061\u3093\u3068\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u3067\u304d\u3066\u3044\u308b\u3053\u3068\u304c\u78ba\u8a8d\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n<p><a href=\"http:\/\/www.tetsumag.com\/wp-content\/uploads\/2023\/02\/202302241210.jpg\"><img decoding=\"async\" loading=\"lazy\" src=\"http:\/\/www.tetsumag.com\/wp-content\/uploads\/2023\/02\/202302241210-1024x576.jpg\" alt=\"\" width=\"1024\" height=\"576\" class=\"aligncenter size-large wp-image-12137\" srcset=\"https:\/\/tetsumag.com\/blog\/wp-content\/uploads\/2023\/02\/202302241210-1024x576.jpg 1024w, https:\/\/tetsumag.com\/blog\/wp-content\/uploads\/2023\/02\/202302241210-768x432.jpg 768w, https:\/\/tetsumag.com\/blog\/wp-content\/uploads\/2023\/02\/202302241210-600x338.jpg 600w, https:\/\/tetsumag.com\/blog\/wp-content\/uploads\/2023\/02\/202302241210.jpg 1280w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/p>\n<h2><span class=\"ez-toc-section\" id=\"%E3%81%BE%E3%81%A8%E3%82%81\"><\/span>\u307e\u3068\u3081<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>AI\u691c\u8a3c\u6bb5\u968e\u3067\u306fAI\u306e\u7cbe\u5ea6\u304c\u5927\u304d\u306a\u8ab2\u984c\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u7269\u4f53\u691c\u77e5AI\u306e\u5834\u5408\u306f\u7cbe\u5ea6\u3092\u5411\u4e0a\u3055\u305b\u308b\u305f\u3081\u306b\u306f1500\u679a\u4ee5\u4e0a\u306e\u753b\u50cf\u30c7\u30fc\u30bf\u3092\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u3001\u3053\u308c\u306f\u4e2d\u5c0f\u4f01\u696d\u306b\u306f\u975e\u5e38\u306b\u5927\u5909\u306a\u30b3\u30b9\u30c8\u306e\u304b\u304b\u308b\u4f5c\u696d\u3067\u3059\u3002<\/p>\n<p>\u7c21\u6613\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u30c4\u30fc\u30eb\u3092\u5b9f\u88c5\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308c\u3070\u3001\u30b3\u30b9\u30c8\u3092\u524a\u6e1b\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u306e\u3067\u53c2\u8003\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<blockquote class=\"wp-embedded-content\" data-secret=\"SkwT0BRlx9\"><p><a href=\"https:\/\/www.tetsumag.com\/2022\/09\/25\/286\/\">\u3010PyTorch\u3011Dataset\u3001Dataloader\u306e\u4f5c\u6210\u904e\u7a0b\u3000\u8a73\u7d30\u306a\u7406\u89e3\u3068\u3088\u304f\u3042\u308b\u30df\u30b9<\/a><\/p><\/blockquote>\n<p><iframe class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;\u3010PyTorch\u3011Dataset\u3001Dataloader\u306e\u4f5c\u6210\u904e\u7a0b\u3000\u8a73\u7d30\u306a\u7406\u89e3\u3068\u3088\u304f\u3042\u308b\u30df\u30b9&#8221; &#8212; \u3066\u3064\u307e\u3050\" src=\"https:\/\/www.tetsumag.com\/2022\/09\/25\/286\/embed\/#?secret=W1ysLm9MuW#?secret=SkwT0BRlx9\" data-secret=\"SkwT0BRlx9\" width=\"500\" height=\"282\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7269\u4f53\u691c\u77e5AI\u306e\u7cbe\u5ea6\u3092\u5411\u4e0a\u3055\u305b\u308b\u306b\u306f\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u30c7\u30fc\u30bf\u91cf\u3092\u5897\u3084\u3059\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002 \u5fc5\u8981\u306a\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u30c7\u30fc\u30bf\u306f\u5834\u5408\u306b\u3088\u3063\u3066\u306f\u6570\u5343\u679a\u5fc5\u8981\u306a\u5834\u5408\u3082\u73cd\u3057\u304f\u3042\u308a\u307e\u305b\u3093\u3002 \u7c21\u6613\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u3068\u306f\u3042\u308b\u7a0b\u5ea6\u7cbe\u5ea6\u304c\u51fa\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u6bb5\u968e\u3067 &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"\" href=\"https:\/\/tetsumag.com\/blog\/2023\/02\/25\/310\/\"> <span class=\"screen-reader-text\">\u3010YOLO\u3011\u7c21\u6613\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u306b\u3064\u3044\u3066\u3010\u7269\u4f53\u691c\u77e5\u3011<\/span> \u3082\u3063\u3068\u8aad\u3080 &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":12137,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"default","ast-global-header-display":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"default","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","_themeisle_gutenberg_block_has_review":false},"categories":[127],"tags":[114],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/tetsumag.com\/blog\/wp-json\/wp\/v2\/posts\/10389"}],"collection":[{"href":"https:\/\/tetsumag.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tetsumag.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tetsumag.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tetsumag.com\/blog\/wp-json\/wp\/v2\/comments?post=10389"}],"version-history":[{"count":33,"href":"https:\/\/tetsumag.com\/blog\/wp-json\/wp\/v2\/posts\/10389\/revisions"}],"predecessor-version":[{"id":16108,"href":"https:\/\/tetsumag.com\/blog\/wp-json\/wp\/v2\/posts\/10389\/revisions\/16108"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/tetsumag.com\/blog\/wp-json\/wp\/v2\/media\/12137"}],"wp:attachment":[{"href":"https:\/\/tetsumag.com\/blog\/wp-json\/wp\/v2\/media?parent=10389"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tetsumag.com\/blog\/wp-json\/wp\/v2\/categories?post=10389"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tetsumag.com\/blog\/wp-json\/wp\/v2\/tags?post=10389"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}