{
  "id": 227128,
  "title": "1st Place Solution Kernels (small ver.) Released!",
  "url": "/competitions/ranzcr-clip-catheter-line-classification/discussion/227128",
  "author_name": "Qishen Ha",
  "post_date": "2021-03-19T04:50:47.131000",
  "votes": 48,
  "comment_count": 7,
  "views": 0,
  "content": "<p>Hi all, </p>\n<p>I would like to congrat to all winners, and thank my wonderful teammates <a href=\"https://www.kaggle.com/boliu0\" target=\"_blank\">@boliu0</a> <a href=\"https://www.kaggle.com/garybios\" target=\"_blank\">@garybios</a> again here.</p>\n<p>Congratulations to become new GM! <a href=\"https://www.kaggle.com/tonyxu\" target=\"_blank\">@tonyxu</a> <a href=\"https://www.kaggle.com/andy2709\" target=\"_blank\">@andy2709</a> <a href=\"https://www.kaggle.com/nguyenbadung\" target=\"_blank\">@nguyenbadung</a> </p>\n<p>And congratulations to VinBigData Group, their employees won 3 solo golds in this competition! <a href=\"https://www.kaggle.com/moewie94\" target=\"_blank\">@moewie94</a> <a href=\"https://www.kaggle.com/andy2709\" target=\"_blank\">@andy2709</a> <a href=\"https://www.kaggle.com/nguyenbadung\" target=\"_blank\">@nguyenbadung</a></p>\n<p>This is a great achievement!</p>\n<h1>Minimal Pipeline</h1>\n<p>Our final pipeline has 4 training stages which is too complex, but the minimal pipeline I released here has only <strong>2 stages</strong>.</p>\n<p>Beside, we <strong>removed ext data usage</strong> to simplify the minimal pipeline further. </p>\n<p>The 5-fold model trained by this minimal pipeline using official data only, is sufficient to achieve CV 0.968-0.969 and pub/pvt LB 0.972, with only <strong>a single 16GB GPU</strong> .</p>\n<p>I estimate that if the segmentation model uses 768 inputs and the classification model uses 384 inputs, we can also achieve a pvt LB of 0.970 to 0.971. If you plan to run our minimal pipeline with an 11GB GPU, you can try changing the inputs to this, without modifying any other setting.</p>\n<p>Here I published 3 notebooks to demonstrate how our minimal pipeline works.</p>\n<ul>\n<li><p>Stage1: Segmentation (<a href=\"https://www.kaggle.com/haqishen/ranzcr-1st-place-soluiton-seg-model-small-ver\" target=\"_blank\">https://www.kaggle.com/haqishen/ranzcr-1st-place-soluiton-seg-model-small-ver</a>)</p></li>\n<li><p>Stage2: Classification (<a href=\"https://www.kaggle.com/haqishen/ranzcr-1st-place-soluiton-cls-model-small-ver\" target=\"_blank\">https://www.kaggle.com/haqishen/ranzcr-1st-place-soluiton-cls-model-small-ver</a>)</p></li>\n<li><p>Inference (<a href=\"https://www.kaggle.com/haqishen/ranzcr-1st-place-soluiton-inference-small-ver\" target=\"_blank\">https://www.kaggle.com/haqishen/ranzcr-1st-place-soluiton-inference-small-ver</a>)</p></li>\n</ul>\n<h1>Acknowledge</h1>\n<p>Special Thanks to Z by HP &amp; NVIDIA for sponsoring me a Z8G4 Workstation with dual RTX6000 GPU and a ZBook with RTX5000 GPU!</p>\n<p>Using larger resolution images in this competition can significantly improve model performance, so the RTX6000 with 24GB memory really helped me a lot!</p>",
  "messages": [
    {
      "id": 1244577,
      "postDate": "2021-03-19T04:50:47.133Z",
      "content": "<p>Hi all, </p>\n<p>I would like to congrat to all winners, and thank my wonderful teammates <a href=\"https://www.kaggle.com/boliu0\" target=\"_blank\">@boliu0</a> <a href=\"https://www.kaggle.com/garybios\" target=\"_blank\">@garybios</a> again here.</p>\n<p>Congratulations to become new GM! <a href=\"https://www.kaggle.com/tonyxu\" target=\"_blank\">@tonyxu</a> <a href=\"https://www.kaggle.com/andy2709\" target=\"_blank\">@andy2709</a> <a href=\"https://www.kaggle.com/nguyenbadung\" target=\"_blank\">@nguyenbadung</a> </p>\n<p>And congratulations to VinBigData Group, their employees won 3 solo golds in this competition! <a href=\"https://www.kaggle.com/moewie94\" target=\"_blank\">@moewie94</a> <a href=\"https://www.kaggle.com/andy2709\" target=\"_blank\">@andy2709</a> <a href=\"https://www.kaggle.com/nguyenbadung\" target=\"_blank\">@nguyenbadung</a></p>\n<p>This is a great achievement!</p>\n<h1>Minimal Pipeline</h1>\n<p>Our final pipeline has 4 training stages which is too complex, but the minimal pipeline I released here has only <strong>2 stages</strong>.</p>\n<p>Beside, we <strong>removed ext data usage</strong> to simplify the minimal pipeline further. </p>\n<p>The 5-fold model trained by this minimal pipeline using official data only, is sufficient to achieve CV 0.968-0.969 and pub/pvt LB 0.972, with only <strong>a single 16GB GPU</strong> .</p>\n<p>I estimate that if the segmentation model uses 768 inputs and the classification model uses 384 inputs, we can also achieve a pvt LB of 0.970 to 0.971. If you plan to run our minimal pipeline with an 11GB GPU, you can try changing the inputs to this, without modifying any other setting.</p>\n<p>Here I published 3 notebooks to demonstrate how our minimal pipeline works.</p>\n<ul>\n<li><p>Stage1: Segmentation (<a href=\"https://www.kaggle.com/haqishen/ranzcr-1st-place-soluiton-seg-model-small-ver\" target=\"_blank\">https://www.kaggle.com/haqishen/ranzcr-1st-place-soluiton-seg-model-small-ver</a>)</p></li>\n<li><p>Stage2: Classification (<a href=\"https://www.kaggle.com/haqishen/ranzcr-1st-place-soluiton-cls-model-small-ver\" target=\"_blank\">https://www.kaggle.com/haqishen/ranzcr-1st-place-soluiton-cls-model-small-ver</a>)</p></li>\n<li><p>Inference (<a href=\"https://www.kaggle.com/haqishen/ranzcr-1st-place-soluiton-inference-small-ver\" target=\"_blank\">https://www.kaggle.com/haqishen/ranzcr-1st-place-soluiton-inference-small-ver</a>)</p></li>\n</ul>\n<h1>Acknowledge</h1>\n<p>Special Thanks to Z by HP &amp; NVIDIA for sponsoring me a Z8G4 Workstation with dual RTX6000 GPU and a ZBook with RTX5000 GPU!</p>\n<p>Using larger resolution images in this competition can significantly improve model performance, so the RTX6000 with 24GB memory really helped me a lot!</p>",
      "rawMarkdown": "Hi all, \n\nI would like to congrat to all winners, and thank my wonderful teammates @boliu0 @garybios again here.\n\nCongratulations to become new GM! @tonyxu @andy2709 @nguyenbadung \n\nAnd congratulations to VinBigData Group, their employees won 3 solo golds in this competition! @moewie94 @andy2709 @nguyenbadung\n\nThis is a great achievement!\n\n# Minimal Pipeline\n\nOur final pipeline has 4 training stages which is too complex, but the minimal pipeline I released here has only **2 stages**.\n\nBeside, we **removed ext data usage** to simplify the minimal pipeline further. \n\nThe 5-fold model trained by this minimal pipeline using official data only, is sufficient to achieve CV 0.968-0.969 and pub/pvt LB 0.972, with only **a single 16GB GPU** .\n\nI estimate that if the segmentation model uses 768 inputs and the classification model uses 384 inputs, we can also achieve a pvt LB of 0.970 to 0.971. If you plan to run our minimal pipeline with an 11GB GPU, you can try changing the inputs to this, without modifying any other setting.\n\nHere I published 3 notebooks to demonstrate how our minimal pipeline works.\n\n* Stage1: Segmentation (https://www.kaggle.com/haqishen/ranzcr-1st-place-soluiton-seg-model-small-ver)\n\n* Stage2: Classification (https://www.kaggle.com/haqishen/ranzcr-1st-place-soluiton-cls-model-small-ver)\n\n* Inference (https://www.kaggle.com/haqishen/ranzcr-1st-place-soluiton-inference-small-ver)\n\n# Acknowledge\n\nSpecial Thanks to Z by HP & NVIDIA for sponsoring me a Z8G4 Workstation with dual RTX6000 GPU and a ZBook with RTX5000 GPU!\n\nUsing larger resolution images in this competition can significantly improve model performance, so the RTX6000 with 24GB memory really helped me a lot!\n",
      "votes": 48
    },
    {
      "id": 1246852,
      "postDate": "2021-03-21T07:19:38.333Z",
      "content": "<p><a href=\"https://www.kaggle.com/haqishen\" target=\"_blank\">@haqishen</a> , Great solution! Thanks for sharing. I added it to my collection in <a href=\"https://www.kaggle.com/vbmokin/data-science-with-dl-nlp-advanced-techniques\" target=\"_blank\">\"Data Science with DL &amp; NLP: Advanced Techniques\"</a>, section \"Prize Competition Winners: notebooks (kernels) and posts with Magic\".</p>",
      "rawMarkdown": "@haqishen , Great solution! Thanks for sharing. I added it to my collection in [\"Data Science with DL & NLP: Advanced Techniques\"](https://www.kaggle.com/vbmokin/data-science-with-dl-nlp-advanced-techniques), section \"Prize Competition Winners: notebooks (kernels) and posts with Magic\".",
      "votes": 1,
      "replies": [
        {
          "id": 1246854,
          "postDate": "2021-03-21T07:21:49.750Z",
          "content": "<p>Thanks! 👍</p>",
          "rawMarkdown": "Thanks! 👍",
          "votes": 1
        }
      ]
    },
    {
      "id": 1244730,
      "postDate": "2021-03-19T07:33:05.013Z",
      "content": "<p>Learned a lot from you. Segmentation part is interesting.<br>\nThanks!</p>",
      "rawMarkdown": "Learned a lot from you. Segmentation part is interesting.\nThanks!",
      "votes": 2
    },
    {
      "id": 1244587,
      "postDate": "2021-03-19T04:54:02.737Z",
      "content": "<p>Really excited to try Segmentation Kernel!!<br>\nThanks</p>",
      "rawMarkdown": "Really excited to try Segmentation Kernel!!\nThanks",
      "votes": 2
    },
    {
      "id": 1271869,
      "postDate": "2021-04-13T02:13:04.797Z",
      "content": "<p>Thanks to the organizers and congrats to all the winners and my wonderful teammates!<br>\nHere, I would like to give a special thanks to Z by HP &amp; NVIDIA for sponsoring the HP Z8 G4 Workstation with Dual RTX6000 GPUs.<br>\nThe NVIDIA RTX6000 with 24GB RAM allowed me to train a deeper/larger models and larger image size, which was the key of our solution.</p>",
      "rawMarkdown": "Thanks to the organizers and congrats to all the winners and my wonderful teammates!\nHere, I would like to give a special thanks to Z by HP & NVIDIA for sponsoring the HP Z8 G4 Workstation with Dual RTX6000 GPUs.\nThe NVIDIA RTX6000 with 24GB RAM allowed me to train a deeper/larger models and larger image size, which was the key of our solution.\n",
      "votes": -2
    },
    {
      "id": 1246815,
      "postDate": "2021-03-21T06:17:23.690Z",
      "rawMarkdown": "",
      "votes": 1,
      "isDeleted": true
    },
    {
      "id": 1244589,
      "postDate": "2021-03-19T04:54:53.217Z",
      "content": "<p>Thanks for the clean code. Amazing.</p>",
      "rawMarkdown": "Thanks for the clean code. Amazing.",
      "votes": 1
    }
  ],
  "comments": [
    {
      "id": 1246852,
      "author_name": "Vitalii Mokin",
      "author_url": "",
      "post_date": "2021-03-21T07:19:38.333000",
      "content": "<p><a href=\"https://www.kaggle.com/haqishen\" target=\"_blank\">@haqishen</a> , Great solution! Thanks for sharing. I added it to my collection in <a href=\"https://www.kaggle.com/vbmokin/data-science-with-dl-nlp-advanced-techniques\" target=\"_blank\">\"Data Science with DL &amp; NLP: Advanced Techniques\"</a>, section \"Prize Competition Winners: notebooks (kernels) and posts with Magic\".</p>",
      "votes": 1,
      "replies": [
        {
          "id": 1246854,
          "author_name": "Qishen Ha",
          "author_url": "",
          "post_date": "2021-03-21T07:21:49.750000",
          "content": "<p>Thanks! 👍</p>",
          "votes": 1,
          "replies": []
        }
      ]
    },
    {
      "id": 1244730,
      "author_name": "toxu",
      "author_url": "",
      "post_date": "2021-03-19T07:33:05.013000",
      "content": "<p>Learned a lot from you. Segmentation part is interesting.<br>\nThanks!</p>",
      "votes": 2,
      "replies": []
    },
    {
      "id": 1244587,
      "author_name": "Mohammed Rizin V K",
      "author_url": "",
      "post_date": "2021-03-19T04:54:02.737000",
      "content": "<p>Really excited to try Segmentation Kernel!!<br>\nThanks</p>",
      "votes": 2,
      "replies": []
    },
    {
      "id": 1271869,
      "author_name": "Gary",
      "author_url": "",
      "post_date": "2021-04-13T02:13:04.797000",
      "content": "<p>Thanks to the organizers and congrats to all the winners and my wonderful teammates!<br>\nHere, I would like to give a special thanks to Z by HP &amp; NVIDIA for sponsoring the HP Z8 G4 Workstation with Dual RTX6000 GPUs.<br>\nThe NVIDIA RTX6000 with 24GB RAM allowed me to train a deeper/larger models and larger image size, which was the key of our solution.</p>",
      "votes": -2,
      "replies": []
    },
    {
      "id": 1246815,
      "author_name": "",
      "author_url": "",
      "post_date": "2021-03-21T06:17:23.690000",
      "content": "",
      "votes": 1,
      "replies": []
    },
    {
      "id": 1244589,
      "author_name": "sin",
      "author_url": "",
      "post_date": "2021-03-19T04:54:53.217000",
      "content": "<p>Thanks for the clean code. Amazing.</p>",
      "votes": 1,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "1244577": "Hi all, \n\nI would like to congrat to all winners, and thank my wonderful teammates @boliu0 @garybios again here.\n\nCongratulations to become new GM! @tonyxu @andy2709 @nguyenbadung \n\nAnd congratulations to VinBigData Group, their employees won 3 solo golds in this competition! @moewie94 @andy2709 @nguyenbadung\n\nThis is a great achievement!\n\n# Minimal Pipeline\n\nOur final pipeline has 4 training stages which is too complex, but the minimal pipeline I released here has only **2 stages**.\n\nBeside, we **removed ext data usage** to simplify the minimal pipeline further. \n\nThe 5-fold model trained by this minimal pipeline using official data only, is sufficient to achieve CV 0.968-0.969 and pub/pvt LB 0.972, with only **a single 16GB GPU** .\n\nI estimate that if the segmentation model uses 768 inputs and the classification model uses 384 inputs, we can also achieve a pvt LB of 0.970 to 0.971. If you plan to run our minimal pipeline with an 11GB GPU, you can try changing the inputs to this, without modifying any other setting.\n\nHere I published 3 notebooks to demonstrate how our minimal pipeline works.\n\n* Stage1: Segmentation (https://www.kaggle.com/haqishen/ranzcr-1st-place-soluiton-seg-model-small-ver)\n\n* Stage2: Classification (https://www.kaggle.com/haqishen/ranzcr-1st-place-soluiton-cls-model-small-ver)\n\n* Inference (https://www.kaggle.com/haqishen/ranzcr-1st-place-soluiton-inference-small-ver)\n\n# Acknowledge\n\nSpecial Thanks to Z by HP & NVIDIA for sponsoring me a Z8G4 Workstation with dual RTX6000 GPU and a ZBook with RTX5000 GPU!\n\nUsing larger resolution images in this competition can significantly improve model performance, so the RTX6000 with 24GB memory really helped me a lot!\n",
    "1246852": "@haqishen , Great solution! Thanks for sharing. I added it to my collection in [\"Data Science with DL & NLP: Advanced Techniques\"](https://www.kaggle.com/vbmokin/data-science-with-dl-nlp-advanced-techniques), section \"Prize Competition Winners: notebooks (kernels) and posts with Magic\".",
    "1244730": "Learned a lot from you. Segmentation part is interesting.\nThanks!",
    "1244587": "Really excited to try Segmentation Kernel!!\nThanks",
    "1271869": "Thanks to the organizers and congrats to all the winners and my wonderful teammates!\nHere, I would like to give a special thanks to Z by HP & NVIDIA for sponsoring the HP Z8 G4 Workstation with Dual RTX6000 GPUs.\nThe NVIDIA RTX6000 with 24GB RAM allowed me to train a deeper/larger models and larger image size, which was the key of our solution.\n",
    "1246815": "",
    "1244589": "Thanks for the clean code. Amazing."
  }
}