{
  "id": 335026,
  "title": "HuBMAP + HPA Keras Segmentation",
  "url": "/competitions/hubmap-organ-segmentation/discussion/335026",
  "author_name": "",
  "post_date": "2022-07-04T10:00:55.162755Z",
  "votes": 2,
  "comment_count": 2,
  "views": 0,
  "content": "<ol>\n<li>Create tfrecords<br>\n<a href=\"https://www.kaggle.com/code/aleksandrkruchinin/hubmap-hpa-images-tfrecords\" target=\"_blank\">https://www.kaggle.com/code/aleksandrkruchinin/hubmap-hpa-images-tfrecords</a></li>\n<li>Tfrecords dataset<br>\n<a href=\"https://www.kaggle.com/datasets/aleksandrkruchinin/hubmaphpa-im512-reduce2\" target=\"_blank\">https://www.kaggle.com/datasets/aleksandrkruchinin/hubmaphpa-im512-reduce2</a></li>\n<li>Train<br>\n<a href=\"https://www.kaggle.com/aleksandrkruchinin/tpu-hubmap-hpa-train-tensorflow\" target=\"_blank\">https://www.kaggle.com/aleksandrkruchinin/tpu-hubmap-hpa-train-tensorflow</a></li>\n<li>Train models<br>\n<a href=\"https://www.kaggle.com/datasets/aleksandrkruchinin/hubmap-keras-model-start-1/settings\" target=\"_blank\">https://www.kaggle.com/datasets/aleksandrkruchinin/hubmap-keras-model-start-1/settings</a></li>\n<li>Submission<br>\n<a href=\"https://www.kaggle.com/code/aleksandrkruchinin/gpu-hubmap-hpa-tensorflow-submission\" target=\"_blank\">https://www.kaggle.com/code/aleksandrkruchinin/gpu-hubmap-hpa-tensorflow-submission</a></li>\n</ol>",
  "messages": [
    {
      "id": "1842814",
      "postDate": "07/04/2022 10:00:55",
      "content": "<ol>\n<li>Create tfrecords<br>\n<a href=\"https://www.kaggle.com/code/aleksandrkruchinin/hubmap-hpa-images-tfrecords\" target=\"_blank\">https://www.kaggle.com/code/aleksandrkruchinin/hubmap-hpa-images-tfrecords</a></li>\n<li>Tfrecords dataset<br>\n<a href=\"https://www.kaggle.com/datasets/aleksandrkruchinin/hubmaphpa-im512-reduce2\" target=\"_blank\">https://www.kaggle.com/datasets/aleksandrkruchinin/hubmaphpa-im512-reduce2</a></li>\n<li>Train<br>\n<a href=\"https://www.kaggle.com/aleksandrkruchinin/tpu-hubmap-hpa-train-tensorflow\" target=\"_blank\">https://www.kaggle.com/aleksandrkruchinin/tpu-hubmap-hpa-train-tensorflow</a></li>\n<li>Train models<br>\n<a href=\"https://www.kaggle.com/datasets/aleksandrkruchinin/hubmap-keras-model-start-1/settings\" target=\"_blank\">https://www.kaggle.com/datasets/aleksandrkruchinin/hubmap-keras-model-start-1/settings</a></li>\n<li>Submission<br>\n<a href=\"https://www.kaggle.com/code/aleksandrkruchinin/gpu-hubmap-hpa-tensorflow-submission\" target=\"_blank\">https://www.kaggle.com/code/aleksandrkruchinin/gpu-hubmap-hpa-tensorflow-submission</a></li>\n</ol>",
      "rawMarkdown": "1. Create tfrecords\nhttps://www.kaggle.com/code/aleksandrkruchinin/hubmap-hpa-images-tfrecords\n2. Tfrecords dataset\nhttps://www.kaggle.com/datasets/aleksandrkruchinin/hubmaphpa-im512-reduce2\n3. Train\nhttps://www.kaggle.com/aleksandrkruchinin/tpu-hubmap-hpa-train-tensorflow\n4. Train models\nhttps://www.kaggle.com/datasets/aleksandrkruchinin/hubmap-keras-model-start-1/settings\n5. Submission\nhttps://www.kaggle.com/code/aleksandrkruchinin/gpu-hubmap-hpa-tensorflow-submission",
      "votes": null
    },
    {
      "id": "1843902",
      "postDate": "07/05/2022 07:31:33",
      "content": "<p>Great job on putting together this getting started guide for the HuBMAP + HPA segmentation challenge! Your work will be a huge help to other members of the community who are just getting started with the challenge.</p>\n<p><strong>A few things that might be helpful to add to your guide:</strong></p>\n<ul>\n<li>A brief overview of the overall pipeline you built. </li>\n<li>A description for each of the links. Just so we know what you provide.</li>\n</ul>\n<p>Thanks again for your work on this and good luck to you in the challenge!</p>",
      "rawMarkdown": "Great job on putting together this getting started guide for the HuBMAP + HPA segmentation challenge! Your work will be a huge help to other members of the community who are just getting started with the challenge.\n\n**A few things that might be helpful to add to your guide:**\n\n- A brief overview of the overall pipeline you built. \n- A description for each of the links. Just so we know what you provide.\n\nThanks again for your work on this and good luck to you in the challenge!",
      "votes": null
    },
    {
      "id": "1844072",
      "postDate": "07/05/2022 10:24:19",
      "content": "<p>This is a simple segmentation approach that was used in the competition:<br>\n<a href=\"url\" target=\"_blank\">https://www.kaggle.com/competitions/hubmap-kidney-segmentation</a><br>\nThe EfficientNet model is trained on data without regard to organ type and scale. Images are cut into blocks of size 1024, which are reduced by a factor of 2 to 512. In inference images are also cut into similar sizes. If they are less than 1024 then they are stretched to 1024.</p>\n<ol>\n<li><a href=\"url\" target=\"_blank\">https://www.kaggle.com/code/aleksandrkruchinin/hubmap-hpa-images-tfrecords</a><br>\nCreating tfrecords for TensorFlow. The images are cut into 1024 blocks, which are reduced by a factor of 2 to 512.</li>\n<li>Training dataset received by the previous notebook<br>\n<a href=\"url\" target=\"_blank\">https://www.kaggle.com/datasets/aleksandrkruchinin/hubmaphpa-im512-reduce2</a></li>\n<li><a href=\"url\" target=\"_blank\">https://www.kaggle.com/aleksandrkruchinin/tpu-hubmap-hpa-train-tensorflow</a><br>\nIn this notebook I was  training our model for the number of 4 FOLDS. I saved the models with best&nbsp;val_diceCoefficient.<br>\nGreat notebook with commentary explaining the training:<br>\n<a href=\"url\" target=\"_blank\">https://www.kaggle.com/code/kool777/training-hubmap-eda-tf-keras-tpu/notebook</a></li>\n<li><a href=\"url\" target=\"_blank\">https://www.kaggle.com/datasets/aleksandrkruchinin/hubmap-keras-model-start-1/settings</a><br>\nDataset with models (saved from training notebook)</li>\n<li><a href=\"https://www.kaggle.com/code/aleksandrkruchinin/gpu-hubmap-hpa-tensorflow-submission\" target=\"_blank\">https://www.kaggle.com/code/aleksandrkruchinin/gpu-hubmap-hpa-tensorflow-submission</a><br>\nSubmittion notebook<br>\nThe images are also cut into similar sizes and if they are less than 1024 then they are stretched to 1024. After resizing to 512x512 a prediction is made and using the average prediction from 4 models. Result on training data:<br>\nId = 9777<br>\nOriginal image, training mask, inference<br>\n<img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F4159010%2F7933121532940e1ff30bcd7215fdf3de%2F2022-07-04_14-44-22.png?generation=1657016376257403&amp;alt=media\" alt=\"\"><br>\nResult on the test image<br>\n<img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F4159010%2Fb261b831f47dec8e58f118ac7da56979%2F2022-07-04_14-31-03.png?generation=1657016456305852&amp;alt=media\" alt=\"\"><br>\nLB =0.5</li>\n</ol>",
      "rawMarkdown": "This is a simple segmentation approach that was used in the competition:\n[https://www.kaggle.com/competitions/hubmap-kidney-segmentation](url)\nThe EfficientNet model is trained on data without regard to organ type and scale. Images are cut into blocks of size 1024, which are reduced by a factor of 2 to 512. In inference images are also cut into similar sizes. If they are less than 1024 then they are stretched to 1024.\n\n1.  [https://www.kaggle.com/code/aleksandrkruchinin/hubmap-hpa-images-tfrecords](url)\nCreating tfrecords for TensorFlow. The images are cut into 1024 blocks, which are reduced by a factor of 2 to 512.\n2. Training dataset received by the previous notebook\n[https://www.kaggle.com/datasets/aleksandrkruchinin/hubmaphpa-im512-reduce2](url)\n3. [https://www.kaggle.com/aleksandrkruchinin/tpu-hubmap-hpa-train-tensorflow](url)\nIn this notebook I was  training our model for the number of 4 FOLDS. I saved the models with best val_diceCoefficient.\nGreat notebook with commentary explaining the training:\n[https://www.kaggle.com/code/kool777/training-hubmap-eda-tf-keras-tpu/notebook](url)\n4. [https://www.kaggle.com/datasets/aleksandrkruchinin/hubmap-keras-model-start-1/settings](url)\nDataset with models (saved from training notebook)\n5. https://www.kaggle.com/code/aleksandrkruchinin/gpu-hubmap-hpa-tensorflow-submission\nSubmittion notebook\nThe images are also cut into similar sizes and if they are less than 1024 then they are stretched to 1024. After resizing to 512x512 a prediction is made and using the average prediction from 4 models. Result on training data:\nId = 9777\nOriginal image, training mask, inference\n![](https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F4159010%2F7933121532940e1ff30bcd7215fdf3de%2F2022-07-04_14-44-22.png?generation=1657016376257403&alt=media)\nResult on the test image\n![](https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F4159010%2Fb261b831f47dec8e58f118ac7da56979%2F2022-07-04_14-31-03.png?generation=1657016456305852&alt=media)\nLB =0.5",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 1843902,
      "author_name": "thedevastator",
      "author_url": "",
      "post_date": "07/05/2022 07:31:33",
      "content": "<p>Great job on putting together this getting started guide for the HuBMAP + HPA segmentation challenge! Your work will be a huge help to other members of the community who are just getting started with the challenge.</p>\n<p><strong>A few things that might be helpful to add to your guide:</strong></p>\n<ul>\n<li>A brief overview of the overall pipeline you built. </li>\n<li>A description for each of the links. Just so we know what you provide.</li>\n</ul>\n<p>Thanks again for your work on this and good luck to you in the challenge!</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 1844072,
      "author_name": "aleksandrkruchinin",
      "author_url": "",
      "post_date": "07/05/2022 10:24:19",
      "content": "<p>This is a simple segmentation approach that was used in the competition:<br>\n<a href=\"url\" target=\"_blank\">https://www.kaggle.com/competitions/hubmap-kidney-segmentation</a><br>\nThe EfficientNet model is trained on data without regard to organ type and scale. Images are cut into blocks of size 1024, which are reduced by a factor of 2 to 512. In inference images are also cut into similar sizes. If they are less than 1024 then they are stretched to 1024.</p>\n<ol>\n<li><a href=\"url\" target=\"_blank\">https://www.kaggle.com/code/aleksandrkruchinin/hubmap-hpa-images-tfrecords</a><br>\nCreating tfrecords for TensorFlow. The images are cut into 1024 blocks, which are reduced by a factor of 2 to 512.</li>\n<li>Training dataset received by the previous notebook<br>\n<a href=\"url\" target=\"_blank\">https://www.kaggle.com/datasets/aleksandrkruchinin/hubmaphpa-im512-reduce2</a></li>\n<li><a href=\"url\" target=\"_blank\">https://www.kaggle.com/aleksandrkruchinin/tpu-hubmap-hpa-train-tensorflow</a><br>\nIn this notebook I was  training our model for the number of 4 FOLDS. I saved the models with best&nbsp;val_diceCoefficient.<br>\nGreat notebook with commentary explaining the training:<br>\n<a href=\"url\" target=\"_blank\">https://www.kaggle.com/code/kool777/training-hubmap-eda-tf-keras-tpu/notebook</a></li>\n<li><a href=\"url\" target=\"_blank\">https://www.kaggle.com/datasets/aleksandrkruchinin/hubmap-keras-model-start-1/settings</a><br>\nDataset with models (saved from training notebook)</li>\n<li><a href=\"https://www.kaggle.com/code/aleksandrkruchinin/gpu-hubmap-hpa-tensorflow-submission\" target=\"_blank\">https://www.kaggle.com/code/aleksandrkruchinin/gpu-hubmap-hpa-tensorflow-submission</a><br>\nSubmittion notebook<br>\nThe images are also cut into similar sizes and if they are less than 1024 then they are stretched to 1024. After resizing to 512x512 a prediction is made and using the average prediction from 4 models. Result on training data:<br>\nId = 9777<br>\nOriginal image, training mask, inference<br>\n<img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F4159010%2F7933121532940e1ff30bcd7215fdf3de%2F2022-07-04_14-44-22.png?generation=1657016376257403&amp;alt=media\" alt=\"\"><br>\nResult on the test image<br>\n<img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F4159010%2Fb261b831f47dec8e58f118ac7da56979%2F2022-07-04_14-31-03.png?generation=1657016456305852&amp;alt=media\" alt=\"\"><br>\nLB =0.5</li>\n</ol>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "1842814": "1. Create tfrecords\nhttps://www.kaggle.com/code/aleksandrkruchinin/hubmap-hpa-images-tfrecords\n2. Tfrecords dataset\nhttps://www.kaggle.com/datasets/aleksandrkruchinin/hubmaphpa-im512-reduce2\n3. Train\nhttps://www.kaggle.com/aleksandrkruchinin/tpu-hubmap-hpa-train-tensorflow\n4. Train models\nhttps://www.kaggle.com/datasets/aleksandrkruchinin/hubmap-keras-model-start-1/settings\n5. Submission\nhttps://www.kaggle.com/code/aleksandrkruchinin/gpu-hubmap-hpa-tensorflow-submission",
    "1843902": "Great job on putting together this getting started guide for the HuBMAP + HPA segmentation challenge! Your work will be a huge help to other members of the community who are just getting started with the challenge.\n\n**A few things that might be helpful to add to your guide:**\n\n- A brief overview of the overall pipeline you built. \n- A description for each of the links. Just so we know what you provide.\n\nThanks again for your work on this and good luck to you in the challenge!",
    "1844072": "This is a simple segmentation approach that was used in the competition:\n[https://www.kaggle.com/competitions/hubmap-kidney-segmentation](url)\nThe EfficientNet model is trained on data without regard to organ type and scale. Images are cut into blocks of size 1024, which are reduced by a factor of 2 to 512. In inference images are also cut into similar sizes. If they are less than 1024 then they are stretched to 1024.\n\n1.  [https://www.kaggle.com/code/aleksandrkruchinin/hubmap-hpa-images-tfrecords](url)\nCreating tfrecords for TensorFlow. The images are cut into 1024 blocks, which are reduced by a factor of 2 to 512.\n2. Training dataset received by the previous notebook\n[https://www.kaggle.com/datasets/aleksandrkruchinin/hubmaphpa-im512-reduce2](url)\n3. [https://www.kaggle.com/aleksandrkruchinin/tpu-hubmap-hpa-train-tensorflow](url)\nIn this notebook I was  training our model for the number of 4 FOLDS. I saved the models with best val_diceCoefficient.\nGreat notebook with commentary explaining the training:\n[https://www.kaggle.com/code/kool777/training-hubmap-eda-tf-keras-tpu/notebook](url)\n4. [https://www.kaggle.com/datasets/aleksandrkruchinin/hubmap-keras-model-start-1/settings](url)\nDataset with models (saved from training notebook)\n5. https://www.kaggle.com/code/aleksandrkruchinin/gpu-hubmap-hpa-tensorflow-submission\nSubmittion notebook\nThe images are also cut into similar sizes and if they are less than 1024 then they are stretched to 1024. After resizing to 512x512 a prediction is made and using the average prediction from 4 models. Result on training data:\nId = 9777\nOriginal image, training mask, inference\n![](https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F4159010%2F7933121532940e1ff30bcd7215fdf3de%2F2022-07-04_14-44-22.png?generation=1657016376257403&alt=media)\nResult on the test image\n![](https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F4159010%2Fb261b831f47dec8e58f118ac7da56979%2F2022-07-04_14-31-03.png?generation=1657016456305852&alt=media)\nLB =0.5"
  },
  "source": "meta"
}