{
  "id": 156471,
  "title": "How to Iterate/Experiment fast(er)?",
  "url": "/competitions/alaska2-image-steganalysis/discussion/156471",
  "author_name": "",
  "post_date": "2020-06-06T09:50:05.850265600Z",
  "votes": 1,
  "comment_count": 8,
  "views": 0,
  "content": "<p>Since the dataset is huge and one batch of training takes around ~25 minutes(for me) with efficientnet encoders, I think it would be helpful if we share our tips/tricks to experiment/iterate fast(er) of our ideas.  Let me start: \n1. Use smaller image size(256, even 128)\n2. Use subset of data \n3. Use lighter encoders(start with eff_b0 instead of eff_b4+)</p>\n\n<p></p>",
  "messages": [
    {
      "id": "875939",
      "postDate": "06/06/2020 09:50:05",
      "content": "<p>Since the dataset is huge and one batch of training takes around ~25 minutes(for me) with efficientnet encoders, I think it would be helpful if we share our tips/tricks to experiment/iterate fast(er) of our ideas.  Let me start: \n1. Use smaller image size(256, even 128)\n2. Use subset of data \n3. Use lighter encoders(start with eff_b0 instead of eff_b4+)</p>\n\n<p></p>",
      "rawMarkdown": "Since the dataset is huge and one batch of training takes around ~25 minutes(for me) with efficientnet encoders, I think it would be helpful if we share our tips/tricks to experiment/iterate fast(er) of our ideas.  Let me start: \n1. Use smaller image size(256, even 128)\n2. Use subset of data \n3. Use lighter encoders(start with eff_b0 instead of eff_b4+)\n\n![](https://miro.medium.com/max/849/1*gBLsSYp3M9gYhsgprRHVww.jpeg)",
      "votes": null
    },
    {
      "id": "876311",
      "postDate": "06/06/2020 16:06:05",
      "content": "<p>1 will not work. Resize harms the training.</p>",
      "rawMarkdown": "1 will not work. Resize harms the training.",
      "votes": null
    },
    {
      "id": "876379",
      "postDate": "06/06/2020 16:41:17",
      "content": "<p>rule No1 - read the forum</p>",
      "rawMarkdown": "rule No1 - read the forum",
      "votes": null
    },
    {
      "id": "876446",
      "postDate": "06/06/2020 17:32:05",
      "content": "<p>Mixed Precision</p>",
      "rawMarkdown": "Mixed Precision",
      "votes": null
    },
    {
      "id": "876780",
      "postDate": "06/07/2020 03:33:04",
      "content": "<p>First, you don’t have to resize images it’s mentioned already secondly if one batch is taking 25 min then I think you have not enabled gpu.</p>",
      "rawMarkdown": "First, you don’t have to resize images it’s mentioned already secondly if one batch is taking 25 min then I think you have not enabled gpu.",
      "votes": null
    },
    {
      "id": "876785",
      "postDate": "06/07/2020 03:36:19",
      "content": "<p>If you have enabled GPU/TPU then adding batchnormalization layer can speed up the learning </p>",
      "rawMarkdown": "If you have enabled GPU/TPU then adding batchnormalization layer can speed up the learning",
      "votes": null
    },
    {
      "id": "878155",
      "postDate": "06/08/2020 09:50:23",
      "content": "<p>Converting JPGs into tfrecords</p>",
      "rawMarkdown": "Converting JPGs into tfrecords",
      "votes": null
    },
    {
      "id": "878817",
      "postDate": "06/08/2020 21:55:38",
      "content": "<p>Mixed-precision training and lighter models with bigger batch can help you. Eugene highlighted in <a href=\"https://www.kaggle.com/c/alaska2-image-steganalysis/discussion/155392\">this discussion</a> these tips that allow you to speed up the process of training models.</p>",
      "rawMarkdown": "Mixed-precision training and lighter models with bigger batch can help you. Eugene highlighted in [this discussion](https://www.kaggle.com/c/alaska2-image-steganalysis/discussion/155392) these tips that allow you to speed up the process of training models.",
      "votes": null
    },
    {
      "id": "918077",
      "postDate": "07/07/2020 00:58:51",
      "content": "<p><a href=\"/bibek777\">@bibek777</a> - I am using a subsample of the dataset to see if I can generate quick experiments. Also, I am using <code>apex</code> to use larger batch sizes which is making training a bit quicker. I am pretty much a beginner when it comes to image competitions so these suggestions may or may not work.</p>",
      "rawMarkdown": "bibek777 - I am using a subsample of the dataset to see if I can generate quick experiments. Also, I am using `apex` to use larger batch sizes which is making training a bit quicker. I am pretty much a beginner when it comes to image competitions so these suggestions may or may not work.",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 876311,
      "author_name": "igorkrashenyi",
      "author_url": "",
      "post_date": "06/06/2020 16:06:05",
      "content": "<p>1 will not work. Resize harms the training.</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 876379,
      "author_name": "valanm",
      "author_url": "",
      "post_date": "06/06/2020 16:41:17",
      "content": "<p>rule No1 - read the forum</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 876446,
      "author_name": "nuller",
      "author_url": "",
      "post_date": "06/06/2020 17:32:05",
      "content": "<p>Mixed Precision</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 876780,
      "author_name": "priyt00",
      "author_url": "",
      "post_date": "06/07/2020 03:33:04",
      "content": "<p>First, you don’t have to resize images it’s mentioned already secondly if one batch is taking 25 min then I think you have not enabled gpu.</p>",
      "votes": null,
      "replies": [
        {
          "id": 876785,
          "author_name": "priyt00",
          "author_url": "",
          "post_date": "06/07/2020 03:36:19",
          "content": "<p>If you have enabled GPU/TPU then adding batchnormalization layer can speed up the learning </p>",
          "votes": null,
          "replies": []
        }
      ]
    },
    {
      "id": 878155,
      "author_name": "zhenglv",
      "author_url": "",
      "post_date": "06/08/2020 09:50:23",
      "content": "<p>Converting JPGs into tfrecords</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 878817,
      "author_name": "gofixyourself",
      "author_url": "",
      "post_date": "06/08/2020 21:55:38",
      "content": "<p>Mixed-precision training and lighter models with bigger batch can help you. Eugene highlighted in <a href=\"https://www.kaggle.com/c/alaska2-image-steganalysis/discussion/155392\">this discussion</a> these tips that allow you to speed up the process of training models.</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 918077,
      "author_name": "rdizzl3",
      "author_url": "",
      "post_date": "07/07/2020 00:58:51",
      "content": "<p><a href=\"/bibek777\">@bibek777</a> - I am using a subsample of the dataset to see if I can generate quick experiments. Also, I am using <code>apex</code> to use larger batch sizes which is making training a bit quicker. I am pretty much a beginner when it comes to image competitions so these suggestions may or may not work.</p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "875939": "Since the dataset is huge and one batch of training takes around ~25 minutes(for me) with efficientnet encoders, I think it would be helpful if we share our tips/tricks to experiment/iterate fast(er) of our ideas.  Let me start: \n1. Use smaller image size(256, even 128)\n2. Use subset of data \n3. Use lighter encoders(start with eff_b0 instead of eff_b4+)\n\n![](https://miro.medium.com/max/849/1*gBLsSYp3M9gYhsgprRHVww.jpeg)",
    "876311": "1 will not work. Resize harms the training.",
    "876379": "rule No1 - read the forum",
    "876446": "Mixed Precision",
    "876780": "First, you don’t have to resize images it’s mentioned already secondly if one batch is taking 25 min then I think you have not enabled gpu.",
    "876785": "If you have enabled GPU/TPU then adding batchnormalization layer can speed up the learning",
    "878155": "Converting JPGs into tfrecords",
    "878817": "Mixed-precision training and lighter models with bigger batch can help you. Eugene highlighted in [this discussion](https://www.kaggle.com/c/alaska2-image-steganalysis/discussion/155392) these tips that allow you to speed up the process of training models.",
    "918077": "bibek777 - I am using a subsample of the dataset to see if I can generate quick experiments. Also, I am using `apex` to use larger batch sizes which is making training a bit quicker. I am pretty much a beginner when it comes to image competitions so these suggestions may or may not work."
  },
  "source": "meta"
}