{
  "id": 317836,
  "title": "EffNetb4 vs EffNetb5",
  "url": "/competitions/happy-whale-and-dolphin/discussion/317836",
  "author_name": "",
  "post_date": "2022-04-09T05:58:38.657845500Z",
  "votes": 7,
  "comment_count": 4,
  "views": 0,
  "content": "<p>I trained two models b4 and b5 with the same data and here are my results,</p>\n\n<table>\n<thead>\n  <tr>\n    <th></th>\n    <th>B4</th>\n    <th>B5</th>\n  </tr>\n</thead>\n<tbody>\n  <tr>\n    <td>Batch Size<br>(Adjusted for 16 gb ram)</td>\n    <td>32</td>\n    <td>16</td>\n  </tr>\n  <tr>\n    <td>Image Size</td>\n    <td>384</td>\n    <td>512</td>\n  </tr>\n  <tr>\n    <td>Traning Time</td>\n    <td>3hr 21min</td>\n    <td>8hr 54min</td>\n  </tr>\n  <tr>\n    <td>Epocs</td>\n    <td>10</td>\n    <td>10</td>\n  </tr>\n  <tr>\n    <td>Validation Acc.<br>(During Training)</td>\n    <td>84.9</td>\n    <td>87</td>\n  </tr>\n</tbody>\n</table>\n<p>What can be done to get more accuracy from models like EffNets b6 &amp;b7?</p>",
  "messages": [
    {
      "id": "1749890",
      "postDate": "04/09/2022 05:58:38",
      "content": "<p>I trained two models b4 and b5 with the same data and here are my results,</p>\n\n<table>\n<thead>\n  <tr>\n    <th></th>\n    <th>B4</th>\n    <th>B5</th>\n  </tr>\n</thead>\n<tbody>\n  <tr>\n    <td>Batch Size<br>(Adjusted for 16 gb ram)</td>\n    <td>32</td>\n    <td>16</td>\n  </tr>\n  <tr>\n    <td>Image Size</td>\n    <td>384</td>\n    <td>512</td>\n  </tr>\n  <tr>\n    <td>Traning Time</td>\n    <td>3hr 21min</td>\n    <td>8hr 54min</td>\n  </tr>\n  <tr>\n    <td>Epocs</td>\n    <td>10</td>\n    <td>10</td>\n  </tr>\n  <tr>\n    <td>Validation Acc.<br>(During Training)</td>\n    <td>84.9</td>\n    <td>87</td>\n  </tr>\n</tbody>\n</table>\n<p>What can be done to get more accuracy from models like EffNets b6 &amp;b7?</p>",
      "rawMarkdown": "I trained two models b4 and b5 with the same data and here are my results,\n\n<style type=\"text/css\">\n.tg  {border-collapse:collapse;border-spacing:0;}\n.tg td{border-color:black;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px;\n  overflow:hidden;padding:10px 5px;word-break:normal;}\n.tg th{border-color:black;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px;\n  font-weight:normal;overflow:hidden;padding:10px 5px;word-break:normal;}\n.tg .tg-cey4{border-color:inherit;font-size:16px;text-align:left;vertical-align:top}\n.tg .tg-gmla{border-color:inherit;font-size:16px;text-align:center;vertical-align:top}\n.tg .tg-lvth{font-size:16px;text-align:center;vertical-align:top}\n</style>\n<table class=\"tg\">\n<thead>\n  <tr>\n    <th class=\"tg-cey4\"></th>\n    <th class=\"tg-cey4\">B4</th>\n    <th class=\"tg-cey4\">B5</th>\n  </tr>\n</thead>\n<tbody>\n  <tr>\n    <td class=\"tg-gmla\">Batch Size<br>(Adjusted for 16 gb ram)</td>\n    <td class=\"tg-gmla\">32</td>\n    <td class=\"tg-gmla\">16</td>\n  </tr>\n  <tr>\n    <td class=\"tg-gmla\">Image Size</td>\n    <td class=\"tg-gmla\">384</td>\n    <td class=\"tg-gmla\">512</td>\n  </tr>\n  <tr>\n    <td class=\"tg-gmla\">Traning Time</td>\n    <td class=\"tg-gmla\">3hr 21min</td>\n    <td class=\"tg-gmla\">8hr 54min</td>\n  </tr>\n  <tr>\n    <td class=\"tg-lvth\">Epocs</td>\n    <td class=\"tg-lvth\">10</td>\n    <td class=\"tg-lvth\">10</td>\n  </tr>\n  <tr>\n    <td class=\"tg-gmla\">Validation Acc.<br>(During Training)</td>\n    <td class=\"tg-gmla\">84.9</td>\n    <td class=\"tg-gmla\">87</td>\n  </tr>\n</tbody>\n</table>\n\nWhat can be done to get more accuracy from models like EffNets b6 &b7?",
      "votes": null
    },
    {
      "id": "1749936",
      "postDate": "04/09/2022 06:38:21",
      "content": "<p>There are a lot of interesting things to try in this competition:</p>\n<ul>\n<li>different datasets (full body, just fins or even you own one if you want to create a new one)</li>\n<li>train more epochs, use larger images</li>\n<li>different augmentation techniques</li>\n<li>different head fully connected layers architectures</li>\n<li>dropout rate </li>\n<li>stochasting weight average </li>\n<li>post process techniques: different embeddings blending methods, etc.</li>\n<li>pre process techniques: remove background from images, etc.</li>\n</ul>",
      "rawMarkdown": "There are a lot of interesting things to try in this competition:\n- different datasets (full body, just fins or even you own one if you want to create a new one)\n- train more epochs, use larger images\n- different augmentation techniques\n- different head fully connected layers architectures\n- dropout rate \n- stochasting weight average \n- post process techniques: different embeddings blending methods, etc.\n- pre process techniques: remove background from images, etc.",
      "votes": null
    },
    {
      "id": "1749945",
      "postDate": "04/09/2022 06:52:01",
      "content": "<p>I tried with removing the background but my model loss was stuck at 13.<br>\nI tried everything you mentioned but was not able to train my model to get any accuracy (as the loss got stuck around 13-15 everytime).</p>\n<p>I still need to try post process techniques. </p>",
      "rawMarkdown": "I tried with removing the background but my model loss was stuck at 13.\nI tried everything you mentioned but was not able to train my model to get any accuracy (as the loss got stuck around 13-15 everytime).\n\nI still need to try post process techniques.",
      "votes": null
    },
    {
      "id": "1750041",
      "postDate": "04/09/2022 09:00:13",
      "content": "<p>I also tried to firstly train on small image size (224x224 or 256x256). After that, I did additional training of the same model on larger images (size 384x384 or even 512x512). It also helped to increase validation accuracy and LB score.</p>",
      "rawMarkdown": "I also tried to firstly train on small image size (224x224 or 256x256). After that, I did additional training of the same model on larger images (size 384x384 or even 512x512). It also helped to increase validation accuracy and LB score.",
      "votes": null
    },
    {
      "id": "1750060",
      "postDate": "04/09/2022 09:23:03",
      "content": "<p>I tried that but couldn't better accuracy</p>",
      "rawMarkdown": "I tried that but couldn't better accuracy",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 1749936,
      "author_name": "vladvdv",
      "author_url": "",
      "post_date": "04/09/2022 06:38:21",
      "content": "<p>There are a lot of interesting things to try in this competition:</p>\n<ul>\n<li>different datasets (full body, just fins or even you own one if you want to create a new one)</li>\n<li>train more epochs, use larger images</li>\n<li>different augmentation techniques</li>\n<li>different head fully connected layers architectures</li>\n<li>dropout rate </li>\n<li>stochasting weight average </li>\n<li>post process techniques: different embeddings blending methods, etc.</li>\n<li>pre process techniques: remove background from images, etc.</li>\n</ul>",
      "votes": null,
      "replies": [
        {
          "id": 1749945,
          "author_name": "jainishsavalia",
          "author_url": "",
          "post_date": "04/09/2022 06:52:01",
          "content": "<p>I tried with removing the background but my model loss was stuck at 13.<br>\nI tried everything you mentioned but was not able to train my model to get any accuracy (as the loss got stuck around 13-15 everytime).</p>\n<p>I still need to try post process techniques. </p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 1750041,
          "author_name": "alexeyolkhovikov",
          "author_url": "",
          "post_date": "04/09/2022 09:00:13",
          "content": "<p>I also tried to firstly train on small image size (224x224 or 256x256). After that, I did additional training of the same model on larger images (size 384x384 or even 512x512). It also helped to increase validation accuracy and LB score.</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 1750060,
          "author_name": "jainishsavalia",
          "author_url": "",
          "post_date": "04/09/2022 09:23:03",
          "content": "<p>I tried that but couldn't better accuracy</p>",
          "votes": null,
          "replies": []
        }
      ]
    }
  ],
  "raw_markdown_by_id": {
    "1749890": "I trained two models b4 and b5 with the same data and here are my results,\n\n<style type=\"text/css\">\n.tg  {border-collapse:collapse;border-spacing:0;}\n.tg td{border-color:black;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px;\n  overflow:hidden;padding:10px 5px;word-break:normal;}\n.tg th{border-color:black;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px;\n  font-weight:normal;overflow:hidden;padding:10px 5px;word-break:normal;}\n.tg .tg-cey4{border-color:inherit;font-size:16px;text-align:left;vertical-align:top}\n.tg .tg-gmla{border-color:inherit;font-size:16px;text-align:center;vertical-align:top}\n.tg .tg-lvth{font-size:16px;text-align:center;vertical-align:top}\n</style>\n<table class=\"tg\">\n<thead>\n  <tr>\n    <th class=\"tg-cey4\"></th>\n    <th class=\"tg-cey4\">B4</th>\n    <th class=\"tg-cey4\">B5</th>\n  </tr>\n</thead>\n<tbody>\n  <tr>\n    <td class=\"tg-gmla\">Batch Size<br>(Adjusted for 16 gb ram)</td>\n    <td class=\"tg-gmla\">32</td>\n    <td class=\"tg-gmla\">16</td>\n  </tr>\n  <tr>\n    <td class=\"tg-gmla\">Image Size</td>\n    <td class=\"tg-gmla\">384</td>\n    <td class=\"tg-gmla\">512</td>\n  </tr>\n  <tr>\n    <td class=\"tg-gmla\">Traning Time</td>\n    <td class=\"tg-gmla\">3hr 21min</td>\n    <td class=\"tg-gmla\">8hr 54min</td>\n  </tr>\n  <tr>\n    <td class=\"tg-lvth\">Epocs</td>\n    <td class=\"tg-lvth\">10</td>\n    <td class=\"tg-lvth\">10</td>\n  </tr>\n  <tr>\n    <td class=\"tg-gmla\">Validation Acc.<br>(During Training)</td>\n    <td class=\"tg-gmla\">84.9</td>\n    <td class=\"tg-gmla\">87</td>\n  </tr>\n</tbody>\n</table>\n\nWhat can be done to get more accuracy from models like EffNets b6 &b7?",
    "1749936": "There are a lot of interesting things to try in this competition:\n- different datasets (full body, just fins or even you own one if you want to create a new one)\n- train more epochs, use larger images\n- different augmentation techniques\n- different head fully connected layers architectures\n- dropout rate \n- stochasting weight average \n- post process techniques: different embeddings blending methods, etc.\n- pre process techniques: remove background from images, etc.",
    "1749945": "I tried with removing the background but my model loss was stuck at 13.\nI tried everything you mentioned but was not able to train my model to get any accuracy (as the loss got stuck around 13-15 everytime).\n\nI still need to try post process techniques.",
    "1750041": "I also tried to firstly train on small image size (224x224 or 256x256). After that, I did additional training of the same model on larger images (size 384x384 or even 512x512). It also helped to increase validation accuracy and LB score.",
    "1750060": "I tried that but couldn't better accuracy"
  },
  "source": "meta"
}