{
  "id": 223477,
  "title": "Resized and reshaped datasets - 128/256px, JPG/PNG, padded/original ratio",
  "url": "/competitions/bms-molecular-translation/discussion/223477",
  "author_name": "",
  "post_date": "2021-03-04T03:21:38.795934100Z",
  "votes": 29,
  "comment_count": 6,
  "views": 0,
  "content": "<p>I've resized both all the images (training and test) into JPG images using variants of <a href=\"https://www.kaggle.com/xhlulu/bms-molecular-resizing-and-reshaping\" target=\"_blank\">this notebook</a>. </p>\n<p>By using the datasets below, <strong>you are accepting the rules of this competition!</strong></p>\n<table>\n<thead>\n<tr>\n<th>Size (Pixels)</th>\n<th>Format</th>\n<th>Shape</th>\n<th>Dataset</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>64</td>\n<td>JPG</td>\n<td>Square (padded)</td>\n<td><a href=\"https://www.kaggle.com/xhlulu/bms-molecular-164px-jpg-padded\" target=\"_blank\">Link</a></td>\n</tr>\n<tr>\n<td>128</td>\n<td>JPG</td>\n<td>Original ratio</td>\n<td><a href=\"https://www.kaggle.com/xhlulu/bms-molecular-128px-jpg-original-ratio\" target=\"_blank\">Link</a></td>\n</tr>\n<tr>\n<td>128</td>\n<td>JPG</td>\n<td>Square (padded)</td>\n<td><a href=\"https://www.kaggle.com/xhlulu/bms-molecular-128px-jpg-padded\" target=\"_blank\">Link</a></td>\n</tr>\n<tr>\n<td>128</td>\n<td>JPG</td>\n<td>Square (stretched)</td>\n<td><a href=\"https://www.kaggle.com/xhlulu/bms-128-jpg-stretch\" target=\"_blank\">Link</a></td>\n</tr>\n<tr>\n<td>128</td>\n<td>PNG</td>\n<td>Square (padded)</td>\n<td><a href=\"https://www.kaggle.com/xhlulu/bms-molecular-128px-png-padded\" target=\"_blank\">Link</a></td>\n</tr>\n<tr>\n<td>224</td>\n<td>JPG</td>\n<td>Square (padded)</td>\n<td><a href=\"https://www.kaggle.com/xhlulu/bms-molecular-224px-jpg-padded\" target=\"_blank\">Link</a></td>\n</tr>\n<tr>\n<td>256</td>\n<td>JPG</td>\n<td>Original ratio</td>\n<td><a href=\"https://www.kaggle.com/xhlulu/bms-molecular-256px-jpg-original-ratio\" target=\"_blank\">Link</a></td>\n</tr>\n<tr>\n<td>256</td>\n<td>JPG</td>\n<td>Square (padded)</td>\n<td><a href=\"https://www.kaggle.com/xhlulu/bms-molecular-256px-jpg-padded\" target=\"_blank\">Link</a></td>\n</tr>\n</tbody>\n</table>\n<p>I'm planning to publish datasets in various formats (original ratio, stretched, padded), and sizes (128px, 256px, and perhaps higher). I'm running into various problems when I try to save the files so it's taking longer than expected to process them. When I successfully resolve them I will update this post with links to the respective datasets.</p>\n<blockquote>\n  <p>Note: The datasets marked with a star <code>*</code> might still be processing; if it's shown as unavailable please come back in a few hours!</p>\n</blockquote>",
  "messages": [
    {
      "id": "1225889",
      "postDate": "03/04/2021 03:21:38",
      "content": "<p>I've resized both all the images (training and test) into JPG images using variants of <a href=\"https://www.kaggle.com/xhlulu/bms-molecular-resizing-and-reshaping\" target=\"_blank\">this notebook</a>. </p>\n<p>By using the datasets below, <strong>you are accepting the rules of this competition!</strong></p>\n<table>\n<thead>\n<tr>\n<th>Size (Pixels)</th>\n<th>Format</th>\n<th>Shape</th>\n<th>Dataset</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>64</td>\n<td>JPG</td>\n<td>Square (padded)</td>\n<td><a href=\"https://www.kaggle.com/xhlulu/bms-molecular-164px-jpg-padded\" target=\"_blank\">Link</a></td>\n</tr>\n<tr>\n<td>128</td>\n<td>JPG</td>\n<td>Original ratio</td>\n<td><a href=\"https://www.kaggle.com/xhlulu/bms-molecular-128px-jpg-original-ratio\" target=\"_blank\">Link</a></td>\n</tr>\n<tr>\n<td>128</td>\n<td>JPG</td>\n<td>Square (padded)</td>\n<td><a href=\"https://www.kaggle.com/xhlulu/bms-molecular-128px-jpg-padded\" target=\"_blank\">Link</a></td>\n</tr>\n<tr>\n<td>128</td>\n<td>JPG</td>\n<td>Square (stretched)</td>\n<td><a href=\"https://www.kaggle.com/xhlulu/bms-128-jpg-stretch\" target=\"_blank\">Link</a></td>\n</tr>\n<tr>\n<td>128</td>\n<td>PNG</td>\n<td>Square (padded)</td>\n<td><a href=\"https://www.kaggle.com/xhlulu/bms-molecular-128px-png-padded\" target=\"_blank\">Link</a></td>\n</tr>\n<tr>\n<td>224</td>\n<td>JPG</td>\n<td>Square (padded)</td>\n<td><a href=\"https://www.kaggle.com/xhlulu/bms-molecular-224px-jpg-padded\" target=\"_blank\">Link</a></td>\n</tr>\n<tr>\n<td>256</td>\n<td>JPG</td>\n<td>Original ratio</td>\n<td><a href=\"https://www.kaggle.com/xhlulu/bms-molecular-256px-jpg-original-ratio\" target=\"_blank\">Link</a></td>\n</tr>\n<tr>\n<td>256</td>\n<td>JPG</td>\n<td>Square (padded)</td>\n<td><a href=\"https://www.kaggle.com/xhlulu/bms-molecular-256px-jpg-padded\" target=\"_blank\">Link</a></td>\n</tr>\n</tbody>\n</table>\n<p>I'm planning to publish datasets in various formats (original ratio, stretched, padded), and sizes (128px, 256px, and perhaps higher). I'm running into various problems when I try to save the files so it's taking longer than expected to process them. When I successfully resolve them I will update this post with links to the respective datasets.</p>\n<blockquote>\n  <p>Note: The datasets marked with a star <code>*</code> might still be processing; if it's shown as unavailable please come back in a few hours!</p>\n</blockquote>",
      "rawMarkdown": "I've resized both all the images (training and test) into JPG images using variants of [this notebook](https://www.kaggle.com/xhlulu/bms-molecular-resizing-and-reshaping). \n\nBy using the datasets below, **you are accepting the rules of this competition!**\n\n| Size (Pixels) | Format | Shape              | Dataset                                                                      |\n|---------------|--------|--------------------|------------------------------------------------------------------------------|\n| 64            | JPG    | Square (padded)    | [Link](https://www.kaggle.com/xhlulu/bms-molecular-164px-jpg-padded)         |\n| 128           | JPG    | Original ratio     | [Link](https://www.kaggle.com/xhlulu/bms-molecular-128px-jpg-original-ratio) |\n| 128           | JPG    | Square (padded)    | [Link](https://www.kaggle.com/xhlulu/bms-molecular-128px-jpg-padded)         |\n| 128           | JPG    | Square (stretched) | [Link](https://www.kaggle.com/xhlulu/bms-128-jpg-stretch)                    |\n| 128           | PNG    | Square (padded)    | [Link](https://www.kaggle.com/xhlulu/bms-molecular-128px-png-padded)         |\n| 224           | JPG    | Square (padded)    | [Link](https://www.kaggle.com/xhlulu/bms-molecular-224px-jpg-padded)         |\n| 256           | JPG    | Original ratio     | [Link](https://www.kaggle.com/xhlulu/bms-molecular-256px-jpg-original-ratio) |\n| 256           | JPG    | Square (padded)    | [Link](https://www.kaggle.com/xhlulu/bms-molecular-256px-jpg-padded)         |\n\nI'm planning to publish datasets in various formats (original ratio, stretched, padded), and sizes (128px, 256px, and perhaps higher). I'm running into various problems when I try to save the files so it's taking longer than expected to process them. When I successfully resolve them I will update this post with links to the respective datasets.\n\n\n> Note: The datasets marked with a star `*` might still be processing; if it's shown as unavailable please come back in a few hours!",
      "votes": null
    },
    {
      "id": "1226073",
      "postDate": "03/04/2021 07:59:18",
      "content": "<p>Can you share your associated code for doing it? <br>\nThanks</p>",
      "rawMarkdown": "Can you share your associated code for doing it? \nThanks",
      "votes": null
    },
    {
      "id": "1226077",
      "postDate": "03/04/2021 08:01:22",
      "content": "<p>Thanks a lot <a href=\"https://www.kaggle.com/xhlulu\" target=\"_blank\">@xhlulu</a> , It will be a great help.<br>\nI was trying to do something similar… Good that you have done it already. Also what is the ETA you are experiencing for the same?<br>\nBecause I was also looking to generate TFRecords for this…</p>",
      "rawMarkdown": "Thanks a lot @xhlulu , It will be a great help.\nI was trying to do something similar... Good that you have done it already. Also what is the ETA you are experiencing for the same?\nBecause I was also looking to generate TFRecords for this...",
      "votes": null
    },
    {
      "id": "1227561",
      "postDate": "03/05/2021 16:45:21",
      "content": "<p>Hi, I updated the post with a link to the notebook :)</p>",
      "rawMarkdown": "Hi, I updated the post with a link to the notebook :)",
      "votes": null
    },
    {
      "id": "1227563",
      "postDate": "03/05/2021 16:45:44",
      "content": "<p>On a multi-core setup it takes around 4h to run the notebook (and some more time to process afterward)</p>",
      "rawMarkdown": "On a multi-core setup it takes around 4h to run the notebook (and some more time to process afterward)",
      "votes": null
    },
    {
      "id": "1227715",
      "postDate": "03/05/2021 19:35:27",
      "content": "<p>Maybe a white-padded version could work better since the black padding can give the model some clues and it could end up cheating by looking at it instead of looking at the molecules. </p>",
      "rawMarkdown": "Maybe a white-padded version could work better since the black padding can give the model some clues and it could end up cheating by looking at it instead of looking at the molecules.",
      "votes": null
    },
    {
      "id": "1227909",
      "postDate": "03/05/2021 23:39:14",
      "content": "<p>Yeah I wanted to do a white padding, but didn't input the correct <code>color</code> parameter… Now i'm rerunning but it's probably gonna take a while!</p>",
      "rawMarkdown": "Yeah I wanted to do a white padding, but didn't input the correct `color` parameter... Now i'm rerunning but it's probably gonna take a while!",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 1226073,
      "author_name": "mrinath",
      "author_url": "",
      "post_date": "03/04/2021 07:59:18",
      "content": "<p>Can you share your associated code for doing it? <br>\nThanks</p>",
      "votes": null,
      "replies": [
        {
          "id": 1227561,
          "author_name": "xhlulu",
          "author_url": "",
          "post_date": "03/05/2021 16:45:21",
          "content": "<p>Hi, I updated the post with a link to the notebook :)</p>",
          "votes": null,
          "replies": []
        }
      ]
    },
    {
      "id": 1226077,
      "author_name": "manabendrarout",
      "author_url": "",
      "post_date": "03/04/2021 08:01:22",
      "content": "<p>Thanks a lot <a href=\"https://www.kaggle.com/xhlulu\" target=\"_blank\">@xhlulu</a> , It will be a great help.<br>\nI was trying to do something similar… Good that you have done it already. Also what is the ETA you are experiencing for the same?<br>\nBecause I was also looking to generate TFRecords for this…</p>",
      "votes": null,
      "replies": [
        {
          "id": 1227563,
          "author_name": "xhlulu",
          "author_url": "",
          "post_date": "03/05/2021 16:45:44",
          "content": "<p>On a multi-core setup it takes around 4h to run the notebook (and some more time to process afterward)</p>",
          "votes": null,
          "replies": []
        }
      ]
    },
    {
      "id": 1227715,
      "author_name": "pabloppp",
      "author_url": "",
      "post_date": "03/05/2021 19:35:27",
      "content": "<p>Maybe a white-padded version could work better since the black padding can give the model some clues and it could end up cheating by looking at it instead of looking at the molecules. </p>",
      "votes": null,
      "replies": [
        {
          "id": 1227909,
          "author_name": "xhlulu",
          "author_url": "",
          "post_date": "03/05/2021 23:39:14",
          "content": "<p>Yeah I wanted to do a white padding, but didn't input the correct <code>color</code> parameter… Now i'm rerunning but it's probably gonna take a while!</p>",
          "votes": null,
          "replies": []
        }
      ]
    }
  ],
  "raw_markdown_by_id": {
    "1225889": "I've resized both all the images (training and test) into JPG images using variants of [this notebook](https://www.kaggle.com/xhlulu/bms-molecular-resizing-and-reshaping). \n\nBy using the datasets below, **you are accepting the rules of this competition!**\n\n| Size (Pixels) | Format | Shape              | Dataset                                                                      |\n|---------------|--------|--------------------|------------------------------------------------------------------------------|\n| 64            | JPG    | Square (padded)    | [Link](https://www.kaggle.com/xhlulu/bms-molecular-164px-jpg-padded)         |\n| 128           | JPG    | Original ratio     | [Link](https://www.kaggle.com/xhlulu/bms-molecular-128px-jpg-original-ratio) |\n| 128           | JPG    | Square (padded)    | [Link](https://www.kaggle.com/xhlulu/bms-molecular-128px-jpg-padded)         |\n| 128           | JPG    | Square (stretched) | [Link](https://www.kaggle.com/xhlulu/bms-128-jpg-stretch)                    |\n| 128           | PNG    | Square (padded)    | [Link](https://www.kaggle.com/xhlulu/bms-molecular-128px-png-padded)         |\n| 224           | JPG    | Square (padded)    | [Link](https://www.kaggle.com/xhlulu/bms-molecular-224px-jpg-padded)         |\n| 256           | JPG    | Original ratio     | [Link](https://www.kaggle.com/xhlulu/bms-molecular-256px-jpg-original-ratio) |\n| 256           | JPG    | Square (padded)    | [Link](https://www.kaggle.com/xhlulu/bms-molecular-256px-jpg-padded)         |\n\nI'm planning to publish datasets in various formats (original ratio, stretched, padded), and sizes (128px, 256px, and perhaps higher). I'm running into various problems when I try to save the files so it's taking longer than expected to process them. When I successfully resolve them I will update this post with links to the respective datasets.\n\n\n> Note: The datasets marked with a star `*` might still be processing; if it's shown as unavailable please come back in a few hours!",
    "1226073": "Can you share your associated code for doing it? \nThanks",
    "1226077": "Thanks a lot @xhlulu , It will be a great help.\nI was trying to do something similar... Good that you have done it already. Also what is the ETA you are experiencing for the same?\nBecause I was also looking to generate TFRecords for this...",
    "1227561": "Hi, I updated the post with a link to the notebook :)",
    "1227563": "On a multi-core setup it takes around 4h to run the notebook (and some more time to process afterward)",
    "1227715": "Maybe a white-padded version could work better since the black padding can give the model some clues and it could end up cheating by looking at it instead of looking at the molecules.",
    "1227909": "Yeah I wanted to do a white padding, but didn't input the correct `color` parameter... Now i'm rerunning but it's probably gonna take a while!"
  },
  "source": "meta"
}