{"id":818,"date":"2023-05-18T08:50:25","date_gmt":"2023-05-18T08:50:25","guid":{"rendered":"https:\/\/ai-box.eu\/?p=818"},"modified":"2023-05-26T04:21:42","modified_gmt":"2023-05-26T04:21:42","slug":"yolov5-training-a-neural-network-for-pfm-1-antipersonnel-mine-detection","status":"publish","type":"post","link":"https:\/\/ai-box.eu\/en\/ai-pipeline-en\/yolov5-training-a-neural-network-for-pfm-1-antipersonnel-mine-detection\/818\/","title":{"rendered":"YOLOv5 &#8211; Training a neural network for PFM-1 antipersonnel mine detection"},"content":{"rendered":"<p>This paper is about training a neural network based on YOLOv5. This YOLO network should be able to recognize PFM-1 anti-personnel mines in order to support the automated detection of these mines. Since this is my first time working with YOLOv5 and synthetic data, I am curious about the results that a validation dataset will provide. It is not clear to me at the time of writing how good such a trained network will be when it encounters non-synthetic images of the real PFM-1 mine and has to detect these mines.<\/p>\n<p>For the synthetic data, I took three approaches.<\/p>\n<ul>\n<li>In the first part of creating the synthetic data, I created images of the PFM-1 antipersonnel mines using Blender and placed these rendered images on various background images as foreground. In Blender or for the rendered images of the anti-personnel mine I chose the top view of the mine since the mines are mostly flat on the ground. Also I worked with different textures and colors to have once more training data here.<\/li>\n<li>In the second approach I used stable diffusions to create so-called background images on which again images of the PFM-1 mine were placed, i.e. those rendered and also images of real landmines. The advantage here is that the images created in this way are very easy to generate and the time required is significantly reduced.<\/li>\n<li>The third approach was much more complex. Here, a stable diffusion network was taught to directly generate PFM-1 anti-personnel mines in different landscapes, scenes etc..<\/li>\n<\/ul>\n<p>Then I combined all the data in more than 30 tests, tested them individually, etc. to see how well these networks, depending on the type of training data used, are able to detect real PFM-1 mines that have been deployed in videos and images.<\/p>\n<p>Here is a picture showing the synthetic training data created.<\/p>\n<div id=\"attachment_810\" style=\"width: 1034px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/ai-box.eu\/wp-content\/uploads\/2023\/05\/PFM-1-anti-personnel-landmine-training-data-overview-1024x768.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-810\" class=\"size-large wp-image-810\" src=\"https:\/\/ai-box.eu\/wp-content\/uploads\/2023\/05\/PFM-1-anti-personnel-landmine-training-data-overview-1024x768.png\" alt=\"PFM-1 anti-personnel landmine training data overview\" width=\"1024\" height=\"768\" srcset=\"https:\/\/ai-box.eu\/wp-content\/uploads\/2023\/05\/PFM-1-anti-personnel-landmine-training-data-overview-1024x768.png 1024w, https:\/\/ai-box.eu\/wp-content\/uploads\/2023\/05\/PFM-1-anti-personnel-landmine-training-data-overview-300x225.png 300w, https:\/\/ai-box.eu\/wp-content\/uploads\/2023\/05\/PFM-1-anti-personnel-landmine-training-data-overview-768x576.png 768w, https:\/\/ai-box.eu\/wp-content\/uploads\/2023\/05\/PFM-1-anti-personnel-landmine-training-data-overview-1080x810.png 1080w, https:\/\/ai-box.eu\/wp-content\/uploads\/2023\/05\/PFM-1-anti-personnel-landmine-training-data-overview.png 1330w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><p id=\"caption-attachment-810\" class=\"wp-caption-text\">PFM-1 anti-personnel landmine training data overview<\/p><\/div>\n<p>First of all, the following section describes how to set up Yolov5 on an Ubuntu 22.04 system. Since I always use Anaconda for the different environments, here is also a short explanation of how to create a corresponding Anaconda environment. Also, as already described several times here on my blog, CUDA from NVIDIA should be installed for the graphics card so that the GPU also accelerates the training of the neural network.<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/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\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" 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: #999;color:#999\" 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><\/span><\/span><\/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:\/\/ai-box.eu\/en\/ai-pipeline-en\/yolov5-training-a-neural-network-for-pfm-1-antipersonnel-mine-detection\/818\/#Set_up_Anaconda_environment\" >Set up Anaconda environment<\/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:\/\/ai-box.eu\/en\/ai-pipeline-en\/yolov5-training-a-neural-network-for-pfm-1-antipersonnel-mine-detection\/818\/#Set_up_YoloV5_locally\" >Set up YoloV5 locally<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/ai-box.eu\/en\/ai-pipeline-en\/yolov5-training-a-neural-network-for-pfm-1-antipersonnel-mine-detection\/818\/#Create_training_data_set_of_PFM-1_antipersonnel_mines\" >Create training data set of PFM-1 antipersonnel mines<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/ai-box.eu\/en\/ai-pipeline-en\/yolov5-training-a-neural-network-for-pfm-1-antipersonnel-mine-detection\/818\/#Training_with_Negative_Images\" >Training with Negative Images<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/ai-box.eu\/en\/ai-pipeline-en\/yolov5-training-a-neural-network-for-pfm-1-antipersonnel-mine-detection\/818\/#Training_data_with_Yolo_labels\" >Training data with Yolo labels<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/ai-box.eu\/en\/ai-pipeline-en\/yolov5-training-a-neural-network-for-pfm-1-antipersonnel-mine-detection\/818\/#Prepare_training_dataset_for_YoloV5\" >Prepare training dataset for YoloV5<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/ai-box.eu\/en\/ai-pipeline-en\/yolov5-training-a-neural-network-for-pfm-1-antipersonnel-mine-detection\/818\/#Split_data\" >Split data<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/ai-box.eu\/en\/ai-pipeline-en\/yolov5-training-a-neural-network-for-pfm-1-antipersonnel-mine-detection\/818\/#Training_Konfigurieren\" >Training Konfigurieren<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/ai-box.eu\/en\/ai-pipeline-en\/yolov5-training-a-neural-network-for-pfm-1-antipersonnel-mine-detection\/818\/#Start_training\" >Start training<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/ai-box.eu\/en\/ai-pipeline-en\/yolov5-training-a-neural-network-for-pfm-1-antipersonnel-mine-detection\/818\/#Test_neural_network\" >Test neural network<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/ai-box.eu\/en\/ai-pipeline-en\/yolov5-training-a-neural-network-for-pfm-1-antipersonnel-mine-detection\/818\/#Summary\" >Summary<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"Set_up_Anaconda_environment\"><\/span>Set up Anaconda environment<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>First of all, create the Anaconda environment with the name <code>yolov5<\/code>.<\/p>\n<p style=\"padding-left: 40px;\"><strong>Command: <\/strong><code>conda create --name yolov5<\/code><\/p>\n<p>The following command can be used to display the various environments that have already been created.<\/p>\n<p style=\"padding-left: 40px;\"><strong>Command:<\/strong> <code>conda info --envs<\/code><\/p>\n<p>Whenever we will work with yolo now the environment <code>yolov5<\/code> must be activated.<\/p>\n<p style=\"padding-left: 40px;\"><strong>Command:<\/strong> <code>conda activate yolov5<\/code><\/p>\n<p>Now here is the link to the GitHub project I will use.<\/p>\n<p style=\"padding-left: 40px;\"><strong>URL:<\/strong> <code>https:\/\/github.com\/ultralytics\/yolov5\/wiki\/Train-Custom-Data<\/code><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Set_up_YoloV5_locally\"><\/span>Set up YoloV5 locally<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Now clone the yolov5 repository.<\/p>\n<p style=\"padding-left: 40px;\"><strong>Command:<\/strong> <code>git clone https:\/\/github.com\/ultralytics\/yolov5<\/code><\/p>\n<p>After cloning the repository, please change to the <code>yolov5<\/code> folder.<\/p>\n<p style=\"padding-left: 40px;\"><span class=\"pl-c1\"><strong>Command:<\/strong> <code>cd<\/code><\/span><code> yolov5<\/code><\/p>\n<p>Now install all the necessary libraries.<\/p>\n<p style=\"padding-left: 40px;\"><strong>Command:<\/strong> <code>pip install -r requirements.txt<\/code><\/p>\n<p>After everything has been installed, <code>yolov5<\/code> is ready for use and the training data must be prepared.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Create_training_data_set_of_PFM-1_antipersonnel_mines\"><\/span>Create training data set of PFM-1 antipersonnel mines<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Now please create the training data. As described at the beginning, I used Blender to render the corresponding images of the PFM-1 mine or searched for images of this mine on the Internet. These images of the PFM-1 mines I have then automatically processed to training data and immediately create the YOLO labels for the bounding boxes. I wrote Python programs that automatically placed the transparent images as foreground images on different background images, created the labels for the bounding boxes and applied various filters to the images. So I have created well over 100,000 training datasets or generated over 100GB of data for training. How good the data really is and my approach to it remains to be seen.<\/p>\n<h3 class=\"gh-header-title mb-2 lh-condensed f1 mr-0 flex-auto wb-break-word\"><span class=\"ez-toc-section\" id=\"Training_with_Negative_Images\"><\/span>Training with Negative Images<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>To reduce the fals positive during the detection process of YOLO it is important to add to your training data images with no labels. You need to know from your environment which objects in your picture will result in a false positive detecion. After adding those images to you data set and when the dataset is being scanned these images should show up as &#8216;missing&#8217; (if you have not supplied a label file), or &#8217;empty&#8217; if you supplied an empty label file. Those images with an empty label file or missing one are both treated identically and both types of images will help you to reduce false positive detections. In my case a lot of leaves are detected as PFM-1 mines which are false positive detections I do not want.<\/p>\n<div id=\"attachment_825\" style=\"width: 1034px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/ai-box.eu\/wp-content\/uploads\/2023\/05\/PFM-1-anti-personnel-landmine-false-positive.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-825\" class=\"size-full wp-image-825\" src=\"https:\/\/ai-box.eu\/wp-content\/uploads\/2023\/05\/PFM-1-anti-personnel-landmine-false-positive.jpg\" alt=\"PFM-1 anti-personnel landmine false positive\" width=\"1024\" height=\"768\" srcset=\"https:\/\/ai-box.eu\/wp-content\/uploads\/2023\/05\/PFM-1-anti-personnel-landmine-false-positive.jpg 1024w, https:\/\/ai-box.eu\/wp-content\/uploads\/2023\/05\/PFM-1-anti-personnel-landmine-false-positive-300x225.jpg 300w, https:\/\/ai-box.eu\/wp-content\/uploads\/2023\/05\/PFM-1-anti-personnel-landmine-false-positive-768x576.jpg 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><p id=\"caption-attachment-825\" class=\"wp-caption-text\">PFM-1 anti-personnel landmine false positive<\/p><\/div>\n<h3><span class=\"ez-toc-section\" id=\"Training_data_with_Yolo_labels\"><\/span>Training data with Yolo labels<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>To check if my training data created with my Python programs really have the appropriate labels I installed labelImg and sampled the training data.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Prepare_training_dataset_for_YoloV5\"><\/span>Prepare training dataset for YoloV5<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Here is the structure of a training data set that follows exactly the specifications of YOLO with the division between image and label and the various subfolders for training, testing and validation during training.<\/p>\n<ul>\n<li>dataset_pfm-1\n<ul>\n<li>images\n<ul>\n<li>test<\/li>\n<li>train<\/li>\n<li>val<\/li>\n<\/ul>\n<\/li>\n<li>labels\n<ul>\n<li>test<\/li>\n<li>train<\/li>\n<li>val<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h3><span class=\"ez-toc-section\" id=\"Split_data\"><\/span>Split data<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Again, I let a Python program do the partitioning, creating the training data set as follows in its distribution.<\/p>\n<ul>\n<li>train: 70%<\/li>\n<li>test: 20%<\/li>\n<li>val: 10%<\/li>\n<\/ul>\n<p><strong>Example calculation:<\/strong><\/p>\n<ul>\n<li>2,300 records and one record consists of image and label so 4,600 files.<\/li>\n<li>2.300 \/ 100 = 23<\/li>\n<li>Number of training data: 70 * 23 = 1.610<\/li>\n<li>Number of test data: 20 * 23 = 460<\/li>\n<li>Number of validation data: 10 * 23 = 230<\/li>\n<\/ul>\n<h3><span class=\"ez-toc-section\" id=\"Training_Konfigurieren\"><\/span>Training Konfigurieren<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>To start the training you need a configuration file that describes where exactly the data for the training is located. This pfm-1.yaml file looks like this.<\/p>\n<p style=\"padding-left: 40px;\"><code># Train\/val\/test sets as 1) dir: path\/to\/imgs, 2) file: path\/to\/imgs.txt, or 3) list: [path\/to\/imgs1, path\/to\/imgs2, ..]<\/code><br \/>\n<code>path: \/media\/ingmar\/data\/Pictures\/02_PFM-1-Pictures\/02_training_data\/20230514_new_training_data # dataset root dir<\/code><br \/>\n<code>train: images\/train # train images (relative to 'path') 128 images<\/code><br \/>\n<code>val: images\/val # val images (relative to 'path') 128 images<\/code><br \/>\n<code>test: images\/test # test images (optional)<\/code><\/p>\n<p style=\"padding-left: 40px;\"><code># Classes<\/code><br \/>\n<code>names:<\/code><br \/>\n<code>0: PFM-1<\/code><\/p>\n<p>Here is an overview of which pre-trained Yolo models are available. For my tests and experiments I used the model YOLOv5m.<\/p>\n<table style=\"width: 46.4923%; height: 380px;\">\n<thead>\n<tr style=\"height: 80px;\">\n<th style=\"width: 87px; height: 80px;\">Model<\/th>\n<th style=\"width: 56px; height: 80px;\">size<br \/>\n<sup>(pixels)<\/sup><\/th>\n<th style=\"width: 64px; height: 80px;\">mAP<sup>val<br \/>\n50-95<\/sup><\/th>\n<th style=\"width: 64px; height: 80px;\">mAP<sup>val<br \/>\n50<\/sup><\/th>\n<th style=\"width: 54px; height: 80px;\">Speed<br \/>\n<sup>CPU b1<br \/>\n(ms)<\/sup><\/th>\n<th style=\"width: 58px; height: 80px;\">Speed<br \/>\n<sup>V100 b1<br \/>\n(ms)<\/sup><\/th>\n<th style=\"width: 68px; height: 80px;\">Speed<br \/>\n<sup>V100 b32<br \/>\n(ms)<\/sup><\/th>\n<th style=\"width: 66px; height: 80px;\">params<br \/>\n<sup>(M)<\/sup><\/th>\n<th style=\"width: 69px; height: 80px;\">FLOPs<br \/>\n<sup>@640 (B)<\/sup><\/th>\n<th style=\"width: 4px; height: 80px;\">Kommentar<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr style=\"height: 25px;\">\n<td style=\"width: 87px; height: 25px;\"><a href=\"https:\/\/github.com\/ultralytics\/yolov5\/releases\/download\/v7.0\/yolov5n.pt\">YOLOv5n<\/a><\/td>\n<td style=\"width: 56px; height: 25px;\">640<\/td>\n<td style=\"width: 64px; height: 25px;\">28.0<\/td>\n<td style=\"width: 64px; height: 25px;\">45.7<\/td>\n<td style=\"width: 54px; height: 25px;\"><strong>45<\/strong><\/td>\n<td style=\"width: 58px; height: 25px;\"><strong>6.3<\/strong><\/td>\n<td style=\"width: 68px; height: 25px;\"><strong>0.6<\/strong><\/td>\n<td style=\"width: 66px; height: 25px;\"><strong>1.9<\/strong><\/td>\n<td style=\"width: 69px; height: 25px;\"><strong>4.5<\/strong><\/td>\n<td style=\"width: 4px; height: 25px;\"><strong>\u00a0<\/strong><\/td>\n<\/tr>\n<tr style=\"height: 25px;\">\n<td style=\"width: 87px; height: 25px;\"><a href=\"https:\/\/github.com\/ultralytics\/yolov5\/releases\/download\/v7.0\/yolov5s.pt\">YOLOv5s<\/a><\/td>\n<td style=\"width: 56px; height: 25px;\">640<\/td>\n<td style=\"width: 64px; height: 25px;\">37.4<\/td>\n<td style=\"width: 64px; height: 25px;\">56.8<\/td>\n<td style=\"width: 54px; height: 25px;\">98<\/td>\n<td style=\"width: 58px; height: 25px;\">6.4<\/td>\n<td style=\"width: 68px; height: 25px;\">0.9<\/td>\n<td style=\"width: 66px; height: 25px;\">7.2<\/td>\n<td style=\"width: 69px; height: 25px;\">16.5<\/td>\n<td style=\"width: 4px; height: 25px;\">okay<\/td>\n<\/tr>\n<tr style=\"height: 25px;\">\n<td style=\"width: 87px; height: 25px;\"><a href=\"https:\/\/github.com\/ultralytics\/yolov5\/releases\/download\/v7.0\/yolov5m.pt\">YOLOv5m<\/a><\/td>\n<td style=\"width: 56px; height: 25px;\">640<\/td>\n<td style=\"width: 64px; height: 25px;\">45.4<\/td>\n<td style=\"width: 64px; height: 25px;\">64.1<\/td>\n<td style=\"width: 54px; height: 25px;\">224<\/td>\n<td style=\"width: 58px; height: 25px;\">8.2<\/td>\n<td style=\"width: 68px; height: 25px;\">1.7<\/td>\n<td style=\"width: 66px; height: 25px;\">21.2<\/td>\n<td style=\"width: 69px; height: 25px;\">49.0<\/td>\n<td style=\"width: 4px; height: 25px;\"><\/td>\n<\/tr>\n<tr style=\"height: 25px;\">\n<td style=\"width: 87px; height: 25px;\"><a href=\"https:\/\/github.com\/ultralytics\/yolov5\/releases\/download\/v7.0\/yolov5l.pt\">YOLOv5l<\/a><\/td>\n<td style=\"width: 56px; height: 25px;\">640<\/td>\n<td style=\"width: 64px; height: 25px;\">49.0<\/td>\n<td style=\"width: 64px; height: 25px;\">67.3<\/td>\n<td style=\"width: 54px; height: 25px;\">430<\/td>\n<td style=\"width: 58px; height: 25px;\">10.1<\/td>\n<td style=\"width: 68px; height: 25px;\">2.7<\/td>\n<td style=\"width: 66px; height: 25px;\">46.5<\/td>\n<td style=\"width: 69px; height: 25px;\">109.1<\/td>\n<td style=\"width: 4px; height: 25px;\"><\/td>\n<\/tr>\n<tr style=\"height: 25px;\">\n<td style=\"width: 87px; height: 25px;\"><a href=\"https:\/\/github.com\/ultralytics\/yolov5\/releases\/download\/v7.0\/yolov5x.pt\">YOLOv5x<\/a><\/td>\n<td style=\"width: 56px; height: 25px;\">640<\/td>\n<td style=\"width: 64px; height: 25px;\">50.7<\/td>\n<td style=\"width: 64px; height: 25px;\">68.9<\/td>\n<td style=\"width: 54px; height: 25px;\">766<\/td>\n<td style=\"width: 58px; height: 25px;\">12.1<\/td>\n<td style=\"width: 68px; height: 25px;\">4.8<\/td>\n<td style=\"width: 66px; height: 25px;\">86.7<\/td>\n<td style=\"width: 69px; height: 25px;\">205.7<\/td>\n<td style=\"width: 4px; height: 25px;\"><\/td>\n<\/tr>\n<tr style=\"height: 25px;\">\n<td style=\"width: 87px; height: 25px;\"><\/td>\n<td style=\"width: 56px; height: 25px;\"><\/td>\n<td style=\"width: 64px; height: 25px;\"><\/td>\n<td style=\"width: 64px; height: 25px;\"><\/td>\n<td style=\"width: 54px; height: 25px;\"><\/td>\n<td style=\"width: 58px; height: 25px;\"><\/td>\n<td style=\"width: 68px; height: 25px;\"><\/td>\n<td style=\"width: 66px; height: 25px;\"><\/td>\n<td style=\"width: 69px; height: 25px;\"><\/td>\n<td style=\"width: 4px; height: 25px;\"><\/td>\n<\/tr>\n<tr style=\"height: 25px;\">\n<td style=\"width: 87px; height: 25px;\"><a href=\"https:\/\/github.com\/ultralytics\/yolov5\/releases\/download\/v7.0\/yolov5n6.pt\">YOLOv5n6<\/a><\/td>\n<td style=\"width: 56px; height: 25px;\">1280<\/td>\n<td style=\"width: 64px; height: 25px;\">36.0<\/td>\n<td style=\"width: 64px; height: 25px;\">54.4<\/td>\n<td style=\"width: 54px; height: 25px;\">153<\/td>\n<td style=\"width: 58px; height: 25px;\">8.1<\/td>\n<td style=\"width: 68px; height: 25px;\">2.1<\/td>\n<td style=\"width: 66px; height: 25px;\">3.2<\/td>\n<td style=\"width: 69px; height: 25px;\">4.6<\/td>\n<td style=\"width: 4px; height: 25px;\"><\/td>\n<\/tr>\n<tr style=\"height: 25px;\">\n<td style=\"width: 87px; height: 25px;\"><a href=\"https:\/\/github.com\/ultralytics\/yolov5\/releases\/download\/v7.0\/yolov5s6.pt\">YOLOv5s6<\/a><\/td>\n<td style=\"width: 56px; height: 25px;\">1280<\/td>\n<td style=\"width: 64px; height: 25px;\">44.8<\/td>\n<td style=\"width: 64px; height: 25px;\">63.7<\/td>\n<td style=\"width: 54px; height: 25px;\">385<\/td>\n<td style=\"width: 58px; height: 25px;\">8.2<\/td>\n<td style=\"width: 68px; height: 25px;\">3.6<\/td>\n<td style=\"width: 66px; height: 25px;\">12.6<\/td>\n<td style=\"width: 69px; height: 25px;\">16.8<\/td>\n<td style=\"width: 4px; height: 25px;\"><\/td>\n<\/tr>\n<tr style=\"height: 25px;\">\n<td style=\"width: 87px; height: 25px;\"><a href=\"https:\/\/github.com\/ultralytics\/yolov5\/releases\/download\/v7.0\/yolov5m6.pt\">YOLOv5m6<\/a><\/td>\n<td style=\"width: 56px; height: 25px;\">1280<\/td>\n<td style=\"width: 64px; height: 25px;\">51.3<\/td>\n<td style=\"width: 64px; height: 25px;\">69.3<\/td>\n<td style=\"width: 54px; height: 25px;\">887<\/td>\n<td style=\"width: 58px; height: 25px;\">11.1<\/td>\n<td style=\"width: 68px; height: 25px;\">6.8<\/td>\n<td style=\"width: 66px; height: 25px;\">35.7<\/td>\n<td style=\"width: 69px; height: 25px;\">50.0<\/td>\n<td style=\"width: 4px; height: 25px;\"><\/td>\n<\/tr>\n<tr style=\"height: 25px;\">\n<td style=\"width: 87px; height: 25px;\"><a href=\"https:\/\/github.com\/ultralytics\/yolov5\/releases\/download\/v7.0\/yolov5l6.pt\">YOLOv5l6<\/a><\/td>\n<td style=\"width: 56px; height: 25px;\">1280<\/td>\n<td style=\"width: 64px; height: 25px;\">53.7<\/td>\n<td style=\"width: 64px; height: 25px;\">71.3<\/td>\n<td style=\"width: 54px; height: 25px;\">1784<\/td>\n<td style=\"width: 58px; height: 25px;\">15.8<\/td>\n<td style=\"width: 68px; height: 25px;\">10.5<\/td>\n<td style=\"width: 66px; height: 25px;\">76.8<\/td>\n<td style=\"width: 69px; height: 25px;\">111.4<\/td>\n<td style=\"width: 4px; height: 25px;\"><\/td>\n<\/tr>\n<tr style=\"height: 50px;\">\n<td style=\"width: 87px; height: 50px;\"><a href=\"https:\/\/github.com\/ultralytics\/yolov5\/releases\/download\/v7.0\/yolov5x6.pt\">YOLOv5x6<\/a><br \/>\n+ <a href=\"https:\/\/docs.ultralytics.com\/yolov5\/tutorials\/test_time_augmentation\" rel=\"nofollow\">TTA<\/a><\/td>\n<td style=\"width: 56px; height: 50px;\">1280<br \/>\n1536<\/td>\n<td style=\"width: 64px; height: 50px;\">55.0<br \/>\n<strong>55.8<\/strong><\/td>\n<td style=\"width: 64px; height: 50px;\">72.7<br \/>\n<strong>72.7<\/strong><\/td>\n<td style=\"width: 54px; height: 50px;\">3136<br \/>\n&#8211;<\/td>\n<td style=\"width: 58px; height: 50px;\">26.2<br \/>\n&#8211;<\/td>\n<td style=\"width: 68px; height: 50px;\">19.4<br \/>\n&#8211;<\/td>\n<td style=\"width: 66px; height: 50px;\">140.7<br \/>\n&#8211;<\/td>\n<td style=\"width: 69px; height: 50px;\">209.8<br \/>\n&#8211;<\/td>\n<td style=\"width: 4px; height: 50px;\"><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Quelle: <a href=\"https:\/\/github.com\/ultralytics\/yolov5#pretrained-checkpoints\" target=\"_blank\" rel=\"noopener\">https:\/\/github.com\/ultralytics\/yolov5#pretrained-checkpoints<\/a><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Start_training\"><\/span>Start training<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Once the training data is prepared and the configuration file is created, the training can be started. The command looks like this.<\/p>\n<p style=\"padding-left: 40px;\"><strong>Command:<\/strong> <code>python3 train.py --img 640 --batch 32 --epochs 30 --data \/media\/ingmar\/data\/data_backup\/yolo\/pfm-1-single-dataset-yolo\/pfm-1.yaml --weights yolov5s.pt<\/code><\/p>\n<p>Here is a screenshot of the current training exp031 which takes me over 7 days and uses 75,000 records.<\/p>\n<div id=\"attachment_812\" style=\"width: 1034px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/ai-box.eu\/wp-content\/uploads\/2023\/05\/PFM-1-anti-personnel-landmine-active-YOLOv5m-training-1024x526.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-812\" class=\"size-large wp-image-812\" src=\"https:\/\/ai-box.eu\/wp-content\/uploads\/2023\/05\/PFM-1-anti-personnel-landmine-active-YOLOv5m-training-1024x526.png\" alt=\"PFM-1 anti-personnel landmine active YOLOv5m training\" width=\"1024\" height=\"526\" srcset=\"https:\/\/ai-box.eu\/wp-content\/uploads\/2023\/05\/PFM-1-anti-personnel-landmine-active-YOLOv5m-training-1024x526.png 1024w, https:\/\/ai-box.eu\/wp-content\/uploads\/2023\/05\/PFM-1-anti-personnel-landmine-active-YOLOv5m-training-300x154.png 300w, https:\/\/ai-box.eu\/wp-content\/uploads\/2023\/05\/PFM-1-anti-personnel-landmine-active-YOLOv5m-training-768x394.png 768w, https:\/\/ai-box.eu\/wp-content\/uploads\/2023\/05\/PFM-1-anti-personnel-landmine-active-YOLOv5m-training-1080x554.png 1080w, https:\/\/ai-box.eu\/wp-content\/uploads\/2023\/05\/PFM-1-anti-personnel-landmine-active-YOLOv5m-training.png 1389w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><p id=\"caption-attachment-812\" class=\"wp-caption-text\">PFM-1 anti-personnel landmine active YOLOv5m training<\/p><\/div>\n<h2><span class=\"ez-toc-section\" id=\"Test_neural_network\"><\/span>Test neural network<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Now it is of course exciting how well the own neural network or the YOLOv5m network works. For this I have a few test images that I give to the neural network and draw the bounding boxes.<\/p>\n<p style=\"padding-left: 40px;\"><strong>Command:<\/strong> <code>python3 detect.py --source \/media\/ingmar\/data\/data_backup\/pfm-1-internet --weights runs\/train\/exp5\/weights\/best.pt --conf 0.6 --iou 0.45 --augment --project run_pfm_1 --name detect_pfm_1_test<\/code><\/p>\n<p>Of course, such a test is very subjective and does not really tell anything. Therefore, there is also a Python program for YOLOv5 that helps you professionally with the evaluation. The command looks like this to start the evaluation. The only important thing is that the data set used for the evaluation was not part of the training data.<\/p>\n<p style=\"padding-left: 40px;\"><strong>Command:<\/strong> python3 val.py &#8211;batch 64 &#8211;data \/media\/ingmar\/data\/Pictures\/02_PFM-1-Pictures\/04_validation_data\/data.yaml &#8211;weights runs\/train\/exp31\/weights\/best.pt &#8211;task train &#8211;project runs_pfm_1_test\u00a0 &#8211;name Validation &#8211;augment<\/p>\n<p>Now you get a detailed evaluation of how well your trained YOLO net recognizes the object it was trained for.<\/p>\n<p>The following video shows an intermediate state of my work. For the recording I printed out a PFM-1 antipersonnel mine and colored it green.<\/p>\n<div id=\"attachment_814\" style=\"width: 1034px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/www.youtube.com\/watch?v=UnVMwPBleXc\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-814\" class=\"wp-image-814 size-large\" src=\"https:\/\/ai-box.eu\/wp-content\/uploads\/2023\/05\/PFM-1-anti-personnel-landmine-video-exp031-1024x576.png\" alt=\"PFM-1 anti personnel landmine video exp031\" width=\"1024\" height=\"576\" srcset=\"https:\/\/ai-box.eu\/wp-content\/uploads\/2023\/05\/PFM-1-anti-personnel-landmine-video-exp031-1024x576.png 1024w, https:\/\/ai-box.eu\/wp-content\/uploads\/2023\/05\/PFM-1-anti-personnel-landmine-video-exp031-300x169.png 300w, https:\/\/ai-box.eu\/wp-content\/uploads\/2023\/05\/PFM-1-anti-personnel-landmine-video-exp031-768x432.png 768w, https:\/\/ai-box.eu\/wp-content\/uploads\/2023\/05\/PFM-1-anti-personnel-landmine-video-exp031-1080x608.png 1080w, https:\/\/ai-box.eu\/wp-content\/uploads\/2023\/05\/PFM-1-anti-personnel-landmine-video-exp031.png 1283w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><p id=\"caption-attachment-814\" class=\"wp-caption-text\">PFM-1 anti personnel landmine video exp031<\/p><\/div>\n<h2><span class=\"ez-toc-section\" id=\"Summary\"><\/span>Summary<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>I am so far satisfied how well the training with synthetic data works. As the small video shows, the training data set still has potential to be improved. In exchange with other groups working on this topic I think it will be possible to build a good detector for this type of mines even if the environment has a big influence on the detection. But it is an excellent example to use artificial intelligence for something very positive for people.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This paper is about training a neural network based on YOLOv5. This YOLO network should be able to recognize PFM-1 anti-personnel mines in order to support the automated detection of these mines. Since this is my first time working with YOLOv5 and synthetic data, I am curious about the results that a validation dataset will [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":811,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"categories":[32,51,50],"tags":[125,84,122,124,89,121,79,126,127,123,49,128,129],"class_list":["post-818","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ai-pipeline-en","category-software-en","category-top-story-en","tag-anti-personnel-landmines","tag-configuration","tag-data","tag-detection","tag-installation-en","tag-instruction","tag-konfiguration","tag-object-detection","tag-pfm-1-en","tag-setup","tag-training-en","tag-yolo-en","tag-yolov5-en","et-has-post-format-content","et_post_format-et-post-format-standard"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>YOLOv5 - Training a neural network for PFM-1 antipersonnel mine detection - Exploring the Future: Inside the AI Box<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/ai-box.eu\/en\/ai-pipeline-en\/yolov5-training-a-neural-network-for-pfm-1-antipersonnel-mine-detection\/818\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"YOLOv5 - Training a neural network for PFM-1 antipersonnel mine detection - Exploring the Future: Inside the AI Box\" \/>\n<meta property=\"og:description\" content=\"This paper is about training a neural network based on YOLOv5. This YOLO network should be able to recognize PFM-1 anti-personnel mines in order to support the automated detection of these mines. Since this is my first time working with YOLOv5 and synthetic data, I am curious about the results that a validation dataset will [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/ai-box.eu\/en\/ai-pipeline-en\/yolov5-training-a-neural-network-for-pfm-1-antipersonnel-mine-detection\/818\/\" \/>\n<meta property=\"og:site_name\" content=\"Exploring the Future: Inside the AI Box\" \/>\n<meta property=\"article:published_time\" content=\"2023-05-18T08:50:25+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-05-26T04:21:42+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/ai-box.eu\/wp-content\/uploads\/2023\/05\/PFM-1-anti-personnel-landmine-training-data-overview.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1330\" \/>\n\t<meta property=\"og:image:height\" content=\"998\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Maker\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@Ingmar_Stapel\" \/>\n<meta name=\"twitter:site\" content=\"@Ingmar_Stapel\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Maker\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/ai-box.eu\\\/en\\\/ai-pipeline-en\\\/yolov5-training-a-neural-network-for-pfm-1-antipersonnel-mine-detection\\\/818\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/ai-box.eu\\\/en\\\/ai-pipeline-en\\\/yolov5-training-a-neural-network-for-pfm-1-antipersonnel-mine-detection\\\/818\\\/\"},\"author\":{\"name\":\"Maker\",\"@id\":\"https:\\\/\\\/ai-box.eu\\\/en\\\/#\\\/schema\\\/person\\\/cc91d08618b3feeef6926591b465eab1\"},\"headline\":\"YOLOv5 &#8211; Training a neural network for PFM-1 antipersonnel mine detection\",\"datePublished\":\"2023-05-18T08:50:25+00:00\",\"dateModified\":\"2023-05-26T04:21:42+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/ai-box.eu\\\/en\\\/ai-pipeline-en\\\/yolov5-training-a-neural-network-for-pfm-1-antipersonnel-mine-detection\\\/818\\\/\"},\"wordCount\":1337,\"commentCount\":2,\"image\":{\"@id\":\"https:\\\/\\\/ai-box.eu\\\/en\\\/ai-pipeline-en\\\/yolov5-training-a-neural-network-for-pfm-1-antipersonnel-mine-detection\\\/818\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/ai-box.eu\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/PFM-1-anti-personnel-landmine-training-data-overview.png\",\"keywords\":[\"anti-personnel landmines\",\"configuration\",\"data\",\"detection\",\"Installation\",\"instruction\",\"Konfiguration\",\"object detection\",\"PFM-1\",\"setup\",\"training\",\"YOLO\",\"YOLOv5\"],\"articleSection\":[\"AI Pipeline\",\"Software\",\"Top story\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/ai-box.eu\\\/en\\\/ai-pipeline-en\\\/yolov5-training-a-neural-network-for-pfm-1-antipersonnel-mine-detection\\\/818\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/ai-box.eu\\\/en\\\/ai-pipeline-en\\\/yolov5-training-a-neural-network-for-pfm-1-antipersonnel-mine-detection\\\/818\\\/\",\"url\":\"https:\\\/\\\/ai-box.eu\\\/en\\\/ai-pipeline-en\\\/yolov5-training-a-neural-network-for-pfm-1-antipersonnel-mine-detection\\\/818\\\/\",\"name\":\"YOLOv5 - Training a neural network for PFM-1 antipersonnel mine detection - Exploring the Future: Inside the AI Box\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/ai-box.eu\\\/en\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/ai-box.eu\\\/en\\\/ai-pipeline-en\\\/yolov5-training-a-neural-network-for-pfm-1-antipersonnel-mine-detection\\\/818\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/ai-box.eu\\\/en\\\/ai-pipeline-en\\\/yolov5-training-a-neural-network-for-pfm-1-antipersonnel-mine-detection\\\/818\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/ai-box.eu\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/PFM-1-anti-personnel-landmine-training-data-overview.png\",\"datePublished\":\"2023-05-18T08:50:25+00:00\",\"dateModified\":\"2023-05-26T04:21:42+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/ai-box.eu\\\/en\\\/#\\\/schema\\\/person\\\/cc91d08618b3feeef6926591b465eab1\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/ai-box.eu\\\/en\\\/ai-pipeline-en\\\/yolov5-training-a-neural-network-for-pfm-1-antipersonnel-mine-detection\\\/818\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/ai-box.eu\\\/en\\\/ai-pipeline-en\\\/yolov5-training-a-neural-network-for-pfm-1-antipersonnel-mine-detection\\\/818\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/ai-box.eu\\\/en\\\/ai-pipeline-en\\\/yolov5-training-a-neural-network-for-pfm-1-antipersonnel-mine-detection\\\/818\\\/#primaryimage\",\"url\":\"https:\\\/\\\/ai-box.eu\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/PFM-1-anti-personnel-landmine-training-data-overview.png\",\"contentUrl\":\"https:\\\/\\\/ai-box.eu\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/PFM-1-anti-personnel-landmine-training-data-overview.png\",\"width\":1330,\"height\":998,\"caption\":\"PFM-1 anti-personnel landmine training data overview\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/ai-box.eu\\\/en\\\/ai-pipeline-en\\\/yolov5-training-a-neural-network-for-pfm-1-antipersonnel-mine-detection\\\/818\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Start\",\"item\":\"https:\\\/\\\/ai-box.eu\\\/en\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"YOLOv5 &#8211; Training a neural network for PFM-1 antipersonnel mine detection\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/ai-box.eu\\\/en\\\/#website\",\"url\":\"https:\\\/\\\/ai-box.eu\\\/en\\\/\",\"name\":\"Exploring the Future: Inside the AI Box\",\"description\":\"Inside the AI Box, we share our experiences and discoveries in the world of artificial intelligence.\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/ai-box.eu\\\/en\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/ai-box.eu\\\/en\\\/#\\\/schema\\\/person\\\/cc91d08618b3feeef6926591b465eab1\",\"name\":\"Maker\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/e96b93fc3c7e50c1f21c5c6b1f146dc4867936141360830b328947b32cacf93a?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/e96b93fc3c7e50c1f21c5c6b1f146dc4867936141360830b328947b32cacf93a?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/e96b93fc3c7e50c1f21c5c6b1f146dc4867936141360830b328947b32cacf93a?s=96&d=mm&r=g\",\"caption\":\"Maker\"},\"description\":\"I live in Bavaria near Munich. In my head I always have many topics and try out especially in the field of Internet new media much in my spare time. I write on the blog because it makes me fun to report about the things that inspire me. I am happy about every comment, about suggestion and very about questions.\",\"sameAs\":[\"https:\\\/\\\/ai-box.eu\"],\"url\":\"https:\\\/\\\/ai-box.eu\\\/en\\\/author\\\/ingmars\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"YOLOv5 - Training a neural network for PFM-1 antipersonnel mine detection - Exploring the Future: Inside the AI Box","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/ai-box.eu\/en\/ai-pipeline-en\/yolov5-training-a-neural-network-for-pfm-1-antipersonnel-mine-detection\/818\/","og_locale":"en_US","og_type":"article","og_title":"YOLOv5 - Training a neural network for PFM-1 antipersonnel mine detection - Exploring the Future: Inside the AI Box","og_description":"This paper is about training a neural network based on YOLOv5. This YOLO network should be able to recognize PFM-1 anti-personnel mines in order to support the automated detection of these mines. Since this is my first time working with YOLOv5 and synthetic data, I am curious about the results that a validation dataset will [&hellip;]","og_url":"https:\/\/ai-box.eu\/en\/ai-pipeline-en\/yolov5-training-a-neural-network-for-pfm-1-antipersonnel-mine-detection\/818\/","og_site_name":"Exploring the Future: Inside the AI Box","article_published_time":"2023-05-18T08:50:25+00:00","article_modified_time":"2023-05-26T04:21:42+00:00","og_image":[{"width":1330,"height":998,"url":"https:\/\/ai-box.eu\/wp-content\/uploads\/2023\/05\/PFM-1-anti-personnel-landmine-training-data-overview.png","type":"image\/png"}],"author":"Maker","twitter_card":"summary_large_image","twitter_creator":"@Ingmar_Stapel","twitter_site":"@Ingmar_Stapel","twitter_misc":{"Written by":"Maker","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/ai-box.eu\/en\/ai-pipeline-en\/yolov5-training-a-neural-network-for-pfm-1-antipersonnel-mine-detection\/818\/#article","isPartOf":{"@id":"https:\/\/ai-box.eu\/en\/ai-pipeline-en\/yolov5-training-a-neural-network-for-pfm-1-antipersonnel-mine-detection\/818\/"},"author":{"name":"Maker","@id":"https:\/\/ai-box.eu\/en\/#\/schema\/person\/cc91d08618b3feeef6926591b465eab1"},"headline":"YOLOv5 &#8211; Training a neural network for PFM-1 antipersonnel mine detection","datePublished":"2023-05-18T08:50:25+00:00","dateModified":"2023-05-26T04:21:42+00:00","mainEntityOfPage":{"@id":"https:\/\/ai-box.eu\/en\/ai-pipeline-en\/yolov5-training-a-neural-network-for-pfm-1-antipersonnel-mine-detection\/818\/"},"wordCount":1337,"commentCount":2,"image":{"@id":"https:\/\/ai-box.eu\/en\/ai-pipeline-en\/yolov5-training-a-neural-network-for-pfm-1-antipersonnel-mine-detection\/818\/#primaryimage"},"thumbnailUrl":"https:\/\/ai-box.eu\/wp-content\/uploads\/2023\/05\/PFM-1-anti-personnel-landmine-training-data-overview.png","keywords":["anti-personnel landmines","configuration","data","detection","Installation","instruction","Konfiguration","object detection","PFM-1","setup","training","YOLO","YOLOv5"],"articleSection":["AI Pipeline","Software","Top story"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/ai-box.eu\/en\/ai-pipeline-en\/yolov5-training-a-neural-network-for-pfm-1-antipersonnel-mine-detection\/818\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/ai-box.eu\/en\/ai-pipeline-en\/yolov5-training-a-neural-network-for-pfm-1-antipersonnel-mine-detection\/818\/","url":"https:\/\/ai-box.eu\/en\/ai-pipeline-en\/yolov5-training-a-neural-network-for-pfm-1-antipersonnel-mine-detection\/818\/","name":"YOLOv5 - Training a neural network for PFM-1 antipersonnel mine detection - Exploring the Future: Inside the AI Box","isPartOf":{"@id":"https:\/\/ai-box.eu\/en\/#website"},"primaryImageOfPage":{"@id":"https:\/\/ai-box.eu\/en\/ai-pipeline-en\/yolov5-training-a-neural-network-for-pfm-1-antipersonnel-mine-detection\/818\/#primaryimage"},"image":{"@id":"https:\/\/ai-box.eu\/en\/ai-pipeline-en\/yolov5-training-a-neural-network-for-pfm-1-antipersonnel-mine-detection\/818\/#primaryimage"},"thumbnailUrl":"https:\/\/ai-box.eu\/wp-content\/uploads\/2023\/05\/PFM-1-anti-personnel-landmine-training-data-overview.png","datePublished":"2023-05-18T08:50:25+00:00","dateModified":"2023-05-26T04:21:42+00:00","author":{"@id":"https:\/\/ai-box.eu\/en\/#\/schema\/person\/cc91d08618b3feeef6926591b465eab1"},"breadcrumb":{"@id":"https:\/\/ai-box.eu\/en\/ai-pipeline-en\/yolov5-training-a-neural-network-for-pfm-1-antipersonnel-mine-detection\/818\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/ai-box.eu\/en\/ai-pipeline-en\/yolov5-training-a-neural-network-for-pfm-1-antipersonnel-mine-detection\/818\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/ai-box.eu\/en\/ai-pipeline-en\/yolov5-training-a-neural-network-for-pfm-1-antipersonnel-mine-detection\/818\/#primaryimage","url":"https:\/\/ai-box.eu\/wp-content\/uploads\/2023\/05\/PFM-1-anti-personnel-landmine-training-data-overview.png","contentUrl":"https:\/\/ai-box.eu\/wp-content\/uploads\/2023\/05\/PFM-1-anti-personnel-landmine-training-data-overview.png","width":1330,"height":998,"caption":"PFM-1 anti-personnel landmine training data overview"},{"@type":"BreadcrumbList","@id":"https:\/\/ai-box.eu\/en\/ai-pipeline-en\/yolov5-training-a-neural-network-for-pfm-1-antipersonnel-mine-detection\/818\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Start","item":"https:\/\/ai-box.eu\/en\/"},{"@type":"ListItem","position":2,"name":"YOLOv5 &#8211; Training a neural network for PFM-1 antipersonnel mine detection"}]},{"@type":"WebSite","@id":"https:\/\/ai-box.eu\/en\/#website","url":"https:\/\/ai-box.eu\/en\/","name":"Exploring the Future: Inside the AI Box","description":"Inside the AI Box, we share our experiences and discoveries in the world of artificial intelligence.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/ai-box.eu\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/ai-box.eu\/en\/#\/schema\/person\/cc91d08618b3feeef6926591b465eab1","name":"Maker","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/e96b93fc3c7e50c1f21c5c6b1f146dc4867936141360830b328947b32cacf93a?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/e96b93fc3c7e50c1f21c5c6b1f146dc4867936141360830b328947b32cacf93a?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/e96b93fc3c7e50c1f21c5c6b1f146dc4867936141360830b328947b32cacf93a?s=96&d=mm&r=g","caption":"Maker"},"description":"I live in Bavaria near Munich. In my head I always have many topics and try out especially in the field of Internet new media much in my spare time. I write on the blog because it makes me fun to report about the things that inspire me. I am happy about every comment, about suggestion and very about questions.","sameAs":["https:\/\/ai-box.eu"],"url":"https:\/\/ai-box.eu\/en\/author\/ingmars\/"}]}},"_links":{"self":[{"href":"https:\/\/ai-box.eu\/en\/wp-json\/wp\/v2\/posts\/818","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ai-box.eu\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ai-box.eu\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ai-box.eu\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ai-box.eu\/en\/wp-json\/wp\/v2\/comments?post=818"}],"version-history":[{"count":6,"href":"https:\/\/ai-box.eu\/en\/wp-json\/wp\/v2\/posts\/818\/revisions"}],"predecessor-version":[{"id":829,"href":"https:\/\/ai-box.eu\/en\/wp-json\/wp\/v2\/posts\/818\/revisions\/829"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ai-box.eu\/en\/wp-json\/wp\/v2\/media\/811"}],"wp:attachment":[{"href":"https:\/\/ai-box.eu\/en\/wp-json\/wp\/v2\/media?parent=818"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ai-box.eu\/en\/wp-json\/wp\/v2\/categories?post=818"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ai-box.eu\/en\/wp-json\/wp\/v2\/tags?post=818"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}