{
  "id": 311389,
  "title": "Salient Object Detection (SOD) - how to remove background from whales images",
  "url": "/competitions/happy-whale-and-dolphin/discussion/311389",
  "author_name": "Remek Kinas",
  "post_date": "2022-03-06T15:40:13.199000",
  "votes": 52,
  "comment_count": 7,
  "views": 0,
  "content": "<p>In topic <a href=\"https://www.kaggle.com/c/happy-whale-and-dolphin/discussion/309214\" target=\"_blank\">DATASET - dorsal fins for all IDs without background</a> many of you asked me how to remove background from photos and show only the most visually attractive objects in an image. Today I published new notebook on which I spend a loooot of time mainly researching (my goal was to find and provide the best and the simplest solution). In this journey I was implementing SODs and checked which works the best in our context. This is a preliminary result - quite good. Now it is time to do more:</p>\n<ul>\n<li>code refactoring</li>\n<li>train model on custom data (I use general one)  </li>\n</ul>\n<p><img src=\"https://i.ibb.co/Rbdfj2H/SOD.jpg\" alt=\"SoD\"></p>\n<p>Notebook: ☀️<a href=\"https://www.kaggle.com/remekkinas/remove-background-salient-object-detection\" target=\"_blank\">Remove background - Salient Object Detection</a>☀️ </p>",
  "messages": [
    {
      "id": 1714073,
      "postDate": "2022-03-06T15:40:13.200Z",
      "content": "<p>In topic <a href=\"https://www.kaggle.com/c/happy-whale-and-dolphin/discussion/309214\" target=\"_blank\">DATASET - dorsal fins for all IDs without background</a> many of you asked me how to remove background from photos and show only the most visually attractive objects in an image. Today I published new notebook on which I spend a loooot of time mainly researching (my goal was to find and provide the best and the simplest solution). In this journey I was implementing SODs and checked which works the best in our context. This is a preliminary result - quite good. Now it is time to do more:</p>\n<ul>\n<li>code refactoring</li>\n<li>train model on custom data (I use general one)  </li>\n</ul>\n<p><img src=\"https://i.ibb.co/Rbdfj2H/SOD.jpg\" alt=\"SoD\"></p>\n<p>Notebook: ☀️<a href=\"https://www.kaggle.com/remekkinas/remove-background-salient-object-detection\" target=\"_blank\">Remove background - Salient Object Detection</a>☀️ </p>",
      "rawMarkdown": "In topic [DATASET - dorsal fins for all IDs without background](https://www.kaggle.com/c/happy-whale-and-dolphin/discussion/309214) many of you asked me how to remove background from photos and show only the most visually attractive objects in an image. Today I published new notebook on which I spend a loooot of time mainly researching (my goal was to find and provide the best and the simplest solution). In this journey I was implementing SODs and checked which works the best in our context. This is a preliminary result - quite good. Now it is time to do more:\n- code refactoring\n- train model on custom data (I use general one)  \n\n![SoD](https://i.ibb.co/Rbdfj2H/SOD.jpg)\n\nNotebook: ☀️[Remove background - Salient Object Detection](https://www.kaggle.com/remekkinas/remove-background-salient-object-detection)☀️ \n\n",
      "votes": 52
    },
    {
      "id": 1715492,
      "postDate": "2022-03-08T04:22:22.640Z",
      "content": "<p>Absolutely fascinating stuff, thanks for sharing <a href=\"https://www.kaggle.com/remekkinas\" target=\"_blank\">@remekkinas</a> 🙌</p>",
      "rawMarkdown": "Absolutely fascinating stuff, thanks for sharing @remekkinas 🙌",
      "votes": 1,
      "replies": [
        {
          "id": 1715502,
          "postDate": "2022-03-08T04:28:41.077Z",
          "content": "<p>Thank you very much <a href=\"https://www.kaggle.com/niekvanderzwaag\" target=\"_blank\">@niekvanderzwaag</a> :) SOD could be use in many other cases. This is a very helpful technique indeed.</p>",
          "rawMarkdown": "Thank you very much @niekvanderzwaag :) SOD could be use in many other cases. This is a very helpful technique indeed."
        }
      ]
    },
    {
      "id": 1715004,
      "postDate": "2022-03-07T14:49:49.293Z",
      "content": "<p>Thanks for this. I was in need of this to improve my model.</p>",
      "rawMarkdown": "Thanks for this. I was in need of this to improve my model.",
      "votes": 1,
      "replies": [
        {
          "id": 1715008,
          "postDate": "2022-03-07T14:54:29.413Z",
          "content": "<p>Now I released new notebook - it provides some idea how to remove white areas outside Sailent Map. The way is pretty easy:</p>\n<ul>\n<li>creating bbox for Sailent Map</li>\n<li>crop </li>\n<li>resize</li>\n</ul>\n<p><img src=\"https://i.ibb.co/JjXjf8B/bbox-sod.jpg\" alt=\"remove\"></p>",
          "rawMarkdown": "Now I released new notebook - it provides some idea how to remove white areas outside Sailent Map. The way is pretty easy:\n- creating bbox for Sailent Map\n- crop \n- resize\n\n![remove](https://i.ibb.co/JjXjf8B/bbox-sod.jpg)"
        }
      ]
    },
    {
      "id": 1714594,
      "postDate": "2022-03-07T06:24:33.970Z",
      "content": "<p>Thanks for sharing your great idea. I tried something similar with \"rembg\". (from rembg.bg import remove)</p>",
      "rawMarkdown": "Thanks for sharing your great idea. I tried something similar with \"rembg\". (from rembg.bg import remove)",
      "votes": 1
    },
    {
      "id": 1739788,
      "postDate": "2022-03-30T10:35:23.423Z",
      "rawMarkdown": "",
      "isDeleted": true
    },
    {
      "id": 1715797,
      "postDate": "2022-03-08T11:41:40.477Z",
      "content": "<p>Thanks for sharing your great idea !</p>",
      "rawMarkdown": "Thanks for sharing your great idea !",
      "votes": 1
    }
  ],
  "comments": [
    {
      "id": 1715492,
      "author_name": "Niek van der Zwaag",
      "author_url": "",
      "post_date": "2022-03-08T04:22:22.640000",
      "content": "<p>Absolutely fascinating stuff, thanks for sharing <a href=\"https://www.kaggle.com/remekkinas\" target=\"_blank\">@remekkinas</a> 🙌</p>",
      "votes": 1,
      "replies": [
        {
          "id": 1715502,
          "author_name": "Remek Kinas",
          "author_url": "",
          "post_date": "2022-03-08T04:28:41.077000",
          "content": "<p>Thank you very much <a href=\"https://www.kaggle.com/niekvanderzwaag\" target=\"_blank\">@niekvanderzwaag</a> :) SOD could be use in many other cases. This is a very helpful technique indeed.</p>",
          "votes": 0,
          "replies": []
        }
      ]
    },
    {
      "id": 1715004,
      "author_name": "Aditya Sharma",
      "author_url": "",
      "post_date": "2022-03-07T14:49:49.293000",
      "content": "<p>Thanks for this. I was in need of this to improve my model.</p>",
      "votes": 1,
      "replies": [
        {
          "id": 1715008,
          "author_name": "Remek Kinas",
          "author_url": "",
          "post_date": "2022-03-07T14:54:29.413000",
          "content": "<p>Now I released new notebook - it provides some idea how to remove white areas outside Sailent Map. The way is pretty easy:</p>\n<ul>\n<li>creating bbox for Sailent Map</li>\n<li>crop </li>\n<li>resize</li>\n</ul>\n<p><img src=\"https://i.ibb.co/JjXjf8B/bbox-sod.jpg\" alt=\"remove\"></p>",
          "votes": 0,
          "replies": []
        }
      ]
    },
    {
      "id": 1714594,
      "author_name": "Kim Jinha",
      "author_url": "",
      "post_date": "2022-03-07T06:24:33.970000",
      "content": "<p>Thanks for sharing your great idea. I tried something similar with \"rembg\". (from rembg.bg import remove)</p>",
      "votes": 1,
      "replies": []
    },
    {
      "id": 1739788,
      "author_name": "",
      "author_url": "",
      "post_date": "2022-03-30T10:35:23.423000",
      "content": "",
      "votes": 0,
      "replies": []
    },
    {
      "id": 1715797,
      "author_name": "Imaran Sheikh",
      "author_url": "",
      "post_date": "2022-03-08T11:41:40.477000",
      "content": "<p>Thanks for sharing your great idea !</p>",
      "votes": 1,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "1714073": "In topic [DATASET - dorsal fins for all IDs without background](https://www.kaggle.com/c/happy-whale-and-dolphin/discussion/309214) many of you asked me how to remove background from photos and show only the most visually attractive objects in an image. Today I published new notebook on which I spend a loooot of time mainly researching (my goal was to find and provide the best and the simplest solution). In this journey I was implementing SODs and checked which works the best in our context. This is a preliminary result - quite good. Now it is time to do more:\n- code refactoring\n- train model on custom data (I use general one)  \n\n![SoD](https://i.ibb.co/Rbdfj2H/SOD.jpg)\n\nNotebook: ☀️[Remove background - Salient Object Detection](https://www.kaggle.com/remekkinas/remove-background-salient-object-detection)☀️ \n\n",
    "1715492": "Absolutely fascinating stuff, thanks for sharing @remekkinas 🙌",
    "1715004": "Thanks for this. I was in need of this to improve my model.",
    "1714594": "Thanks for sharing your great idea. I tried something similar with \"rembg\". (from rembg.bg import remove)",
    "1739788": "",
    "1715797": "Thanks for sharing your great idea !"
  }
}