{
  "id": 151595,
  "title": "Anchor boxes count",
  "url": "/competitions/global-wheat-detection/discussion/151595",
  "author_name": "",
  "post_date": "2020-05-16T06:26:39.184808700Z",
  "votes": null,
  "comment_count": 1,
  "views": 0,
  "content": "<p>I am new to object detection problems and trying to train a YoloV3 model for this problem.\nI did a describe on dimensions boxes in training data and it seems to have a lot of variation. \n<img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-user-content/o/inbox%2F357928%2Fa642bb1be1706a74dd71fcd63331877e%2FScreen%20Shot%202020-05-15%20at%2011.22.42%20PM.png?generation=1589610207287039&amp;alt=media\" alt=\"\"></p>\n\n<p>Additionally I loaded some images with Anchor boxes and seems like there are a lot of different dimensions.\n<img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-user-content/o/inbox%2F357928%2Fabe249096e439cae1caa6d703c777d72%2FScreen%20Shot%202020-05-15%20at%2011.24.20%20PM.png?generation=1589610280210574&amp;alt=media\" alt=\"\"></p>\n\n<p>I know that the CNN will learn and assign different sizes to the output anchor boxes on prediction but I am confused on how to select the total number of anchor boxes. Looking at the above image, I want to select a big number like &gt; 100 so that my IoU is not very far off and specific box sizes can be found but at the same I fear that it may make my model really hard to train. </p>\n\n<p>What is a good anchor box count generally and how is it determined?</p>",
  "messages": [
    {
      "id": "849879",
      "postDate": "05/16/2020 06:26:39",
      "content": "<p>I am new to object detection problems and trying to train a YoloV3 model for this problem.\nI did a describe on dimensions boxes in training data and it seems to have a lot of variation. \n<img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-user-content/o/inbox%2F357928%2Fa642bb1be1706a74dd71fcd63331877e%2FScreen%20Shot%202020-05-15%20at%2011.22.42%20PM.png?generation=1589610207287039&amp;alt=media\" alt=\"\"></p>\n\n<p>Additionally I loaded some images with Anchor boxes and seems like there are a lot of different dimensions.\n<img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-user-content/o/inbox%2F357928%2Fabe249096e439cae1caa6d703c777d72%2FScreen%20Shot%202020-05-15%20at%2011.24.20%20PM.png?generation=1589610280210574&amp;alt=media\" alt=\"\"></p>\n\n<p>I know that the CNN will learn and assign different sizes to the output anchor boxes on prediction but I am confused on how to select the total number of anchor boxes. Looking at the above image, I want to select a big number like &gt; 100 so that my IoU is not very far off and specific box sizes can be found but at the same I fear that it may make my model really hard to train. </p>\n\n<p>What is a good anchor box count generally and how is it determined?</p>",
      "rawMarkdown": "I am new to object detection problems and trying to train a YoloV3 model for this problem.\nI did a describe on dimensions boxes in training data and it seems to have a lot of variation. \n![](https://www.googleapis.com/download/storage/v1/b/kaggle-user-content/o/inbox%2F357928%2Fa642bb1be1706a74dd71fcd63331877e%2FScreen%20Shot%202020-05-15%20at%2011.22.42%20PM.png?generation=1589610207287039&amp;alt=media)\n \nAdditionally I loaded some images with Anchor boxes and seems like there are a lot of different dimensions.\n![](https://www.googleapis.com/download/storage/v1/b/kaggle-user-content/o/inbox%2F357928%2Fabe249096e439cae1caa6d703c777d72%2FScreen%20Shot%202020-05-15%20at%2011.24.20%20PM.png?generation=1589610280210574&amp;alt=media)\n \nI know that the CNN will learn and assign different sizes to the output anchor boxes on prediction but I am confused on how to select the total number of anchor boxes. Looking at the above image, I want to select a big number like &gt; 100 so that my IoU is not very far off and specific box sizes can be found but at the same I fear that it may make my model really hard to train. \n\nWhat is a good anchor box count generally and how is it determined?",
      "votes": null
    },
    {
      "id": "850325",
      "postDate": "05/16/2020 14:19:21",
      "content": "<p>you have to defined threshold point of IOU\nlike : boxes = boxes[scores &gt;= detection_threshold]</p>",
      "rawMarkdown": "you have to defined threshold point of IOU\nlike : boxes = boxes[scores &gt;= detection_threshold]",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 850325,
      "author_name": "ajax0564",
      "author_url": "",
      "post_date": "05/16/2020 14:19:21",
      "content": "<p>you have to defined threshold point of IOU\nlike : boxes = boxes[scores &gt;= detection_threshold]</p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "849879": "I am new to object detection problems and trying to train a YoloV3 model for this problem.\nI did a describe on dimensions boxes in training data and it seems to have a lot of variation. \n![](https://www.googleapis.com/download/storage/v1/b/kaggle-user-content/o/inbox%2F357928%2Fa642bb1be1706a74dd71fcd63331877e%2FScreen%20Shot%202020-05-15%20at%2011.22.42%20PM.png?generation=1589610207287039&amp;alt=media)\n \nAdditionally I loaded some images with Anchor boxes and seems like there are a lot of different dimensions.\n![](https://www.googleapis.com/download/storage/v1/b/kaggle-user-content/o/inbox%2F357928%2Fabe249096e439cae1caa6d703c777d72%2FScreen%20Shot%202020-05-15%20at%2011.24.20%20PM.png?generation=1589610280210574&amp;alt=media)\n \nI know that the CNN will learn and assign different sizes to the output anchor boxes on prediction but I am confused on how to select the total number of anchor boxes. Looking at the above image, I want to select a big number like &gt; 100 so that my IoU is not very far off and specific box sizes can be found but at the same I fear that it may make my model really hard to train. \n\nWhat is a good anchor box count generally and how is it determined?",
    "850325": "you have to defined threshold point of IOU\nlike : boxes = boxes[scores &gt;= detection_threshold]"
  },
  "source": "meta"
}