{
  "id": 154373,
  "title": "[Bayesian optimization WBF] EfficientDet",
  "url": "/competitions/global-wheat-detection/discussion/154373",
  "author_name": "",
  "post_date": "2020-05-28T06:17:27.214112100Z",
  "votes": 42,
  "comment_count": 15,
  "views": 0,
  "content": "<p>Hi everyone!</p>\n\n<p>I would like to share with you <a href=\"https://www.kaggle.com/shonenkov/bayesian-optimization-wbf-efficientdet\">new kernel about optimizing WBF params for EfficientDet</a>! </p>\n\n<p>Why it may be useful for you? It gives really good boost without additional training.</p>\n\n<p>I have got new scores:\n- 0.7176 --&gt; 0.7193 <a href=\"https://www.kaggle.com/shonenkov/inference-efficientdet\">single</a>\n- 0.7294 --&gt; 0.7330 <a href=\"https://www.kaggle.com/shonenkov/oof-evaluation-mixup-efficientdet?scriptVersionId=34505469\">cutmix</a> --&gt; <a href=\"https://www.kaggle.com/shonenkov/bayesian-optimization-wbf-efficientdet?scriptVersionId=34928761\">new</a>\n- 0.7318 --&gt; 0.7338 <a href=\"https://www.kaggle.com/shonenkov/oof-evaluation-mixup-efficientdet?scriptVersionId=34656263\">cutmix + mixup</a>\n-  0.7375 (ensemble of two above) </p>\n\n<p>You should change values of this params in your inference:</p>\n\n<h2>```</h2>\n\n<hr>\n\n<p>```</p>\n\n<p>Write in comment have got boost or not ;)</p>\n\n<p>P.S. Also I would like to ask you, does it help anyone? Or everyone knows and uses any other values of this parameters? Do you want to know about improvements from me or I need stop with publishing? Thank you for answer in advance! </p>\n\n<p>[EDITED]:</p>\n\n<p>I have updated new version of kernel with optimization parameters for 4 methods: nms, soft_nms, nmw, wbf.</p>",
  "messages": [
    {
      "id": "864688",
      "postDate": "05/28/2020 06:17:27",
      "content": "<p>Hi everyone!</p>\n\n<p>I would like to share with you <a href=\"https://www.kaggle.com/shonenkov/bayesian-optimization-wbf-efficientdet\">new kernel about optimizing WBF params for EfficientDet</a>! </p>\n\n<p>Why it may be useful for you? It gives really good boost without additional training.</p>\n\n<p>I have got new scores:\n- 0.7176 --&gt; 0.7193 <a href=\"https://www.kaggle.com/shonenkov/inference-efficientdet\">single</a>\n- 0.7294 --&gt; 0.7330 <a href=\"https://www.kaggle.com/shonenkov/oof-evaluation-mixup-efficientdet?scriptVersionId=34505469\">cutmix</a> --&gt; <a href=\"https://www.kaggle.com/shonenkov/bayesian-optimization-wbf-efficientdet?scriptVersionId=34928761\">new</a>\n- 0.7318 --&gt; 0.7338 <a href=\"https://www.kaggle.com/shonenkov/oof-evaluation-mixup-efficientdet?scriptVersionId=34656263\">cutmix + mixup</a>\n-  0.7375 (ensemble of two above) </p>\n\n<p>You should change values of this params in your inference:</p>\n\n<h2>```</h2>\n\n<hr>\n\n<p>```</p>\n\n<p>Write in comment have got boost or not ;)</p>\n\n<p>P.S. Also I would like to ask you, does it help anyone? Or everyone knows and uses any other values of this parameters? Do you want to know about improvements from me or I need stop with publishing? Thank you for answer in advance! </p>\n\n<p>[EDITED]:</p>\n\n<p>I have updated new version of kernel with optimization parameters for 4 methods: nms, soft_nms, nmw, wbf.</p>",
      "rawMarkdown": "Hi everyone!\n\nI would like to share with you [new kernel about optimizing WBF params for EfficientDet](https://www.kaggle.com/shonenkov/bayesian-optimization-wbf-efficientdet)! \n\nWhy it may be useful for you? It gives really good boost without additional training.\n\nI have got new scores:\n- 0.7176 --&gt; 0.7193 [single](https://www.kaggle.com/shonenkov/inference-efficientdet)\n- 0.7294 --&gt; 0.7330 [cutmix](https://www.kaggle.com/shonenkov/oof-evaluation-mixup-efficientdet?scriptVersionId=34505469) --&gt; [new](https://www.kaggle.com/shonenkov/bayesian-optimization-wbf-efficientdet?scriptVersionId=34928761)\n- 0.7318 --&gt; 0.7338 [cutmix + mixup](https://www.kaggle.com/shonenkov/oof-evaluation-mixup-efficientdet?scriptVersionId=34656263)\n-  0.7375 (ensemble of two above) \n\nYou should change values of this params in your inference:\n\n```\n------------------------------\n[Best Iou Thr]: 0.44\n[Best Skip Box Thr]: 0.43\n[Best Score]: 0.6953\n------------------------------\n```\n\nWrite in comment have got boost or not ;)\n\nP.S. Also I would like to ask you, does it help anyone? Or everyone knows and uses any other values of this parameters? Do you want to know about improvements from me or I need stop with publishing? Thank you for answer in advance! \n\n[EDITED]:\n\nI have updated new version of kernel with optimization parameters for 4 methods: nms, soft_nms, nmw, wbf.",
      "votes": null
    },
    {
      "id": "864845",
      "postDate": "05/28/2020 08:17:36",
      "content": "<p>I tried your train code, cant get that score...\nthanks for sharing, you are really imporving this compete.</p>",
      "rawMarkdown": "I tried your train code, cant get that score...\nthanks for sharing, you are really imporving this compete.",
      "votes": null
    },
    {
      "id": "867435",
      "postDate": "05/30/2020 09:30:51",
      "content": "<p>Great Kernel!\nLearning a lot from this competition. \nThanks:)</p>",
      "rawMarkdown": "Great Kernel!\nLearning a lot from this competition. \nThanks:)",
      "votes": null
    },
    {
      "id": "867444",
      "postDate": "05/30/2020 09:48:14",
      "content": "<p>welcome! 👍 </p>",
      "rawMarkdown": "welcome! 👍",
      "votes": null
    },
    {
      "id": "869844",
      "postDate": "06/01/2020 10:12:40",
      "content": "<p>Very helpful kernel.</p>\n\n<p>I wonder whether you train from scratch or fine-tune on each fold. I achieved a small boost but maybe i am missing the actual thing.</p>",
      "rawMarkdown": "Very helpful kernel.\n\nI wonder whether you train from scratch or fine-tune on each fold. I achieved a small boost but maybe i am missing the actual thing.",
      "votes": null
    },
    {
      "id": "869869",
      "postDate": "06/01/2020 10:35:23",
      "content": "<p>I don't know why this doesn't work for me\nBefore Bayesian Optimization  : 0.7355\nAfter Bayesian Optimization : 0.7346  </p>",
      "rawMarkdown": "I don't know why this doesn't work for me\nBefore Bayesian Optimization  : 0.7355\nAfter Bayesian Optimization : 0.7346",
      "votes": null
    },
    {
      "id": "869933",
      "postDate": "06/01/2020 11:39:46",
      "content": "<p><a href=\"/gyanaluckydas\">@gyanaluckydas</a> what models did you use? effdet?</p>",
      "rawMarkdown": "gyanaluckydas what models did you use? effdet?",
      "votes": null
    },
    {
      "id": "869965",
      "postDate": "06/01/2020 12:05:31",
      "content": "<p>Yes..effdet with pseudo label</p>",
      "rawMarkdown": "Yes..effdet with pseudo label",
      "votes": null
    },
    {
      "id": "869974",
      "postDate": "06/01/2020 12:13:50",
      "content": "<p><a href=\"/gyanaluckydas\">@gyanaluckydas</a> pseudo labeling approach can shift confidences of models, for this case should run optimizing again  </p>",
      "rawMarkdown": "gyanaluckydas pseudo labeling approach can shift confidences of models, for this case should run optimizing again",
      "votes": null
    },
    {
      "id": "869998",
      "postDate": "06/01/2020 12:22:28",
      "content": "<p>I can't understand...what do u mean by optimizing again</p>",
      "rawMarkdown": "I can't understand...what do u mean by optimizing again",
      "votes": null
    },
    {
      "id": "870001",
      "postDate": "06/01/2020 12:23:41",
      "content": "<p><a href=\"https://www.kaggle.com/shonenkov/bayesian-optimization-wbf-efficientdet\">bayesian-optimization-wbf-efficientdet</a> with using your pseudo labeling. you should use val fold for pseudo-labeling and holdout fold for bayesian.</p>\n\n<p>Welcome!</p>",
      "rawMarkdown": "[bayesian-optimization-wbf-efficientdet](https://www.kaggle.com/shonenkov/bayesian-optimization-wbf-efficientdet) with using your pseudo labeling. you should use val fold for pseudo-labeling and holdout fold for bayesian.\n\nWelcome!",
      "votes": null
    },
    {
      "id": "870024",
      "postDate": "06/01/2020 12:47:08",
      "content": "<p>Thanks.. I will try it</p>",
      "rawMarkdown": "Thanks.. I will try it",
      "votes": null
    },
    {
      "id": "875848",
      "postDate": "06/06/2020 07:52:18",
      "content": "<p>Thanks, your kernels are very instructive!</p>",
      "rawMarkdown": "Thanks, your kernels are very instructive!",
      "votes": null
    },
    {
      "id": "876211",
      "postDate": "06/06/2020 14:31:59",
      "content": "<p>I've noticed that changing the <code>iou_thr</code> for <code>soft_nms</code> does not affect my accuracy at all, any idea why that could be?</p>\n\n<p>Edit: Nevermind, after looking into the source code I understand now. You could remove that parameter from your soft_nms search</p>",
      "rawMarkdown": "I've noticed that changing the `iou_thr` for `soft_nms` does not affect my accuracy at all, any idea why that could be?\n\nEdit: Nevermind, after looking into the source code I understand now. You could remove that parameter from your soft_nms search",
      "votes": null
    },
    {
      "id": "885459",
      "postDate": "06/14/2020 08:25:16",
      "content": "<p>Hi <a href=\"/shonenkov\">@shonenkov</a> really thank you for your kindly sharing. one question, all your mentioned scores are get with single model?  such as 0.7294 --&gt; 0.7330 cutmix</p>",
      "rawMarkdown": "Hi @shonenkov really thank you for your kindly sharing. one question, all your mentioned scores are get with single model?  such as 0.7294 --&gt; 0.7330 cutmix",
      "votes": null
    },
    {
      "id": "885470",
      "postDate": "06/14/2020 08:43:24",
      "content": "<p><a href=\"/cswwp347724\">@cswwp347724</a> thank you! this improvement for kfold</p>",
      "rawMarkdown": "cswwp347724 thank you! this improvement for kfold",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 864845,
      "author_name": "tiandaye",
      "author_url": "",
      "post_date": "05/28/2020 08:17:36",
      "content": "<p>I tried your train code, cant get that score...\nthanks for sharing, you are really imporving this compete.</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 867435,
      "author_name": "",
      "author_url": "",
      "post_date": "05/30/2020 09:30:51",
      "content": "<p>Great Kernel!\nLearning a lot from this competition. \nThanks:)</p>",
      "votes": null,
      "replies": [
        {
          "id": 867444,
          "author_name": "shonenkov",
          "author_url": "",
          "post_date": "05/30/2020 09:48:14",
          "content": "<p>welcome! 👍 </p>",
          "votes": null,
          "replies": []
        }
      ]
    },
    {
      "id": 869844,
      "author_name": "batuhangencay",
      "author_url": "",
      "post_date": "06/01/2020 10:12:40",
      "content": "<p>Very helpful kernel.</p>\n\n<p>I wonder whether you train from scratch or fine-tune on each fold. I achieved a small boost but maybe i am missing the actual thing.</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 869869,
      "author_name": "gyanaluckydas",
      "author_url": "",
      "post_date": "06/01/2020 10:35:23",
      "content": "<p>I don't know why this doesn't work for me\nBefore Bayesian Optimization  : 0.7355\nAfter Bayesian Optimization : 0.7346  </p>",
      "votes": null,
      "replies": [
        {
          "id": 869933,
          "author_name": "shonenkov",
          "author_url": "",
          "post_date": "06/01/2020 11:39:46",
          "content": "<p><a href=\"/gyanaluckydas\">@gyanaluckydas</a> what models did you use? effdet?</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 869965,
          "author_name": "gyanaluckydas",
          "author_url": "",
          "post_date": "06/01/2020 12:05:31",
          "content": "<p>Yes..effdet with pseudo label</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 869974,
          "author_name": "shonenkov",
          "author_url": "",
          "post_date": "06/01/2020 12:13:50",
          "content": "<p><a href=\"/gyanaluckydas\">@gyanaluckydas</a> pseudo labeling approach can shift confidences of models, for this case should run optimizing again  </p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 869998,
          "author_name": "gyanaluckydas",
          "author_url": "",
          "post_date": "06/01/2020 12:22:28",
          "content": "<p>I can't understand...what do u mean by optimizing again</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 870001,
          "author_name": "shonenkov",
          "author_url": "",
          "post_date": "06/01/2020 12:23:41",
          "content": "<p><a href=\"https://www.kaggle.com/shonenkov/bayesian-optimization-wbf-efficientdet\">bayesian-optimization-wbf-efficientdet</a> with using your pseudo labeling. you should use val fold for pseudo-labeling and holdout fold for bayesian.</p>\n\n<p>Welcome!</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 870024,
          "author_name": "gyanaluckydas",
          "author_url": "",
          "post_date": "06/01/2020 12:47:08",
          "content": "<p>Thanks.. I will try it</p>",
          "votes": null,
          "replies": []
        }
      ]
    },
    {
      "id": 875848,
      "author_name": "jackchungchiehyu",
      "author_url": "",
      "post_date": "06/06/2020 07:52:18",
      "content": "<p>Thanks, your kernels are very instructive!</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 876211,
      "author_name": "matthewmasters",
      "author_url": "",
      "post_date": "06/06/2020 14:31:59",
      "content": "<p>I've noticed that changing the <code>iou_thr</code> for <code>soft_nms</code> does not affect my accuracy at all, any idea why that could be?</p>\n\n<p>Edit: Nevermind, after looking into the source code I understand now. You could remove that parameter from your soft_nms search</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 885459,
      "author_name": "cswwp347724",
      "author_url": "",
      "post_date": "06/14/2020 08:25:16",
      "content": "<p>Hi <a href=\"/shonenkov\">@shonenkov</a> really thank you for your kindly sharing. one question, all your mentioned scores are get with single model?  such as 0.7294 --&gt; 0.7330 cutmix</p>",
      "votes": null,
      "replies": [
        {
          "id": 885470,
          "author_name": "shonenkov",
          "author_url": "",
          "post_date": "06/14/2020 08:43:24",
          "content": "<p><a href=\"/cswwp347724\">@cswwp347724</a> thank you! this improvement for kfold</p>",
          "votes": null,
          "replies": []
        }
      ]
    }
  ],
  "raw_markdown_by_id": {
    "864688": "Hi everyone!\n\nI would like to share with you [new kernel about optimizing WBF params for EfficientDet](https://www.kaggle.com/shonenkov/bayesian-optimization-wbf-efficientdet)! \n\nWhy it may be useful for you? It gives really good boost without additional training.\n\nI have got new scores:\n- 0.7176 --&gt; 0.7193 [single](https://www.kaggle.com/shonenkov/inference-efficientdet)\n- 0.7294 --&gt; 0.7330 [cutmix](https://www.kaggle.com/shonenkov/oof-evaluation-mixup-efficientdet?scriptVersionId=34505469) --&gt; [new](https://www.kaggle.com/shonenkov/bayesian-optimization-wbf-efficientdet?scriptVersionId=34928761)\n- 0.7318 --&gt; 0.7338 [cutmix + mixup](https://www.kaggle.com/shonenkov/oof-evaluation-mixup-efficientdet?scriptVersionId=34656263)\n-  0.7375 (ensemble of two above) \n\nYou should change values of this params in your inference:\n\n```\n------------------------------\n[Best Iou Thr]: 0.44\n[Best Skip Box Thr]: 0.43\n[Best Score]: 0.6953\n------------------------------\n```\n\nWrite in comment have got boost or not ;)\n\nP.S. Also I would like to ask you, does it help anyone? Or everyone knows and uses any other values of this parameters? Do you want to know about improvements from me or I need stop with publishing? Thank you for answer in advance! \n\n[EDITED]:\n\nI have updated new version of kernel with optimization parameters for 4 methods: nms, soft_nms, nmw, wbf.",
    "864845": "I tried your train code, cant get that score...\nthanks for sharing, you are really imporving this compete.",
    "867435": "Great Kernel!\nLearning a lot from this competition. \nThanks:)",
    "867444": "welcome! 👍",
    "869844": "Very helpful kernel.\n\nI wonder whether you train from scratch or fine-tune on each fold. I achieved a small boost but maybe i am missing the actual thing.",
    "869869": "I don't know why this doesn't work for me\nBefore Bayesian Optimization  : 0.7355\nAfter Bayesian Optimization : 0.7346",
    "869933": "gyanaluckydas what models did you use? effdet?",
    "869965": "Yes..effdet with pseudo label",
    "869974": "gyanaluckydas pseudo labeling approach can shift confidences of models, for this case should run optimizing again",
    "869998": "I can't understand...what do u mean by optimizing again",
    "870001": "[bayesian-optimization-wbf-efficientdet](https://www.kaggle.com/shonenkov/bayesian-optimization-wbf-efficientdet) with using your pseudo labeling. you should use val fold for pseudo-labeling and holdout fold for bayesian.\n\nWelcome!",
    "870024": "Thanks.. I will try it",
    "875848": "Thanks, your kernels are very instructive!",
    "876211": "I've noticed that changing the `iou_thr` for `soft_nms` does not affect my accuracy at all, any idea why that could be?\n\nEdit: Nevermind, after looking into the source code I understand now. You could remove that parameter from your soft_nms search",
    "885459": "Hi @shonenkov really thank you for your kindly sharing. one question, all your mentioned scores are get with single model?  such as 0.7294 --&gt; 0.7330 cutmix",
    "885470": "cswwp347724 thank you! this improvement for kfold"
  },
  "source": "meta"
}