{
  "id": 231035,
  "title": "384x384 - Raw TFRecords [+ Easily Create More]",
  "url": "/competitions/bms-molecular-translation/discussion/231035",
  "author_name": "",
  "post_date": "2021-04-06T15:45:58.784496200Z",
  "votes": 10,
  "comment_count": 3,
  "views": 0,
  "content": "<p>Hi there. Not sure if this will help anyone but I made 3 things and thought to share them.</p>\n<hr>\n<ol>\n<li><p>A <a href=\"https://www.kaggle.com/dschettler8845/bms-tfrecord-dataset-384x384\" target=\"_blank\"><strong>TFRecord Dataset</strong></a> containing <strong><code>384x384</code></strong> images of the entire train dataset (<strong><code>60000</code></strong> held for Validation) and the entire test dataset. No rotation or preprocessing other than inverting from black to white, padding the images to be square, and resizing is done.</p></li>\n<li><p>A <a href=\"https://www.kaggle.com/dschettler8845/bms-simple-tfrecord-creation\" target=\"_blank\"><strong>Notebook</strong></a> showing how to easily create the above-mentioned dataset. It should be easy to modify and will allow you to use Kaggle resources to create whatever dataset you'd like.</p></li>\n<li><p>A <a href=\"https://www.kaggle.com/dschettler8845/open-darien-bms-tfrecords\" target=\"_blank\"><strong>Notebook</strong></a> showing how to create a <strong><code>tf.data.Dataset</code></strong> from the tfrecords and display a few for a sanity check.</p></li>\n</ol>\n<hr>\n<p>I am aware that there are some very basic checks (if h&gt;w then rotate) that should be performed. This should be easy to incorporate into the notebooks listed above and I probably will update them with a FLAG to allow for such a modification in the near future. Other configuration changes such as inverting, or performing CV2 style repairs (as in <a href=\"https://www.kaggle.com/markwijkhuizen/advanced-image-cleaning-and-tfrecord-generation\" target=\"_blank\"><strong>this notebook</strong></a> by <a href=\"https://www.kaggle.com/markwijkhuizen\" target=\"_blank\">@markwijkhuizen</a> ).</p>\n<hr>\n<p>Thanks for reading. All the best!</p>",
  "messages": [
    {
      "id": "1265068",
      "postDate": "04/06/2021 15:45:58",
      "content": "<p>Hi there. Not sure if this will help anyone but I made 3 things and thought to share them.</p>\n<hr>\n<ol>\n<li><p>A <a href=\"https://www.kaggle.com/dschettler8845/bms-tfrecord-dataset-384x384\" target=\"_blank\"><strong>TFRecord Dataset</strong></a> containing <strong><code>384x384</code></strong> images of the entire train dataset (<strong><code>60000</code></strong> held for Validation) and the entire test dataset. No rotation or preprocessing other than inverting from black to white, padding the images to be square, and resizing is done.</p></li>\n<li><p>A <a href=\"https://www.kaggle.com/dschettler8845/bms-simple-tfrecord-creation\" target=\"_blank\"><strong>Notebook</strong></a> showing how to easily create the above-mentioned dataset. It should be easy to modify and will allow you to use Kaggle resources to create whatever dataset you'd like.</p></li>\n<li><p>A <a href=\"https://www.kaggle.com/dschettler8845/open-darien-bms-tfrecords\" target=\"_blank\"><strong>Notebook</strong></a> showing how to create a <strong><code>tf.data.Dataset</code></strong> from the tfrecords and display a few for a sanity check.</p></li>\n</ol>\n<hr>\n<p>I am aware that there are some very basic checks (if h&gt;w then rotate) that should be performed. This should be easy to incorporate into the notebooks listed above and I probably will update them with a FLAG to allow for such a modification in the near future. Other configuration changes such as inverting, or performing CV2 style repairs (as in <a href=\"https://www.kaggle.com/markwijkhuizen/advanced-image-cleaning-and-tfrecord-generation\" target=\"_blank\"><strong>this notebook</strong></a> by <a href=\"https://www.kaggle.com/markwijkhuizen\" target=\"_blank\">@markwijkhuizen</a> ).</p>\n<hr>\n<p>Thanks for reading. All the best!</p>",
      "rawMarkdown": "Hi there. Not sure if this will help anyone but I made 3 things and thought to share them.\n\n---\n\n1. A [**TFRecord Dataset**](https://www.kaggle.com/dschettler8845/bms-tfrecord-dataset-384x384) containing **`384x384`** images of the entire train dataset (**`60000`** held for Validation) and the entire test dataset. No rotation or preprocessing other than inverting from black to white, padding the images to be square, and resizing is done.\n\n2. A [**Notebook**](https://www.kaggle.com/dschettler8845/bms-simple-tfrecord-creation) showing how to easily create the above-mentioned dataset. It should be easy to modify and will allow you to use Kaggle resources to create whatever dataset you'd like.\n\n3. A [**Notebook**](https://www.kaggle.com/dschettler8845/open-darien-bms-tfrecords) showing how to create a **`tf.data.Dataset`** from the tfrecords and display a few for a sanity check.\n\n---\n\nI am aware that there are some very basic checks (if h>w then rotate) that should be performed. This should be easy to incorporate into the notebooks listed above and I probably will update them with a FLAG to allow for such a modification in the near future. Other configuration changes such as inverting, or performing CV2 style repairs (as in [**this notebook**](https://www.kaggle.com/markwijkhuizen/advanced-image-cleaning-and-tfrecord-generation) by @markwijkhuizen ).\n\n---\n\nThanks for reading. All the best!",
      "votes": null
    },
    {
      "id": "1268480",
      "postDate": "04/09/2021 12:44:32",
      "content": "<p>Thanks a lot for sharing.  Can you tell how to inference with tensorflow baseline if used?     </p>",
      "rawMarkdown": "Thanks a lot for sharing.  Can you tell how to inference with tensorflow baseline if used?",
      "votes": null
    },
    {
      "id": "1268485",
      "postDate": "04/09/2021 12:50:26",
      "content": "<p>Hi there. You’re quite welcome!</p>\n<p>I’m currently working on a really beginner friendly notebook to guide people through TPU training and inference using this dataset. I hope to post it within a week or so.</p>",
      "rawMarkdown": "Hi there. You’re quite welcome!\n\nI’m currently working on a really beginner friendly notebook to guide people through TPU training and inference using this dataset. I hope to post it within a week or so.",
      "votes": null
    },
    {
      "id": "1268708",
      "postDate": "04/09/2021 17:06:22",
      "content": "<p>Waiting for your TPU kernels 😀! It would be super awesome if your kernel released with Y. Nakama tokenizer then it would be super awesome for me 😀</p>",
      "rawMarkdown": "Waiting for your TPU kernels 😀! It would be super awesome if your kernel released with Y. Nakama tokenizer then it would be super awesome for me 😀",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 1268480,
      "author_name": "aifahim",
      "author_url": "",
      "post_date": "04/09/2021 12:44:32",
      "content": "<p>Thanks a lot for sharing.  Can you tell how to inference with tensorflow baseline if used?     </p>",
      "votes": null,
      "replies": [
        {
          "id": 1268485,
          "author_name": "dschettler8845",
          "author_url": "",
          "post_date": "04/09/2021 12:50:26",
          "content": "<p>Hi there. You’re quite welcome!</p>\n<p>I’m currently working on a really beginner friendly notebook to guide people through TPU training and inference using this dataset. I hope to post it within a week or so.</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 1268708,
          "author_name": "aifahim",
          "author_url": "",
          "post_date": "04/09/2021 17:06:22",
          "content": "<p>Waiting for your TPU kernels 😀! It would be super awesome if your kernel released with Y. Nakama tokenizer then it would be super awesome for me 😀</p>",
          "votes": null,
          "replies": []
        }
      ]
    }
  ],
  "raw_markdown_by_id": {
    "1265068": "Hi there. Not sure if this will help anyone but I made 3 things and thought to share them.\n\n---\n\n1. A [**TFRecord Dataset**](https://www.kaggle.com/dschettler8845/bms-tfrecord-dataset-384x384) containing **`384x384`** images of the entire train dataset (**`60000`** held for Validation) and the entire test dataset. No rotation or preprocessing other than inverting from black to white, padding the images to be square, and resizing is done.\n\n2. A [**Notebook**](https://www.kaggle.com/dschettler8845/bms-simple-tfrecord-creation) showing how to easily create the above-mentioned dataset. It should be easy to modify and will allow you to use Kaggle resources to create whatever dataset you'd like.\n\n3. A [**Notebook**](https://www.kaggle.com/dschettler8845/open-darien-bms-tfrecords) showing how to create a **`tf.data.Dataset`** from the tfrecords and display a few for a sanity check.\n\n---\n\nI am aware that there are some very basic checks (if h>w then rotate) that should be performed. This should be easy to incorporate into the notebooks listed above and I probably will update them with a FLAG to allow for such a modification in the near future. Other configuration changes such as inverting, or performing CV2 style repairs (as in [**this notebook**](https://www.kaggle.com/markwijkhuizen/advanced-image-cleaning-and-tfrecord-generation) by @markwijkhuizen ).\n\n---\n\nThanks for reading. All the best!",
    "1268480": "Thanks a lot for sharing.  Can you tell how to inference with tensorflow baseline if used?",
    "1268485": "Hi there. You’re quite welcome!\n\nI’m currently working on a really beginner friendly notebook to guide people through TPU training and inference using this dataset. I hope to post it within a week or so.",
    "1268708": "Waiting for your TPU kernels 😀! It would be super awesome if your kernel released with Y. Nakama tokenizer then it would be super awesome for me 😀"
  },
  "source": "meta"
}