{
  "id": 176732,
  "title": "New post-processing trick",
  "url": "/competitions/global-wheat-detection/discussion/176732",
  "author_name": "",
  "post_date": "2020-08-23T07:48:48.406514500Z",
  "votes": 18,
  "comment_count": 2,
  "views": 0,
  "content": "<p>This is what we learnt from shaking down from 10th public to 80th private!</p>\n<p>In our validation, and on the public leaderboard we found that with our faster rcnn model we got a boost in the score by expanding box sizes one pixel in all directions. Without this trick our frcnn score would have placed 17th public and 27th private. However, using late submissions we found that if we shrink the box size by 1 pixel in all directions we would see a lower public score at 89th but the private score would have just got into the gold zone.</p>\n<p>Some analysis one of my teammates did during the comp suggested that the box sizes may be smaller in the private dataset. The post-comp insight we found from this is that rather than doing a universal box size adjustment it may have been better to make box size adjustments based on the initial box size. We believe it would have been effective to make the small boxes smaller and the large boxes larger. If there is enough interest in this topic I can make a kernel to explore this further.</p>",
  "messages": [
    {
      "id": "982260",
      "postDate": "08/23/2020 07:48:48",
      "content": "<p>This is what we learnt from shaking down from 10th public to 80th private!</p>\n<p>In our validation, and on the public leaderboard we found that with our faster rcnn model we got a boost in the score by expanding box sizes one pixel in all directions. Without this trick our frcnn score would have placed 17th public and 27th private. However, using late submissions we found that if we shrink the box size by 1 pixel in all directions we would see a lower public score at 89th but the private score would have just got into the gold zone.</p>\n<p>Some analysis one of my teammates did during the comp suggested that the box sizes may be smaller in the private dataset. The post-comp insight we found from this is that rather than doing a universal box size adjustment it may have been better to make box size adjustments based on the initial box size. We believe it would have been effective to make the small boxes smaller and the large boxes larger. If there is enough interest in this topic I can make a kernel to explore this further.</p>",
      "rawMarkdown": "This is what we learnt from shaking down from 10th public to 80th private!\n\nIn our validation, and on the public leaderboard we found that with our faster rcnn model we got a boost in the score by expanding box sizes one pixel in all directions. Without this trick our frcnn score would have placed 17th public and 27th private. However, using late submissions we found that if we shrink the box size by 1 pixel in all directions we would see a lower public score at 89th but the private score would have just got into the gold zone.\n\nSome analysis one of my teammates did during the comp suggested that the box sizes may be smaller in the private dataset. The post-comp insight we found from this is that rather than doing a universal box size adjustment it may have been better to make box size adjustments based on the initial box size. We believe it would have been effective to make the small boxes smaller and the large boxes larger. If there is enough interest in this topic I can make a kernel to explore this further.",
      "votes": null
    },
    {
      "id": "982900",
      "postDate": "08/23/2020 19:30:00",
      "content": "<p>Nice findings. I also thought about expanding/contracting the predictions but thought it may lead to overfitting on the LB.</p>",
      "rawMarkdown": "Nice findings. I also thought about expanding/contracting the predictions but thought it may lead to overfitting on the LB.",
      "votes": null
    },
    {
      "id": "983298",
      "postDate": "08/24/2020 07:02:19",
      "content": "<p>We knew there was a risk to this approach but since we saw an improvement in our validation and on the leaderboard with this box size adjustment then it was reasonable to try it. This <a href=\"https://www.kaggle.com/c/global-wheat-detection/discussion/176109\" target=\"_blank\">thread</a> especially this <a href=\"https://www.kaggle.com/c/global-wheat-detection/discussion/176109#979137\" target=\"_blank\">comment</a> discusses how others worked on box size adjustment with more success.</p>\n<p>The shakedown was disappointing but I don't regret trying this, at least we learnt something through the process.</p>",
      "rawMarkdown": "We knew there was a risk to this approach but since we saw an improvement in our validation and on the leaderboard with this box size adjustment then it was reasonable to try it. This [thread](https://www.kaggle.com/c/global-wheat-detection/discussion/176109) especially this [comment](https://www.kaggle.com/c/global-wheat-detection/discussion/176109#979137) discusses how others worked on box size adjustment with more success.\n\nThe shakedown was disappointing but I don't regret trying this, at least we learnt something through the process.",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 982900,
      "author_name": "matthewmasters",
      "author_url": "",
      "post_date": "08/23/2020 19:30:00",
      "content": "<p>Nice findings. I also thought about expanding/contracting the predictions but thought it may lead to overfitting on the LB.</p>",
      "votes": null,
      "replies": [
        {
          "id": 983298,
          "author_name": "datahobbit",
          "author_url": "",
          "post_date": "08/24/2020 07:02:19",
          "content": "<p>We knew there was a risk to this approach but since we saw an improvement in our validation and on the leaderboard with this box size adjustment then it was reasonable to try it. This <a href=\"https://www.kaggle.com/c/global-wheat-detection/discussion/176109\" target=\"_blank\">thread</a> especially this <a href=\"https://www.kaggle.com/c/global-wheat-detection/discussion/176109#979137\" target=\"_blank\">comment</a> discusses how others worked on box size adjustment with more success.</p>\n<p>The shakedown was disappointing but I don't regret trying this, at least we learnt something through the process.</p>",
          "votes": null,
          "replies": []
        }
      ]
    }
  ],
  "raw_markdown_by_id": {
    "982260": "This is what we learnt from shaking down from 10th public to 80th private!\n\nIn our validation, and on the public leaderboard we found that with our faster rcnn model we got a boost in the score by expanding box sizes one pixel in all directions. Without this trick our frcnn score would have placed 17th public and 27th private. However, using late submissions we found that if we shrink the box size by 1 pixel in all directions we would see a lower public score at 89th but the private score would have just got into the gold zone.\n\nSome analysis one of my teammates did during the comp suggested that the box sizes may be smaller in the private dataset. The post-comp insight we found from this is that rather than doing a universal box size adjustment it may have been better to make box size adjustments based on the initial box size. We believe it would have been effective to make the small boxes smaller and the large boxes larger. If there is enough interest in this topic I can make a kernel to explore this further.",
    "982900": "Nice findings. I also thought about expanding/contracting the predictions but thought it may lead to overfitting on the LB.",
    "983298": "We knew there was a risk to this approach but since we saw an improvement in our validation and on the leaderboard with this box size adjustment then it was reasonable to try it. This [thread](https://www.kaggle.com/c/global-wheat-detection/discussion/176109) especially this [comment](https://www.kaggle.com/c/global-wheat-detection/discussion/176109#979137) discusses how others worked on box size adjustment with more success.\n\nThe shakedown was disappointing but I don't regret trying this, at least we learnt something through the process."
  },
  "source": "meta"
}