{
  "id": 118814,
  "title": "Private LB 0.66758 solution: From single Network multi folds",
  "url": "/competitions/understanding_cloud_organization/writeups/myk-private-lb-0-66758-solution-from-single-networ",
  "author_name": "",
  "post_date": "2019-11-24T18:50:34.600618900Z",
  "votes": 4,
  "comment_count": 2,
  "views": 0,
  "content": "<p>Sorry, I took a while to write this. I was struggling with my course exam 👀 </p>\n\n<p>Congratulations to all the participants and winners! This competition was a little bit tricky and different, especially due to the very noisy label in the dataset. I am going to share my solution which outperformed all of my other networks and ensembles. </p>\n\n<h2>Score and Network Summary</h2>\n\n<p><strong>Private score:</strong> 0.66758 \n<strong>Public score:</strong> 0.66654 (<em>Yes! The network gave higher score in private!</em>)\n<strong>Network backbone:</strong> InceptionResNetV2\n<strong>Segmentation Model:</strong> FPN</p>\n\n<p><strong>Train height:</strong>  384\n<strong>Train weight:</strong> 512\n<strong>Loss:</strong> Lovasz\n<strong>Optimizer:</strong> Radam\n<strong>Learning rate:</strong> 1e-4\n<strong>Pretrained weight:</strong> Imagenet</p>\n\n<h3>Augmentations:</h3>\n\n<p>I used albumentations. </p>\n\n<p><strong>TTA:</strong>\n1. HorizontalFlip, VerticalFlip\n2. ShiftScaleRotate \n3. Blur\n4. ToGray\n4. RandomBrightnessContrast, RandomGamma, RGBShift, ElasticTransform (One of them)</p>\n\n<p><strong>Post-processing (For Prediction) Augmentation:</strong> \n- HorizontalFlip, VerticalFlip, ToGray, RandomGamma, Normalize. </p>\n\n<h3>Post-Processing confidence density:</h3>\n\n<p>For all classes:\n<strong>Upper</strong>: 0.6\n<strong>Lower</strong>: 0.4\n<strong>Area</strong>: 100\n<strong>Min area</strong>: 200</p>\n\n<h3>Folds and weights</h3>\n\n<p>I have used a total of 4 folds and 4 weights from each fold. So there was a total of 16 weights from 4 folds and the prediction was the simple average of 16 folds. </p>\n\n<p><strong>There was no other ensemble or use of any extra classifier.</strong></p>\n\n<h3>GPU</h3>\n\n<p>I didn't have any good GPU locally. So I used the Google cloud in the last few days. Google gave $300 dollar free trial credits which were good for around 120 hours VM instance.</p>\n\n<p>I build a VM there with V100 GPU. </p>\n\n<h3>Some thoughts</h3>\n\n<ol>\n<li>I believe this network performs well due to the InceptionResNetV2 only. Because I have output from a similar setup with other backbones which wasn't anywhere near to this score. </li>\n<li>I should have trusted the validation score. This model produced the highest Kaggle dice score at validation compared to other models. </li>\n</ol>",
  "messages": [
    {
      "id": "680489",
      "postDate": "11/24/2019 18:50:34",
      "content": "<p>Sorry, I took a while to write this. I was struggling with my course exam 👀 </p>\n\n<p>Congratulations to all the participants and winners! This competition was a little bit tricky and different, especially due to the very noisy label in the dataset. I am going to share my solution which outperformed all of my other networks and ensembles. </p>\n\n<h2>Score and Network Summary</h2>\n\n<p><strong>Private score:</strong> 0.66758 \n<strong>Public score:</strong> 0.66654 (<em>Yes! The network gave higher score in private!</em>)\n<strong>Network backbone:</strong> InceptionResNetV2\n<strong>Segmentation Model:</strong> FPN</p>\n\n<p><strong>Train height:</strong>  384\n<strong>Train weight:</strong> 512\n<strong>Loss:</strong> Lovasz\n<strong>Optimizer:</strong> Radam\n<strong>Learning rate:</strong> 1e-4\n<strong>Pretrained weight:</strong> Imagenet</p>\n\n<h3>Augmentations:</h3>\n\n<p>I used albumentations. </p>\n\n<p><strong>TTA:</strong>\n1. HorizontalFlip, VerticalFlip\n2. ShiftScaleRotate \n3. Blur\n4. ToGray\n4. RandomBrightnessContrast, RandomGamma, RGBShift, ElasticTransform (One of them)</p>\n\n<p><strong>Post-processing (For Prediction) Augmentation:</strong> \n- HorizontalFlip, VerticalFlip, ToGray, RandomGamma, Normalize. </p>\n\n<h3>Post-Processing confidence density:</h3>\n\n<p>For all classes:\n<strong>Upper</strong>: 0.6\n<strong>Lower</strong>: 0.4\n<strong>Area</strong>: 100\n<strong>Min area</strong>: 200</p>\n\n<h3>Folds and weights</h3>\n\n<p>I have used a total of 4 folds and 4 weights from each fold. So there was a total of 16 weights from 4 folds and the prediction was the simple average of 16 folds. </p>\n\n<p><strong>There was no other ensemble or use of any extra classifier.</strong></p>\n\n<h3>GPU</h3>\n\n<p>I didn't have any good GPU locally. So I used the Google cloud in the last few days. Google gave $300 dollar free trial credits which were good for around 120 hours VM instance.</p>\n\n<p>I build a VM there with V100 GPU. </p>\n\n<h3>Some thoughts</h3>\n\n<ol>\n<li>I believe this network performs well due to the InceptionResNetV2 only. Because I have output from a similar setup with other backbones which wasn't anywhere near to this score. </li>\n<li>I should have trusted the validation score. This model produced the highest Kaggle dice score at validation compared to other models. </li>\n</ol>",
      "rawMarkdown": "Sorry, I took a while to write this. I was struggling with my course exam 👀 \n\nCongratulations to all the participants and winners! This competition was a little bit tricky and different, especially due to the very noisy label in the dataset. I am going to share my solution which outperformed all of my other networks and ensembles. \n\n## Score and Network Summary\n**Private score:** 0.66758 \n**Public score:** 0.66654 (*Yes! The network gave higher score in private!*)\n**Network backbone:** InceptionResNetV2\n**Segmentation Model:** FPN\n\n**Train height:**  384\n**Train weight:** 512\n**Loss:** Lovasz\n**Optimizer:** Radam\n**Learning rate:** 1e-4\n**Pretrained weight:** Imagenet\n\n### Augmentations:\n I used albumentations. \n\n**TTA:**\n1. HorizontalFlip, VerticalFlip\n2. ShiftScaleRotate \n3. Blur\n4. ToGray\n4. RandomBrightnessContrast, RandomGamma, RGBShift, ElasticTransform (One of them)\n\n**Post-processing (For Prediction) Augmentation:** \n- HorizontalFlip, VerticalFlip, ToGray, RandomGamma, Normalize. \n\n### Post-Processing confidence density:\nFor all classes:\n**Upper**: 0.6\n**Lower**: 0.4\n**Area**: 100\n**Min area**: 200\n\n### Folds and weights\nI have used a total of 4 folds and 4 weights from each fold. So there was a total of 16 weights from 4 folds and the prediction was the simple average of 16 folds. \n\n**There was no other ensemble or use of any extra classifier.**\n\n### GPU\nI didn't have any good GPU locally. So I used the Google cloud in the last few days. Google gave $300 dollar free trial credits which were good for around 120 hours VM instance.\n\nI build a VM there with V100 GPU. \n\n### Some thoughts\n1. I believe this network performs well due to the InceptionResNetV2 only. Because I have output from a similar setup with other backbones which wasn't anywhere near to this score. \n2. I should have trusted the validation score. This model produced the highest Kaggle dice score at validation compared to other models.",
      "votes": null
    },
    {
      "id": "680614",
      "postDate": "11/25/2019 01:08:07",
      "content": "<p>Your minimum area is quite small. With single model and small min area, getting rid of false positives is very impressive!!!</p>",
      "rawMarkdown": "Your minimum area is quite small. With single model and small min area, getting rid of false positives is very impressive!!!",
      "votes": null
    },
    {
      "id": "680616",
      "postDate": "11/25/2019 01:09:19",
      "content": "<p>What is Area=100, less then min area?</p>",
      "rawMarkdown": "What is Area=100, less then min area?",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 680614,
      "author_name": "raghaw",
      "author_url": "",
      "post_date": "11/25/2019 01:08:07",
      "content": "<p>Your minimum area is quite small. With single model and small min area, getting rid of false positives is very impressive!!!</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 680616,
      "author_name": "raghaw",
      "author_url": "",
      "post_date": "11/25/2019 01:09:19",
      "content": "<p>What is Area=100, less then min area?</p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "680489": "Sorry, I took a while to write this. I was struggling with my course exam 👀 \n\nCongratulations to all the participants and winners! This competition was a little bit tricky and different, especially due to the very noisy label in the dataset. I am going to share my solution which outperformed all of my other networks and ensembles. \n\n## Score and Network Summary\n**Private score:** 0.66758 \n**Public score:** 0.66654 (*Yes! The network gave higher score in private!*)\n**Network backbone:** InceptionResNetV2\n**Segmentation Model:** FPN\n\n**Train height:**  384\n**Train weight:** 512\n**Loss:** Lovasz\n**Optimizer:** Radam\n**Learning rate:** 1e-4\n**Pretrained weight:** Imagenet\n\n### Augmentations:\n I used albumentations. \n\n**TTA:**\n1. HorizontalFlip, VerticalFlip\n2. ShiftScaleRotate \n3. Blur\n4. ToGray\n4. RandomBrightnessContrast, RandomGamma, RGBShift, ElasticTransform (One of them)\n\n**Post-processing (For Prediction) Augmentation:** \n- HorizontalFlip, VerticalFlip, ToGray, RandomGamma, Normalize. \n\n### Post-Processing confidence density:\nFor all classes:\n**Upper**: 0.6\n**Lower**: 0.4\n**Area**: 100\n**Min area**: 200\n\n### Folds and weights\nI have used a total of 4 folds and 4 weights from each fold. So there was a total of 16 weights from 4 folds and the prediction was the simple average of 16 folds. \n\n**There was no other ensemble or use of any extra classifier.**\n\n### GPU\nI didn't have any good GPU locally. So I used the Google cloud in the last few days. Google gave $300 dollar free trial credits which were good for around 120 hours VM instance.\n\nI build a VM there with V100 GPU. \n\n### Some thoughts\n1. I believe this network performs well due to the InceptionResNetV2 only. Because I have output from a similar setup with other backbones which wasn't anywhere near to this score. \n2. I should have trusted the validation score. This model produced the highest Kaggle dice score at validation compared to other models.",
    "680614": "Your minimum area is quite small. With single model and small min area, getting rid of false positives is very impressive!!!",
    "680616": "What is Area=100, less then min area?"
  },
  "source": "meta"
}