{
  "id": 217564,
  "title": "ChestX Starting Points",
  "url": "/competitions/ranzcr-clip-catheter-line-classification/discussion/217564",
  "author_name": "ammarali32",
  "post_date": "2021-02-07T10:07:53.910000",
  "votes": 48,
  "comment_count": 42,
  "views": 0,
  "content": "<p>Hi everyone, I will update this dataset frequently.<br>\n<a href=\"https://www.kaggle.com/ammarali32/startingpointschestx\" target=\"_blank\">https://www.kaggle.com/ammarali32/startingpointschestx</a><br>\nHope it will be useful )) good luck.<br>\nUPD_1: DenseNet121 added.<br>\nUPD_2: EfficientNet_B5 added.<br>\nUPD_3: SEResNet152D added</p>",
  "messages": [
    {
      "id": 1189876,
      "postDate": "2021-02-07T10:07:53.910Z",
      "content": "<p>Hi everyone, I will update this dataset frequently.<br>\n<a href=\"https://www.kaggle.com/ammarali32/startingpointschestx\" target=\"_blank\">https://www.kaggle.com/ammarali32/startingpointschestx</a><br>\nHope it will be useful )) good luck.<br>\nUPD_1: DenseNet121 added.<br>\nUPD_2: EfficientNet_B5 added.<br>\nUPD_3: SEResNet152D added</p>",
      "rawMarkdown": "Hi everyone, I will update this dataset frequently.\nhttps://www.kaggle.com/ammarali32/startingpointschestx\nHope it will be useful )) good luck.\nUPD_1: DenseNet121 added.\nUPD_2: EfficientNet_B5 added.\nUPD_3: SEResNet152D added",
      "votes": 47
    },
    {
      "id": 1215661,
      "postDate": "2021-02-23T20:54:44.377Z",
      "content": "<p>Thanks for sharing. Also, there is a pytorch module that contains on DenseNet models pretrained on different medical imaging dataset.  <a href=\"https://github.com/mlmed/torchxrayvision\" target=\"_blank\">torchxrayvision link</a></p>\n<p><img src=\"https://raw.githubusercontent.com/mlmed/torchxrayvision/master/docs/torchxrayvision-logo.png\" alt=\"torchxrayvision\"></p>\n<p>Hope it helps you all.</p>",
      "rawMarkdown": "Thanks for sharing. Also, there is a pytorch module that contains on DenseNet models pretrained on different medical imaging dataset.  [torchxrayvision link](https://github.com/mlmed/torchxrayvision)\n\n![torchxrayvision](https://raw.githubusercontent.com/mlmed/torchxrayvision/master/docs/torchxrayvision-logo.png)\n\nHope it helps you all.",
      "votes": 7
    },
    {
      "id": 1217620,
      "postDate": "2021-02-25T07:45:46.270Z",
      "content": "<p>If someone had problems with uploading of the checkpoint. Here is a code example</p>\n<pre><code>start_point = torch.load('/data/additional_data/startingpoints/tf_efficientnet_b5_ns_chestx.pth', map_location='cpu')\n\nnew_start_point = OrderedDict()\n\nfor k, v in start_point['model'].items():\n    if k.startswith('classifier'):\n         new_start_point[k] = v\n    else:\n        # Ignore `.module` at the begining \n        new_start_point[k[6:]] = v\n\nmodel = timm.create_model('tf_efficientnet_b5_ns', pretrained=False, num_classes=11)\nmodel.load_state_dict(new_start_point)\n</code></pre>",
      "rawMarkdown": "If someone had problems with uploading of the checkpoint. Here is a code example\n```\nstart_point = torch.load('/data/additional_data/startingpoints/tf_efficientnet_b5_ns_chestx.pth', map_location='cpu')\n\nnew_start_point = OrderedDict()\n\nfor k, v in start_point['model'].items():\n    if k.startswith('classifier'):\n         new_start_point[k] = v\n    else:\n        # Ignore `.module` at the begining \n        new_start_point[k[6:]] = v\n        \nmodel = timm.create_model('tf_efficientnet_b5_ns', pretrained=False, num_classes=11)\nmodel.load_state_dict(new_start_point)\n```",
      "votes": 6
    },
    {
      "id": 1190706,
      "postDate": "2021-02-07T23:29:54.243Z",
      "content": "<p>Thanks for the dataset! By ChestX do you mean CheXpert?</p>",
      "rawMarkdown": "Thanks for the dataset! By ChestX do you mean CheXpert?",
      "votes": 3,
      "replies": [
        {
          "id": 1190772,
          "postDate": "2021-02-08T02:07:26.317Z",
          "content": "<p>I guess it can also mean ChestX-ray8 or ChestX-ray14, the external dataset:<br>\n<a href=\"https://arxiv.org/abs/1705.02315\" target=\"_blank\">https://arxiv.org/abs/1705.02315</a></p>\n<p>Look forward to any clarification. </p>",
          "rawMarkdown": "I guess it can also mean ChestX-ray8 or ChestX-ray14, the external dataset:\nhttps://arxiv.org/abs/1705.02315\n\nLook forward to any clarification. ",
          "votes": 3
        },
        {
          "id": 1190781,
          "postDate": "2021-02-08T02:13:30.593Z",
          "content": "<p>Hello, welcome you are right it is my bad. This is the link to the data <a href=\"https://www.kaggle.com/nih-chest-xrays/data\" target=\"_blank\">https://www.kaggle.com/nih-chest-xrays/data</a></p>",
          "rawMarkdown": "Hello, welcome you are right it is my bad. This is the link to the data https://www.kaggle.com/nih-chest-xrays/data",
          "votes": 4
        },
        {
          "id": 1190791,
          "postDate": "2021-02-08T02:32:15.273Z",
          "content": "<p>Actually I should be the one who should thank u, <a href=\"https://www.kaggle.com/ammarali32\" target=\"_blank\">@ammarali32</a>, for your sharing !</p>",
          "rawMarkdown": "Actually I should be the one who should thank u, @ammarali32, for your sharing !",
          "votes": 2
        },
        {
          "id": 1190941,
          "postDate": "2021-02-08T06:08:50.320Z",
          "content": "<p>Hello,have your weights trained from the externel dataset?</p>",
          "rawMarkdown": "Hello,have your weights trained from the externel dataset?",
          "votes": 1
        },
        {
          "id": 1190946,
          "postDate": "2021-02-08T06:26:08.037Z",
          "content": "<p>Hi, Yes the weights published on the dataset are only trained on this dataset <a href=\"https://www.kaggle.com/nih-chest-xrays/data\" target=\"_blank\">https://www.kaggle.com/nih-chest-xrays/data</a>.</p>",
          "rawMarkdown": "Hi, Yes the weights published on the dataset are only trained on this dataset https://www.kaggle.com/nih-chest-xrays/data.",
          "votes": 1
        },
        {
          "id": 1224315,
          "postDate": "2021-03-02T16:08:57.603Z",
          "content": "<p>have you drop the duplication image between chest-x dataset and ranczer compete when you train startpoint model with chestx dataset <a href=\"https://www.kaggle.com/ammarali32\" target=\"_blank\">@ammarali32</a> </p>",
          "rawMarkdown": "have you drop the duplication image between chest-x dataset and ranczer compete when you train startpoint model with chestx dataset @ammarali32 "
        }
      ]
    },
    {
      "id": 1216922,
      "postDate": "2021-02-24T16:03:16.407Z",
      "content": "<p>What image resolution do you use ?</p>",
      "rawMarkdown": "What image resolution do you use ?",
      "votes": 1,
      "replies": [
        {
          "id": 1217055,
          "postDate": "2021-02-24T18:18:02.337Z",
          "content": "<p>Hi, 640x640 used for training all models</p>",
          "rawMarkdown": "Hi, 640x640 used for training all models",
          "votes": 1
        }
      ]
    },
    {
      "id": 1190082,
      "postDate": "2021-02-07T13:15:56.077Z",
      "content": "<p>Hi,did you train that in just one notebook?</p>",
      "rawMarkdown": "Hi,did you train that in just one notebook?",
      "votes": 1,
      "replies": [
        {
          "id": 1190090,
          "postDate": "2021-02-07T13:29:09.037Z",
          "content": "<p>Sorry, I didn't get the question. If you meant the starting point then yes.</p>",
          "rawMarkdown": "Sorry, I didn't get the question. If you meant the starting point then yes.",
          "votes": 2
        },
        {
          "id": 1190095,
          "postDate": "2021-02-07T13:35:21.383Z",
          "content": "<p>Aha,I thought it is just a pretrained model,like imagenet, is it right ?</p>",
          "rawMarkdown": "Aha,I thought it is just a pretrained model,like imagenet, is it right ?",
          "votes": 1
        },
        {
          "id": 1190098,
          "postDate": "2021-02-07T13:38:04.343Z",
          "content": "<p>Well, yes kinda</p>",
          "rawMarkdown": "Well, yes kinda",
          "votes": 2
        },
        {
          "id": 1190126,
          "postDate": "2021-02-07T14:02:29.557Z",
          "content": "<p>Thank you！</p>",
          "rawMarkdown": "Thank you！",
          "votes": 1
        },
        {
          "id": 1221888,
          "postDate": "2021-03-01T11:29:07.613Z",
          "content": "<p>Hi, did you pretrain your model fold by fold? I mean I can see the startpoint from ammara, but I don't know whether it's trained on a single fold or five-folds, If I use this starting point to train my model in 5 folds. I guess every fold might train the data in other folds(test folds)?</p>",
          "rawMarkdown": "Hi, did you pretrain your model fold by fold? I mean I can see the startpoint from ammara, but I don't know whether it's trained on a single fold or five-folds, If I use this starting point to train my model in 5 folds. I guess every fold might train the data in other folds(test folds)?"
        }
      ]
    },
    {
      "id": 1215871,
      "postDate": "2021-02-24T02:32:22.240Z",
      "content": "<p>Thanks for sharing. How can I load the weights? As you said, I defined the classifier with nn.Linear(n_features, 14). But, it failed to load. </p>",
      "rawMarkdown": "Thanks for sharing. How can I load the weights? As you said, I defined the classifier with nn.Linear(n_features, 14). But, it failed to load. ",
      "votes": 2,
      "replies": [
        {
          "id": 1217058,
          "postDate": "2021-02-24T18:18:55.153Z",
          "content": "<p>Hi please see the inference of my ResNet200D model it is exactly the same ))</p>",
          "rawMarkdown": "Hi please see the inference of my ResNet200D model it is exactly the same ))",
          "votes": 1
        },
        {
          "id": 1217126,
          "postDate": "2021-02-24T19:17:28.253Z",
          "rawMarkdown": "",
          "isDeleted": true
        }
      ]
    },
    {
      "id": 1204270,
      "postDate": "2021-02-16T02:04:13.070Z",
      "content": "<p>Hello thanks for sharing.<br>\nHow did you get these starting point ?  Have you trained them on the 14 labels of the chest x ray, and use the checkpoint as a starting point, or did you use something else ?</p>",
      "rawMarkdown": "Hello thanks for sharing.\nHow did you get these starting point ?  Have you trained them on the 14 labels of the chest x ray, and use the checkpoint as a starting point, or did you use something else ?",
      "votes": 2,
      "replies": [
        {
          "id": 1204413,
          "postDate": "2021-02-16T05:57:48.950Z",
          "content": "<p>Hi, No labeling was used. My best model was a teacher model that transfers the ability for extracting features to the student using MSE loss between the features.</p>",
          "rawMarkdown": "Hi, No labeling was used. My best model was a teacher model that transfers the ability for extracting features to the student using MSE loss between the features.",
          "votes": 2
        },
        {
          "id": 1204547,
          "postDate": "2021-02-16T07:52:12.163Z",
          "content": "<p>Very interesting <a href=\"https://www.kaggle.com/ammarali32\" target=\"_blank\">@ammarali32</a>  , can u please give an outline ,the steps for this process .</p>",
          "rawMarkdown": "Very interesting @ammarali32  , can u please give an outline ,the steps for this process .",
          "votes": 2
        },
        {
          "id": 1205700,
          "postDate": "2021-02-16T22:21:58.920Z",
          "content": "<p><a href=\"https://www.kaggle.com/ammarali32\" target=\"_blank\">@ammarali32</a> Thanks for your answer, but how did you create the teacher model ?</p>",
          "rawMarkdown": "@ammarali32 Thanks for your answer, but how did you create the teacher model ?",
          "votes": 1
        },
        {
          "id": 1205957,
          "postDate": "2021-02-17T04:17:53.193Z",
          "content": "<p>Well, For ResNet200D I used this model <a href=\"https://www.kaggle.com/ammarali32/resnet200d-inference-single-model-lb-96-5\" target=\"_blank\">https://www.kaggle.com/ammarali32/resnet200d-inference-single-model-lb-96-5</a> which trained using this approach <a href=\"https://www.kaggle.com/c/ranzcr-clip-catheter-line-classification/discussion/215910\" target=\"_blank\">https://www.kaggle.com/c/ranzcr-clip-catheter-line-classification/discussion/215910</a><br>\nFor other models also the same but they are not public ))</p>",
          "rawMarkdown": "Well, For ResNet200D I used this model https://www.kaggle.com/ammarali32/resnet200d-inference-single-model-lb-96-5 which trained using this approach https://www.kaggle.com/c/ranzcr-clip-catheter-line-classification/discussion/215910\nFor other models also the same but they are not public ))"
        },
        {
          "id": 1205961,
          "postDate": "2021-02-17T04:21:49.703Z",
          "content": "<p><a href=\"https://www.kaggle.com/kudzayiking\" target=\"_blank\">@kudzayiking</a>  Well, I guess it is clear if you read my discussions. My notebook has a bad code style if I had time I will go back to this competition and publish these notebooks after reorganizing. But for now, I have a master thesis. That should be written ))</p>",
          "rawMarkdown": "@kudzayiking  Well, I guess it is clear if you read my discussions. My notebook has a bad code style if I had time I will go back to this competition and publish these notebooks after reorganizing. But for now, I have a master thesis. That should be written ))",
          "votes": 1
        },
        {
          "id": 1206003,
          "postDate": "2021-02-17T05:29:38.620Z",
          "content": "<p><a href=\"https://www.kaggle.com/ammarali32\" target=\"_blank\">@ammarali32</a>  thanks for the links, I'll check them out, good luck and all the best in your master thesis!</p>",
          "rawMarkdown": "@ammarali32  thanks for the links, I'll check them out, good luck and all the best in your master thesis!"
        },
        {
          "id": 1211893,
          "postDate": "2021-02-20T16:31:08.110Z",
          "content": "<p><a href=\"https://www.kaggle.com/ammarali32\" target=\"_blank\">@ammarali32</a> can you introduce what \"no labeling\" means in detail ? how do you train the ChestX dataset to get your pretrained weight? Thanks a lot !!</p>",
          "rawMarkdown": "@ammarali32 can you introduce what \"no labeling\" means in detail ? how do you train the ChestX dataset to get your pretrained weight? Thanks a lot !!",
          "votes": 1
        }
      ]
    },
    {
      "id": 1197436,
      "postDate": "2021-02-12T06:50:18.517Z",
      "content": "<p>I tried pretraining on the <a href=\"https://www.kaggle.com/nih-chest-xrays/data\" target=\"_blank\">https://www.kaggle.com/nih-chest-xrays/data</a> dataset as well. Curious how you went about implementing it. I directly had the model train on the original targets from the dataset and then tried using that starting point to train for the ranzcr dataset. Performance did not really seem to improve though. </p>",
      "rawMarkdown": "I tried pretraining on the https://www.kaggle.com/nih-chest-xrays/data dataset as well. Curious how you went about implementing it. I directly had the model train on the original targets from the dataset and then tried using that starting point to train for the ranzcr dataset. Performance did not really seem to improve though. ",
      "votes": 2,
      "replies": [
        {
          "id": 1197494,
          "postDate": "2021-02-12T07:23:38.507Z",
          "content": "<p>Hi, I took my best model and train with no labels. The loss was the MSELoss between the features of the training model and my best model. The improvement on the CV from 0.962 to 0.967. on the LB was not so much for ResNet200D about 0.002 but for others was clear. Single model inception got 0.959 LB.</p>",
          "rawMarkdown": "Hi, I took my best model and train with no labels. The loss was the MSELoss between the features of the training model and my best model. The improvement on the CV from 0.962 to 0.967. on the LB was not so much for ResNet200D about 0.002 but for others was clear. Single model inception got 0.959 LB.",
          "votes": 2
        },
        {
          "id": 1197495,
          "postDate": "2021-02-12T07:25:42.483Z",
          "content": "<p>Ah interesting. Lots of people have been using that idea of something sort of like a mean teacher or contrastive loss recently. WIll have to try that out for myself</p>",
          "rawMarkdown": "Ah interesting. Lots of people have been using that idea of something sort of like a mean teacher or contrastive loss recently. WIll have to try that out for myself",
          "votes": 2
        },
        {
          "id": 1197500,
          "postDate": "2021-02-12T07:28:18.703Z",
          "content": "<p>Thanks )) and good luck with that.</p>",
          "rawMarkdown": "Thanks )) and good luck with that."
        }
      ]
    },
    {
      "id": 1190174,
      "postDate": "2021-02-07T14:39:46.087Z",
      "content": "<p>Thank you for sharing your nice dataset and notebooks! May I ask you a question? To generate your ChestX starting points, did you use the ImageNet weights? Or did you use randomly initialized ones?</p>",
      "rawMarkdown": "Thank you for sharing your nice dataset and notebooks! May I ask you a question? To generate your ChestX starting points, did you use the ImageNet weights? Or did you use randomly initialized ones?",
      "votes": 2,
      "replies": [
        {
          "id": 1190219,
          "postDate": "2021-02-07T15:06:35.523Z",
          "content": "<p>Welcome,)). Yes, I initialized with ImageNet weights.</p>",
          "rawMarkdown": "Welcome,)). Yes, I initialized with ImageNet weights.",
          "votes": 3
        },
        {
          "id": 1190223,
          "postDate": "2021-02-07T15:09:59.897Z",
          "content": "<p>Thank you for your reply!</p>",
          "rawMarkdown": "Thank you for your reply!"
        }
      ]
    },
    {
      "id": 1189990,
      "postDate": "2021-02-07T11:50:24.057Z",
      "content": "<p>Thank you for sharing, although I don't know how to use pytorch. It's a pity that I can't ensemble your 0.967 model. I ensemble your 0.965 model can get 0.968 score, but I identify with you it is good you will not share the trained models. Good luck!!</p>",
      "rawMarkdown": "Thank you for sharing, although I don't know how to use pytorch. It's a pity that I can't ensemble your 0.967 model. I ensemble your 0.965 model can get 0.968 score, but I identify with you it is good you will not share the trained models. Good luck!!",
      "votes": 2,
      "replies": [
        {
          "id": 1189993,
          "postDate": "2021-02-07T11:57:52.200Z",
          "content": "<p>Hi thanks for your feedback. if  had enough time i will generate starting points for tensorflow.</p>",
          "rawMarkdown": "Hi thanks for your feedback. if  had enough time i will generate starting points for tensorflow.",
          "votes": 2
        },
        {
          "id": 1190054,
          "postDate": "2021-02-07T13:00:25.933Z",
          "content": "<p>Hi,How did u blend it ?<br>\nDifferent weights?</p>",
          "rawMarkdown": "Hi,How did u blend it ?\nDifferent weights?"
        },
        {
          "id": 1190135,
          "postDate": "2021-02-07T14:06:25.553Z",
          "content": "<p>Yes, just different weights. My single model does not perform well, but combining with other models can improve performance. </p>",
          "rawMarkdown": "Yes, just different weights. My single model does not perform well, but combining with other models can improve performance. "
        }
      ]
    },
    {
      "id": 1241305,
      "postDate": "2021-03-17T01:51:16.610Z",
      "content": "<p><a href=\"https://www.kaggle.com/ammarali32\" target=\"_blank\">@ammarali32</a> Thank you very much for the weights because we could progress so high without your initial weight . i was extremely useful to make our first confidence for achieving this rank<br>\nAs <a href=\"https://www.kaggle.com/projdev\" target=\"_blank\">@projdev</a> asked we would like to experiment and see how you actually made these weights</p>",
      "rawMarkdown": "@ammarali32 Thank you very much for the weights because we could progress so high without your initial weight . i was extremely useful to make our first confidence for achieving this rank\nAs @projdev asked we would like to experiment and see how you actually made these weights"
    },
    {
      "id": 1241291,
      "postDate": "2021-03-17T01:39:41.673Z",
      "content": "<p><a href=\"https://www.kaggle.com/ammarali32\" target=\"_blank\">@ammarali32</a> Thank you very much for your datasets. It is extremely helpful in my model training and achieving this rank. Is it possible for you to publish a script regarding how you perform pretraining? I want to try it using a customized model</p>",
      "rawMarkdown": "@ammarali32 Thank you very much for your datasets. It is extremely helpful in my model training and achieving this rank. Is it possible for you to publish a script regarding how you perform pretraining? I want to try it using a customized model"
    },
    {
      "id": 1221822,
      "postDate": "2021-03-01T10:24:05.280Z",
      "rawMarkdown": "",
      "isDeleted": true
    }
  ],
  "comments": [
    {
      "id": 1215661,
      "author_name": "Dr. Amritpal Singh",
      "author_url": "",
      "post_date": "2021-02-23T20:54:44.377000",
      "content": "<p>Thanks for sharing. Also, there is a pytorch module that contains on DenseNet models pretrained on different medical imaging dataset.  <a href=\"https://github.com/mlmed/torchxrayvision\" target=\"_blank\">torchxrayvision link</a></p>\n<p><img src=\"https://raw.githubusercontent.com/mlmed/torchxrayvision/master/docs/torchxrayvision-logo.png\" alt=\"torchxrayvision\"></p>\n<p>Hope it helps you all.</p>",
      "votes": 7,
      "replies": []
    },
    {
      "id": 1217620,
      "author_name": "Volodymyr",
      "author_url": "",
      "post_date": "2021-02-25T07:45:46.270000",
      "content": "<p>If someone had problems with uploading of the checkpoint. Here is a code example</p>\n<pre><code>start_point = torch.load('/data/additional_data/startingpoints/tf_efficientnet_b5_ns_chestx.pth', map_location='cpu')\n\nnew_start_point = OrderedDict()\n\nfor k, v in start_point['model'].items():\n    if k.startswith('classifier'):\n         new_start_point[k] = v\n    else:\n        # Ignore `.module` at the begining \n        new_start_point[k[6:]] = v\n\nmodel = timm.create_model('tf_efficientnet_b5_ns', pretrained=False, num_classes=11)\nmodel.load_state_dict(new_start_point)\n</code></pre>",
      "votes": 6,
      "replies": []
    },
    {
      "id": 1190706,
      "author_name": "Eduardo Rocha de Andrade",
      "author_url": "",
      "post_date": "2021-02-07T23:29:54.243000",
      "content": "<p>Thanks for the dataset! By ChestX do you mean CheXpert?</p>",
      "votes": 3,
      "replies": [
        {
          "id": 1190772,
          "author_name": "FP",
          "author_url": "",
          "post_date": "2021-02-08T02:07:26.317000",
          "content": "<p>I guess it can also mean ChestX-ray8 or ChestX-ray14, the external dataset:<br>\n<a href=\"https://arxiv.org/abs/1705.02315\" target=\"_blank\">https://arxiv.org/abs/1705.02315</a></p>\n<p>Look forward to any clarification. </p>",
          "votes": 3,
          "replies": []
        },
        {
          "id": 1190781,
          "author_name": "ammarali32",
          "author_url": "",
          "post_date": "2021-02-08T02:13:30.593000",
          "content": "<p>Hello, welcome you are right it is my bad. This is the link to the data <a href=\"https://www.kaggle.com/nih-chest-xrays/data\" target=\"_blank\">https://www.kaggle.com/nih-chest-xrays/data</a></p>",
          "votes": 4,
          "replies": []
        },
        {
          "id": 1190791,
          "author_name": "FP",
          "author_url": "",
          "post_date": "2021-02-08T02:32:15.273000",
          "content": "<p>Actually I should be the one who should thank u, <a href=\"https://www.kaggle.com/ammarali32\" target=\"_blank\">@ammarali32</a>, for your sharing !</p>",
          "votes": 2,
          "replies": []
        },
        {
          "id": 1190941,
          "author_name": "Zekun",
          "author_url": "",
          "post_date": "2021-02-08T06:08:50.320000",
          "content": "<p>Hello,have your weights trained from the externel dataset?</p>",
          "votes": 1,
          "replies": []
        },
        {
          "id": 1190946,
          "author_name": "ammarali32",
          "author_url": "",
          "post_date": "2021-02-08T06:26:08.037000",
          "content": "<p>Hi, Yes the weights published on the dataset are only trained on this dataset <a href=\"https://www.kaggle.com/nih-chest-xrays/data\" target=\"_blank\">https://www.kaggle.com/nih-chest-xrays/data</a>.</p>",
          "votes": 1,
          "replies": []
        },
        {
          "id": 1224315,
          "author_name": "cswwp",
          "author_url": "",
          "post_date": "2021-03-02T16:08:57.603000",
          "content": "<p>have you drop the duplication image between chest-x dataset and ranczer compete when you train startpoint model with chestx dataset <a href=\"https://www.kaggle.com/ammarali32\" target=\"_blank\">@ammarali32</a> </p>",
          "votes": 0,
          "replies": []
        }
      ]
    },
    {
      "id": 1216922,
      "author_name": "Volodymyr",
      "author_url": "",
      "post_date": "2021-02-24T16:03:16.407000",
      "content": "<p>What image resolution do you use ?</p>",
      "votes": 1,
      "replies": [
        {
          "id": 1217055,
          "author_name": "ammarali32",
          "author_url": "",
          "post_date": "2021-02-24T18:18:02.337000",
          "content": "<p>Hi, 640x640 used for training all models</p>",
          "votes": 1,
          "replies": []
        }
      ]
    },
    {
      "id": 1190082,
      "author_name": "Zekun",
      "author_url": "",
      "post_date": "2021-02-07T13:15:56.077000",
      "content": "<p>Hi,did you train that in just one notebook?</p>",
      "votes": 1,
      "replies": [
        {
          "id": 1190090,
          "author_name": "ammarali32",
          "author_url": "",
          "post_date": "2021-02-07T13:29:09.037000",
          "content": "<p>Sorry, I didn't get the question. If you meant the starting point then yes.</p>",
          "votes": 2,
          "replies": []
        },
        {
          "id": 1190095,
          "author_name": "Zekun",
          "author_url": "",
          "post_date": "2021-02-07T13:35:21.383000",
          "content": "<p>Aha,I thought it is just a pretrained model,like imagenet, is it right ?</p>",
          "votes": 1,
          "replies": []
        },
        {
          "id": 1190098,
          "author_name": "ammarali32",
          "author_url": "",
          "post_date": "2021-02-07T13:38:04.343000",
          "content": "<p>Well, yes kinda</p>",
          "votes": 2,
          "replies": []
        },
        {
          "id": 1190126,
          "author_name": "Zekun",
          "author_url": "",
          "post_date": "2021-02-07T14:02:29.557000",
          "content": "<p>Thank you！</p>",
          "votes": 1,
          "replies": []
        },
        {
          "id": 1221888,
          "author_name": "Looking for Luck",
          "author_url": "",
          "post_date": "2021-03-01T11:29:07.613000",
          "content": "<p>Hi, did you pretrain your model fold by fold? I mean I can see the startpoint from ammara, but I don't know whether it's trained on a single fold or five-folds, If I use this starting point to train my model in 5 folds. I guess every fold might train the data in other folds(test folds)?</p>",
          "votes": 0,
          "replies": []
        }
      ]
    },
    {
      "id": 1215871,
      "author_name": "LeoF",
      "author_url": "",
      "post_date": "2021-02-24T02:32:22.240000",
      "content": "<p>Thanks for sharing. How can I load the weights? As you said, I defined the classifier with nn.Linear(n_features, 14). But, it failed to load. </p>",
      "votes": 2,
      "replies": [
        {
          "id": 1217058,
          "author_name": "ammarali32",
          "author_url": "",
          "post_date": "2021-02-24T18:18:55.153000",
          "content": "<p>Hi please see the inference of my ResNet200D model it is exactly the same ))</p>",
          "votes": 1,
          "replies": []
        },
        {
          "id": 1217126,
          "author_name": "",
          "author_url": "",
          "post_date": "2021-02-24T19:17:28.253000",
          "content": "",
          "votes": 0,
          "replies": []
        }
      ]
    },
    {
      "id": 1204270,
      "author_name": "Shiro",
      "author_url": "",
      "post_date": "2021-02-16T02:04:13.070000",
      "content": "<p>Hello thanks for sharing.<br>\nHow did you get these starting point ?  Have you trained them on the 14 labels of the chest x ray, and use the checkpoint as a starting point, or did you use something else ?</p>",
      "votes": 2,
      "replies": [
        {
          "id": 1204413,
          "author_name": "ammarali32",
          "author_url": "",
          "post_date": "2021-02-16T05:57:48.950000",
          "content": "<p>Hi, No labeling was used. My best model was a teacher model that transfers the ability for extracting features to the student using MSE loss between the features.</p>",
          "votes": 2,
          "replies": []
        },
        {
          "id": 1204547,
          "author_name": "Kudzayi Matinyarare",
          "author_url": "",
          "post_date": "2021-02-16T07:52:12.163000",
          "content": "<p>Very interesting <a href=\"https://www.kaggle.com/ammarali32\" target=\"_blank\">@ammarali32</a>  , can u please give an outline ,the steps for this process .</p>",
          "votes": 2,
          "replies": []
        },
        {
          "id": 1205700,
          "author_name": "Shiro",
          "author_url": "",
          "post_date": "2021-02-16T22:21:58.920000",
          "content": "<p><a href=\"https://www.kaggle.com/ammarali32\" target=\"_blank\">@ammarali32</a> Thanks for your answer, but how did you create the teacher model ?</p>",
          "votes": 1,
          "replies": []
        },
        {
          "id": 1205957,
          "author_name": "ammarali32",
          "author_url": "",
          "post_date": "2021-02-17T04:17:53.193000",
          "content": "<p>Well, For ResNet200D I used this model <a href=\"https://www.kaggle.com/ammarali32/resnet200d-inference-single-model-lb-96-5\" target=\"_blank\">https://www.kaggle.com/ammarali32/resnet200d-inference-single-model-lb-96-5</a> which trained using this approach <a href=\"https://www.kaggle.com/c/ranzcr-clip-catheter-line-classification/discussion/215910\" target=\"_blank\">https://www.kaggle.com/c/ranzcr-clip-catheter-line-classification/discussion/215910</a><br>\nFor other models also the same but they are not public ))</p>",
          "votes": 0,
          "replies": []
        },
        {
          "id": 1205961,
          "author_name": "ammarali32",
          "author_url": "",
          "post_date": "2021-02-17T04:21:49.703000",
          "content": "<p><a href=\"https://www.kaggle.com/kudzayiking\" target=\"_blank\">@kudzayiking</a>  Well, I guess it is clear if you read my discussions. My notebook has a bad code style if I had time I will go back to this competition and publish these notebooks after reorganizing. But for now, I have a master thesis. That should be written ))</p>",
          "votes": 1,
          "replies": []
        },
        {
          "id": 1206003,
          "author_name": "Kudzayi Matinyarare",
          "author_url": "",
          "post_date": "2021-02-17T05:29:38.620000",
          "content": "<p><a href=\"https://www.kaggle.com/ammarali32\" target=\"_blank\">@ammarali32</a>  thanks for the links, I'll check them out, good luck and all the best in your master thesis!</p>",
          "votes": 0,
          "replies": []
        },
        {
          "id": 1211893,
          "author_name": "Yineng Xiong",
          "author_url": "",
          "post_date": "2021-02-20T16:31:08.110000",
          "content": "<p><a href=\"https://www.kaggle.com/ammarali32\" target=\"_blank\">@ammarali32</a> can you introduce what \"no labeling\" means in detail ? how do you train the ChestX dataset to get your pretrained weight? Thanks a lot !!</p>",
          "votes": 1,
          "replies": []
        }
      ]
    },
    {
      "id": 1197436,
      "author_name": "ryches",
      "author_url": "",
      "post_date": "2021-02-12T06:50:18.517000",
      "content": "<p>I tried pretraining on the <a href=\"https://www.kaggle.com/nih-chest-xrays/data\" target=\"_blank\">https://www.kaggle.com/nih-chest-xrays/data</a> dataset as well. Curious how you went about implementing it. I directly had the model train on the original targets from the dataset and then tried using that starting point to train for the ranzcr dataset. Performance did not really seem to improve though. </p>",
      "votes": 2,
      "replies": [
        {
          "id": 1197494,
          "author_name": "ammarali32",
          "author_url": "",
          "post_date": "2021-02-12T07:23:38.507000",
          "content": "<p>Hi, I took my best model and train with no labels. The loss was the MSELoss between the features of the training model and my best model. The improvement on the CV from 0.962 to 0.967. on the LB was not so much for ResNet200D about 0.002 but for others was clear. Single model inception got 0.959 LB.</p>",
          "votes": 2,
          "replies": []
        },
        {
          "id": 1197495,
          "author_name": "ryches",
          "author_url": "",
          "post_date": "2021-02-12T07:25:42.483000",
          "content": "<p>Ah interesting. Lots of people have been using that idea of something sort of like a mean teacher or contrastive loss recently. WIll have to try that out for myself</p>",
          "votes": 2,
          "replies": []
        },
        {
          "id": 1197500,
          "author_name": "ammarali32",
          "author_url": "",
          "post_date": "2021-02-12T07:28:18.703000",
          "content": "<p>Thanks )) and good luck with that.</p>",
          "votes": 0,
          "replies": []
        }
      ]
    },
    {
      "id": 1190174,
      "author_name": "rikein12",
      "author_url": "",
      "post_date": "2021-02-07T14:39:46.087000",
      "content": "<p>Thank you for sharing your nice dataset and notebooks! May I ask you a question? To generate your ChestX starting points, did you use the ImageNet weights? Or did you use randomly initialized ones?</p>",
      "votes": 2,
      "replies": [
        {
          "id": 1190219,
          "author_name": "ammarali32",
          "author_url": "",
          "post_date": "2021-02-07T15:06:35.523000",
          "content": "<p>Welcome,)). Yes, I initialized with ImageNet weights.</p>",
          "votes": 3,
          "replies": []
        },
        {
          "id": 1190223,
          "author_name": "rikein12",
          "author_url": "",
          "post_date": "2021-02-07T15:09:59.897000",
          "content": "<p>Thank you for your reply!</p>",
          "votes": 0,
          "replies": []
        }
      ]
    },
    {
      "id": 1189990,
      "author_name": "Alien",
      "author_url": "",
      "post_date": "2021-02-07T11:50:24.057000",
      "content": "<p>Thank you for sharing, although I don't know how to use pytorch. It's a pity that I can't ensemble your 0.967 model. I ensemble your 0.965 model can get 0.968 score, but I identify with you it is good you will not share the trained models. Good luck!!</p>",
      "votes": 2,
      "replies": [
        {
          "id": 1189993,
          "author_name": "ammarali32",
          "author_url": "",
          "post_date": "2021-02-07T11:57:52.200000",
          "content": "<p>Hi thanks for your feedback. if  had enough time i will generate starting points for tensorflow.</p>",
          "votes": 2,
          "replies": []
        },
        {
          "id": 1190054,
          "author_name": "HEEEEE",
          "author_url": "",
          "post_date": "2021-02-07T13:00:25.933000",
          "content": "<p>Hi,How did u blend it ?<br>\nDifferent weights?</p>",
          "votes": 0,
          "replies": []
        },
        {
          "id": 1190135,
          "author_name": "Alien",
          "author_url": "",
          "post_date": "2021-02-07T14:06:25.553000",
          "content": "<p>Yes, just different weights. My single model does not perform well, but combining with other models can improve performance. </p>",
          "votes": 0,
          "replies": []
        }
      ]
    },
    {
      "id": 1241305,
      "author_name": "Mohammed Rizin V K",
      "author_url": "",
      "post_date": "2021-03-17T01:51:16.610000",
      "content": "<p><a href=\"https://www.kaggle.com/ammarali32\" target=\"_blank\">@ammarali32</a> Thank you very much for the weights because we could progress so high without your initial weight . i was extremely useful to make our first confidence for achieving this rank<br>\nAs <a href=\"https://www.kaggle.com/projdev\" target=\"_blank\">@projdev</a> asked we would like to experiment and see how you actually made these weights</p>",
      "votes": 0,
      "replies": []
    },
    {
      "id": 1241291,
      "author_name": "FGPC",
      "author_url": "",
      "post_date": "2021-03-17T01:39:41.673000",
      "content": "<p><a href=\"https://www.kaggle.com/ammarali32\" target=\"_blank\">@ammarali32</a> Thank you very much for your datasets. It is extremely helpful in my model training and achieving this rank. Is it possible for you to publish a script regarding how you perform pretraining? I want to try it using a customized model</p>",
      "votes": 0,
      "replies": []
    },
    {
      "id": 1221822,
      "author_name": "",
      "author_url": "",
      "post_date": "2021-03-01T10:24:05.280000",
      "content": "",
      "votes": 0,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "1189876": "Hi everyone, I will update this dataset frequently.\nhttps://www.kaggle.com/ammarali32/startingpointschestx\nHope it will be useful )) good luck.\nUPD_1: DenseNet121 added.\nUPD_2: EfficientNet_B5 added.\nUPD_3: SEResNet152D added",
    "1215661": "Thanks for sharing. Also, there is a pytorch module that contains on DenseNet models pretrained on different medical imaging dataset.  [torchxrayvision link](https://github.com/mlmed/torchxrayvision)\n\n![torchxrayvision](https://raw.githubusercontent.com/mlmed/torchxrayvision/master/docs/torchxrayvision-logo.png)\n\nHope it helps you all.",
    "1217620": "If someone had problems with uploading of the checkpoint. Here is a code example\n```\nstart_point = torch.load('/data/additional_data/startingpoints/tf_efficientnet_b5_ns_chestx.pth', map_location='cpu')\n\nnew_start_point = OrderedDict()\n\nfor k, v in start_point['model'].items():\n    if k.startswith('classifier'):\n         new_start_point[k] = v\n    else:\n        # Ignore `.module` at the begining \n        new_start_point[k[6:]] = v\n        \nmodel = timm.create_model('tf_efficientnet_b5_ns', pretrained=False, num_classes=11)\nmodel.load_state_dict(new_start_point)\n```",
    "1190706": "Thanks for the dataset! By ChestX do you mean CheXpert?",
    "1216922": "What image resolution do you use ?",
    "1190082": "Hi,did you train that in just one notebook?",
    "1215871": "Thanks for sharing. How can I load the weights? As you said, I defined the classifier with nn.Linear(n_features, 14). But, it failed to load. ",
    "1204270": "Hello thanks for sharing.\nHow did you get these starting point ?  Have you trained them on the 14 labels of the chest x ray, and use the checkpoint as a starting point, or did you use something else ?",
    "1197436": "I tried pretraining on the https://www.kaggle.com/nih-chest-xrays/data dataset as well. Curious how you went about implementing it. I directly had the model train on the original targets from the dataset and then tried using that starting point to train for the ranzcr dataset. Performance did not really seem to improve though. ",
    "1190174": "Thank you for sharing your nice dataset and notebooks! May I ask you a question? To generate your ChestX starting points, did you use the ImageNet weights? Or did you use randomly initialized ones?",
    "1189990": "Thank you for sharing, although I don't know how to use pytorch. It's a pity that I can't ensemble your 0.967 model. I ensemble your 0.965 model can get 0.968 score, but I identify with you it is good you will not share the trained models. Good luck!!",
    "1241305": "@ammarali32 Thank you very much for the weights because we could progress so high without your initial weight . i was extremely useful to make our first confidence for achieving this rank\nAs @projdev asked we would like to experiment and see how you actually made these weights",
    "1241291": "@ammarali32 Thank you very much for your datasets. It is extremely helpful in my model training and achieving this rank. Is it possible for you to publish a script regarding how you perform pretraining? I want to try it using a customized model",
    "1221822": ""
  }
}