{
  "id": 240233,
  "title": "[placeholder] lb 0.450 (study only) starter kit!",
  "url": "/competitions/siim-covid19-detection/discussion/240233",
  "author_name": "hengck23",
  "post_date": "2021-05-19T00:48:48.551000",
  "votes": 188,
  "comment_count": 89,
  "views": 0,
  "content": "<h2>Let's make this a gold starter kit!</h2>\n<p>i am preparing starter kit over the next few weeks.<br>\nIf you have recommended papers or methods, please let me know. I will include it in the starter kit.</p>\n<p>google drive link for code, model, train, log, etc:<br>\n<a href=\"https://drive.google.com/drive/folders/1oXfTayH6eRG36DAKmvwVyFE5cmPR6K6W?usp=sharing\" target=\"_blank\">https://drive.google.com/drive/folders/1oXfTayH6eRG36DAKmvwVyFE5cmPR6K6W?usp=sharing</a></p>\n<hr>\n<p>version.1 2020-14-jun:  completed and ready for download!</p>\n<ul>\n<li>image classification only</li>\n<li>compare effects of \"segmentation as aux loss\"</li>\n<li></li>\n<li></li>\n</ul>\n<p>after rescore</p>\n<ul>\n<li>lb-0.444 for efficienet-b3 at image size=512  (5-fold ensmeble, original+flipTTA)</li>\n<li>lb-0.450 for efficienet-b5 at image size=640 (5-fold ensmeble, original+flipTTA)</li>\n</ul>\n<p><img src=\"https://i.ibb.co/LkJGQmW/Selection-217.png\" alt=\"\"></p>\n<hr>\n<p>version.2:  … in preparation …</p>\n<ul>\n<li><p>due date: 21-jun</p></li>\n<li><p> (let me try object detection first and decide if i should focus more on image classification or object detection)</p></li>\n<li><p>customize bifpn from <a href=\"https://github.com/rwightman/efficientdet-pytorch\" target=\"_blank\">https://github.com/rwightman/efficientdet-pytorch</a></p></li>\n<li><p>use efficientNet v2 as backbone:  <a href=\"https://arxiv.org/pdf/2104.00298.pdf\" target=\"_blank\">https://arxiv.org/pdf/2104.00298.pdf</a></p></li>\n<li><p>use adversial-prop-det for training: <a href=\"https://arxiv.org/pdf/2103.13886.pdf\" target=\"_blank\">https://arxiv.org/pdf/2103.13886.pdf</a></p></li>\n</ul>\n<p>reference: <a href=\"https://amaarora.github.io/2021/01/13/efficientdet-pytorch.html\" target=\"_blank\">https://amaarora.github.io/2021/01/13/efficientdet-pytorch.html</a></p>\n<p>version.1 shows that pure classification does not work better than one with joint aux loss.<br>\nthe reason is overfitting</p>\n<p>hence we need to implement something like this …. <br>\n<img src=\"https://i.ibb.co/XtywGb9/Selection-239.png\" alt=\"\"></p>\n<hr>\n<p>later version<br>\nyolo-2021 : <a href=\"https://twitter.com/alexeyab84/status/1398443022619189248?s=20\" target=\"_blank\">https://twitter.com/alexeyab84/status/1398443022619189248?s=20</a></p>\n<p>reference: <a href=\"https://www.kaggle.com/c/vinbigdata-chest-xray-abnormalities-detection/discussion/229615\" target=\"_blank\">https://www.kaggle.com/c/vinbigdata-chest-xray-abnormalities-detection/discussion/229615</a></p>\n<p>it would be interesting to use multi-task yolo by extracting extra labels from radiologist report in external data …</p>\n<p><img src=\"https://i.ibb.co/sgKhJwF/Selection-289.png\" alt=\"\"></p>\n<hr>\n<p>etc (random notes for myself):</p>\n<p>FB MoCo self-supervised contrastive learning?</p>\n<p>transformers ????</p>\n<p>meta-pseudo label adapted for detection, transMIL (transformer MIL, ranking as a \"sorted\" sequence prediction)</p>\n<ul>\n<li>mAP for imbalanced class? <br>\nRobust Deep AUC Maximization: A New Surrogate Loss and Empirical Studies on Medical Image Classification<br>\n<a href=\"https://libauc.org/\" target=\"_blank\">https://libauc.org/</a></li>\n</ul>\n<p>Semi-Supervised AUC Optimization without Guessing Labels of Unlabeled Data</p>\n<ul>\n<li>change yolo objectiveness score to iou score<br>\nsee <a href=\"https://www.kaggle.com/c/global-wheat-detection/discussion/172436\" target=\"_blank\">https://www.kaggle.com/c/global-wheat-detection/discussion/172436</a></li>\n</ul>\n<p>trasnformer yolo <a href=\"https://www.gitmemory.com/issue/ultralytics/yolov5/2329/808852867\" target=\"_blank\">https://www.gitmemory.com/issue/ultralytics/yolov5/2329/808852867</a></p>\n<p>re-ranking trasnformer  for ensemble</p>\n<p>resize artificats, adversial noise </p>\n<p>Constrained Optimization to Train Neural Networks<br>\non Critical and Under-Represented Classes</p>\n<p>transformer hybrid: <br>\n<a href=\"https://www.kaggle.com/bamps53/lb0-87-part-of-3rd-place-solution?scriptVersionId=65265405\" target=\"_blank\">https://www.kaggle.com/bamps53/lb0-87-part-of-3rd-place-solution?scriptVersionId=65265405</a><br>\n<a href=\"https://www.kaggle.com/c/bms-molecular-translation/discussion/243932\" target=\"_blank\">https://www.kaggle.com/c/bms-molecular-translation/discussion/243932</a></p>\n<p><a href=\"https://brixia.github.io/\" target=\"_blank\">https://brixia.github.io/</a></p>\n<p>why to convert weak segmentation ground truth (bbox) into a stronger one? … pool most probable pixels? lung prior? read papers on the weak labels for segmentation.</p>\n<hr>\n<p>keys to winning</p>\n<ul>\n<li><p>a better loss function for mAP image classification and localization (same or different one?) …</p></li>\n<li><p>someone can recommend a ranking-based loss or large margin function for mAP?</p></li>\n<li><p>use of external data (especially  MIDRC-RICORD Data, Kaggle previous data etc)</p></li>\n<li><p>small data size is one of the main problems in this challenge. Your results may be unstable (overfitting, etc) … you need to think of a way to solve this, e.g. deep/extra supervision, augmentation </p></li>\n</ul>",
  "messages": [
    {
      "id": 1314110,
      "postDate": "2021-05-19T00:48:48.553Z",
      "content": "<h2>Let's make this a gold starter kit!</h2>\n<p>i am preparing starter kit over the next few weeks.<br>\nIf you have recommended papers or methods, please let me know. I will include it in the starter kit.</p>\n<p>google drive link for code, model, train, log, etc:<br>\n<a href=\"https://drive.google.com/drive/folders/1oXfTayH6eRG36DAKmvwVyFE5cmPR6K6W?usp=sharing\" target=\"_blank\">https://drive.google.com/drive/folders/1oXfTayH6eRG36DAKmvwVyFE5cmPR6K6W?usp=sharing</a></p>\n<hr>\n<p>version.1 2020-14-jun:  completed and ready for download!</p>\n<ul>\n<li>image classification only</li>\n<li>compare effects of \"segmentation as aux loss\"</li>\n<li></li>\n<li></li>\n</ul>\n<p>after rescore</p>\n<ul>\n<li>lb-0.444 for efficienet-b3 at image size=512  (5-fold ensmeble, original+flipTTA)</li>\n<li>lb-0.450 for efficienet-b5 at image size=640 (5-fold ensmeble, original+flipTTA)</li>\n</ul>\n<p><img src=\"https://i.ibb.co/LkJGQmW/Selection-217.png\" alt=\"\"></p>\n<hr>\n<p>version.2:  … in preparation …</p>\n<ul>\n<li><p>due date: 21-jun</p></li>\n<li><p> (let me try object detection first and decide if i should focus more on image classification or object detection)</p></li>\n<li><p>customize bifpn from <a href=\"https://github.com/rwightman/efficientdet-pytorch\" target=\"_blank\">https://github.com/rwightman/efficientdet-pytorch</a></p></li>\n<li><p>use efficientNet v2 as backbone:  <a href=\"https://arxiv.org/pdf/2104.00298.pdf\" target=\"_blank\">https://arxiv.org/pdf/2104.00298.pdf</a></p></li>\n<li><p>use adversial-prop-det for training: <a href=\"https://arxiv.org/pdf/2103.13886.pdf\" target=\"_blank\">https://arxiv.org/pdf/2103.13886.pdf</a></p></li>\n</ul>\n<p>reference: <a href=\"https://amaarora.github.io/2021/01/13/efficientdet-pytorch.html\" target=\"_blank\">https://amaarora.github.io/2021/01/13/efficientdet-pytorch.html</a></p>\n<p>version.1 shows that pure classification does not work better than one with joint aux loss.<br>\nthe reason is overfitting</p>\n<p>hence we need to implement something like this …. <br>\n<img src=\"https://i.ibb.co/XtywGb9/Selection-239.png\" alt=\"\"></p>\n<hr>\n<p>later version<br>\nyolo-2021 : <a href=\"https://twitter.com/alexeyab84/status/1398443022619189248?s=20\" target=\"_blank\">https://twitter.com/alexeyab84/status/1398443022619189248?s=20</a></p>\n<p>reference: <a href=\"https://www.kaggle.com/c/vinbigdata-chest-xray-abnormalities-detection/discussion/229615\" target=\"_blank\">https://www.kaggle.com/c/vinbigdata-chest-xray-abnormalities-detection/discussion/229615</a></p>\n<p>it would be interesting to use multi-task yolo by extracting extra labels from radiologist report in external data …</p>\n<p><img src=\"https://i.ibb.co/sgKhJwF/Selection-289.png\" alt=\"\"></p>\n<hr>\n<p>etc (random notes for myself):</p>\n<p>FB MoCo self-supervised contrastive learning?</p>\n<p>transformers ????</p>\n<p>meta-pseudo label adapted for detection, transMIL (transformer MIL, ranking as a \"sorted\" sequence prediction)</p>\n<ul>\n<li>mAP for imbalanced class? <br>\nRobust Deep AUC Maximization: A New Surrogate Loss and Empirical Studies on Medical Image Classification<br>\n<a href=\"https://libauc.org/\" target=\"_blank\">https://libauc.org/</a></li>\n</ul>\n<p>Semi-Supervised AUC Optimization without Guessing Labels of Unlabeled Data</p>\n<ul>\n<li>change yolo objectiveness score to iou score<br>\nsee <a href=\"https://www.kaggle.com/c/global-wheat-detection/discussion/172436\" target=\"_blank\">https://www.kaggle.com/c/global-wheat-detection/discussion/172436</a></li>\n</ul>\n<p>trasnformer yolo <a href=\"https://www.gitmemory.com/issue/ultralytics/yolov5/2329/808852867\" target=\"_blank\">https://www.gitmemory.com/issue/ultralytics/yolov5/2329/808852867</a></p>\n<p>re-ranking trasnformer  for ensemble</p>\n<p>resize artificats, adversial noise </p>\n<p>Constrained Optimization to Train Neural Networks<br>\non Critical and Under-Represented Classes</p>\n<p>transformer hybrid: <br>\n<a href=\"https://www.kaggle.com/bamps53/lb0-87-part-of-3rd-place-solution?scriptVersionId=65265405\" target=\"_blank\">https://www.kaggle.com/bamps53/lb0-87-part-of-3rd-place-solution?scriptVersionId=65265405</a><br>\n<a href=\"https://www.kaggle.com/c/bms-molecular-translation/discussion/243932\" target=\"_blank\">https://www.kaggle.com/c/bms-molecular-translation/discussion/243932</a></p>\n<p><a href=\"https://brixia.github.io/\" target=\"_blank\">https://brixia.github.io/</a></p>\n<p>why to convert weak segmentation ground truth (bbox) into a stronger one? … pool most probable pixels? lung prior? read papers on the weak labels for segmentation.</p>\n<hr>\n<p>keys to winning</p>\n<ul>\n<li><p>a better loss function for mAP image classification and localization (same or different one?) …</p></li>\n<li><p>someone can recommend a ranking-based loss or large margin function for mAP?</p></li>\n<li><p>use of external data (especially  MIDRC-RICORD Data, Kaggle previous data etc)</p></li>\n<li><p>small data size is one of the main problems in this challenge. Your results may be unstable (overfitting, etc) … you need to think of a way to solve this, e.g. deep/extra supervision, augmentation </p></li>\n</ul>",
      "rawMarkdown": "Let's make this a gold starter kit!\n---\n\ni am preparing starter kit over the next few weeks.\nIf you have recommended papers or methods, please let me know. I will include it in the starter kit.\n \ngoogle drive link for code, model, train, log, etc:\nhttps://drive.google.com/drive/folders/1oXfTayH6eRG36DAKmvwVyFE5cmPR6K6W?usp=sharing\n\n---\n\nversion.1 2020-14-jun:  completed and ready for download!\n- image classification only\n- compare effects of \"segmentation as aux loss\"\n- ~~ lb-0.389 for efficienet-b3 at image size=512  (5-fold ensmeble, original+flipTTA)~~\n- ~~lb-0.396 for efficienet-b5 at image size=640 (5-fold ensmeble, original+flipTTA)~~\n\nafter rescore\n- lb-0.444 for efficienet-b3 at image size=512  (5-fold ensmeble, original+flipTTA)\n- lb-0.450 for efficienet-b5 at image size=640 (5-fold ensmeble, original+flipTTA)\n \n![](https://i.ibb.co/LkJGQmW/Selection-217.png)\n\n---\n\nversion.2:  ... in preparation ...\n- due date: 21-jun\n- ~~\"Be Your Own Teacher: Improve the Performance of Convolutional Neural Networks via Self Distillation\" - iccv 2019~~ (let me try object detection first and decide if i should focus more on image classification or object detection)\n\n\n- customize bifpn from https://github.com/rwightman/efficientdet-pytorch\n- use efficientNet v2 as backbone:  https://arxiv.org/pdf/2104.00298.pdf\n- use adversial-prop-det for training: https://arxiv.org/pdf/2103.13886.pdf\n\nreference: https://amaarora.github.io/2021/01/13/efficientdet-pytorch.html\n\n\nversion.1 shows that pure classification does not work better than one with joint aux loss.\nthe reason is overfitting\n\nhence we need to implement something like this .... \n![](https://i.ibb.co/XtywGb9/Selection-239.png)\n\n---\n\nlater version\nyolo-2021 : https://twitter.com/alexeyab84/status/1398443022619189248?s=20\n\nreference: https://www.kaggle.com/c/vinbigdata-chest-xray-abnormalities-detection/discussion/229615\n\nit would be interesting to use multi-task yolo by extracting extra labels from radiologist report in external data ...\n\n![](https://i.ibb.co/sgKhJwF/Selection-289.png)\n\n---\n\netc (random notes for myself):\n\nFB MoCo self-supervised contrastive learning?\n\ntransformers ????\n\nmeta-pseudo label adapted for detection, transMIL (transformer MIL, ranking as a \"sorted\" sequence prediction)\n\n- mAP for imbalanced class? \nRobust Deep AUC Maximization: A New Surrogate Loss and Empirical Studies on Medical Image Classification\nhttps://libauc.org/\n\nSemi-Supervised AUC Optimization without Guessing Labels of Unlabeled Data\n\n- change yolo objectiveness score to iou score\nsee https://www.kaggle.com/c/global-wheat-detection/discussion/172436\n\ntrasnformer yolo https://www.gitmemory.com/issue/ultralytics/yolov5/2329/808852867\n\nre-ranking trasnformer  for ensemble\n\nresize artificats, adversial noise \n\nConstrained Optimization to Train Neural Networks\non Critical and Under-Represented Classes\n\ntransformer hybrid: \nhttps://www.kaggle.com/bamps53/lb0-87-part-of-3rd-place-solution?scriptVersionId=65265405\nhttps://www.kaggle.com/c/bms-molecular-translation/discussion/243932\n\nhttps://brixia.github.io/\n\nwhy to convert weak segmentation ground truth (bbox) into a stronger one? ... pool most probable pixels? lung prior? read papers on the weak labels for segmentation.\n\n\n---\n\nkeys to winning\n\n- a better loss function for mAP image classification and localization (same or different one?) ...\n- someone can recommend a ranking-based loss or large margin function for mAP?\n\n- use of external data (especially  MIDRC-RICORD Data, Kaggle previous data etc)\n- small data size is one of the main problems in this challenge. Your results may be unstable (overfitting, etc) ... you need to think of a way to solve this, e.g. deep/extra supervision, augmentation \n",
      "votes": 188
    },
    {
      "id": 1941002,
      "postDate": "2022-09-15T17:39:42.567Z",
      "content": "<p>I really appreciate your work and thanks for sharing information</p>",
      "rawMarkdown": "I really appreciate your work and thanks for sharing information",
      "votes": 5
    },
    {
      "id": 1363385,
      "postDate": "2021-06-24T06:11:58.033Z",
      "content": "<p>after numerous experiments:</p>\n<ul>\n<li><p>confirmed that aux loss using the mask can improve results significantly. <br>\nI can get local CV up to 0.39+ for single fold using different network (e.g. transformer), different pooling (attention-based, global average), different loss (lovasz, sigmoid, softamx, more weighing in aux loss, hard mining top +ve/-ve pixels etc)</p></li>\n<li><p>freezing at fine tuning</p></li>\n<li><p>increasing difficulty at training and fine-tuning</p></li>\n<li><p>but it is sometimes unstable (i.e. different methods improve results for different folds/subsets. I can't find a method that improves for all cases)</p></li>\n<li><p>this is because the mask is \"approximate\". we need a way to better refine the labeling of the pixel to mark them as indicating lung opacity/non-opacity or other.</p></li>\n<li><p>you can think of pixels inside the box as \"likely to contain lung opacity\", but \"not all\" pixels are like that (e.g. box contains non-lung region). There is a similar argument for pixels that is outside the box. you need a pooling loss.</p></li>\n<li><p>the number of train images is too small. Strong network overfits easily</p></li>\n</ul>",
      "rawMarkdown": "after numerous experiments:\n\n- confirmed that aux loss using the mask can improve results significantly. \nI can get local CV up to 0.39+ for single fold using different network (e.g. transformer), different pooling (attention-based, global average), different loss (lovasz, sigmoid, softamx, more weighing in aux loss, hard mining top +ve/-ve pixels etc)\n\n- freezing at fine tuning\n\n- increasing difficulty at training and fine-tuning\n\n- but it is sometimes unstable (i.e. different methods improve results for different folds/subsets. I can't find a method that improves for all cases)\n\n- this is because the mask is \"approximate\". we need a way to better refine the labeling of the pixel to mark them as indicating lung opacity/non-opacity or other.\n\n- you can think of pixels inside the box as \"likely to contain lung opacity\", but \"not all\" pixels are like that (e.g. box contains non-lung region). There is a similar argument for pixels that is outside the box. you need a pooling loss.\n\n- the number of train images is too small. Strong network overfits easily",
      "votes": 9,
      "replies": [
        {
          "id": 1363466,
          "postDate": "2021-06-24T06:48:10.683Z",
          "content": "<p>I stacked top 50 object detections boxes with confidence to generate the \"finer\" mask. Regions with high-confidence opacity will be brighter whereas negative sample will be darker but not completely blank. Almost perfectly filtered distractive objects such as letter and metals. But got same result for appearance classification. Without external data, I doubt whether multitasking model will result in an improvement.</p>",
          "rawMarkdown": "I stacked top 50 object detections boxes with confidence to generate the \"finer\" mask. Regions with high-confidence opacity will be brighter whereas negative sample will be darker but not completely blank. Almost perfectly filtered distractive objects such as letter and metals. But got same result for appearance classification. Without external data, I doubt whether multitasking model will result in an improvement."
        },
        {
          "id": 1365025,
          "postDate": "2021-06-25T11:55:16.643Z",
          "content": "<blockquote>\n  <p>but it is sometimes unstable (i.e. different methods improve results for different folds/subsets. I can't find a method that improves for all cases)</p>\n</blockquote>\n<p>Exactly! In my case too even average of folds is not the ideal improvement on leaderboard, I select my final best model as average of all my CV folds and LB. Even changing the seed changes the scores a lot (made it only for worse in my trails).</p>\n<blockquote>\n  <p>you can think of pixels inside the box as \"likely to contain lung opacity\", but \"not all\" pixels are like that (e.g. box contains non-lung region). There is a similar argument for pixels that is outside the box. you need a pooling loss.</p>\n</blockquote>\n<p>I am using something like pooling loss working out great for me!</p>\n<blockquote>\n  <p>the number of train images is too small. Strong network overfits easily</p>\n</blockquote>\n<p>I wonder if the extra data pretraining might solve that for us although that might mean even stronger augmentations or higher drop rates to make it not overfit.</p>",
          "rawMarkdown": "> but it is sometimes unstable (i.e. different methods improve results for different folds/subsets. I can't find a method that improves for all cases)\n\nExactly! In my case too even average of folds is not the ideal improvement on leaderboard, I select my final best model as average of all my CV folds and LB. Even changing the seed changes the scores a lot (made it only for worse in my trails).\n\n> you can think of pixels inside the box as \"likely to contain lung opacity\", but \"not all\" pixels are like that (e.g. box contains non-lung region). There is a similar argument for pixels that is outside the box. you need a pooling loss.\n\nI am using something like pooling loss working out great for me!\n\n> the number of train images is too small. Strong network overfits easily\n\nI wonder if the extra data pretraining might solve that for us although that might mean even stronger augmentations or higher drop rates to make it not overfit."
        },
        {
          "id": 1365783,
          "postDate": "2021-06-26T05:56:54.817Z",
          "content": "<p>I trained a MoCo model on CheXpert dataset(license issue, only for experiments), MoCo models was trained well with top 1 accuracy over 90%(k=65536 and 4096). But finetuned on this dataset doesn't improve the performance compare to imagenet pretrained weights. Naive knn on MoCo representations doesn't work as well, as expected.</p>",
          "rawMarkdown": "I trained a MoCo model on CheXpert dataset(license issue, only for experiments), MoCo models was trained well with top 1 accuracy over 90%(k=65536 and 4096). But finetuned on this dataset doesn't improve the performance compare to imagenet pretrained weights. Naive knn on MoCo representations doesn't work as well, as expected."
        }
      ]
    },
    {
      "id": 1462936,
      "postDate": "2021-08-10T03:39:04.480Z",
      "content": "<p>to make this thread complete, i have updated:</p>\n<p>[1]  notebook to show interference code and results<br>\n(My submission couldn't complete in time and hence I missed the submission deadline)<br>\n<a href=\"https://www.kaggle.com/hengck23/final-v-00-private-public-score-0-615-0-628?scriptVersionId=70933214\" target=\"_blank\">https://www.kaggle.com/hengck23/final-v-00-private-public-score-0-615-0-628?scriptVersionId=70933214</a></p>\n<p>this is bare minium model (only one k-fold model for study classification and one k-fold detection model)<br>\nwith decent results</p>\n<p>Private Score   0.615<br>\nPublic Score    0.628</p>\n<p><img src=\"https://i.ibb.co/pb1SB85/Selection-665.png\" alt=\"https://i.ibb.co/pb1SB85/Selection-665.png\"></p>\n<hr>\n<p>[2]  code and trained model for effcienetDet (see folder \"2021-08-11-effdet\")<br>\n<a href=\"https://drive.google.com/drive/folders/16JzkuBpW5cwEexM5awq0wOK6t9gYLeKc\" target=\"_blank\">https://drive.google.com/drive/folders/16JzkuBpW5cwEexM5awq0wOK6t9gYLeKc</a></p>\n<hr>\n<p>[3] more results on effcienetDet<br>\n<img src=\"https://i.ibb.co/vBr88pr/Selection-668.png\" alt=\"https://i.ibb.co/vBr88pr/Selection-668.png\"></p>",
      "rawMarkdown": "to make this thread complete, i have updated:\n\n[1]  notebook to show interference code and results\n(My submission couldn't complete in time and hence I missed the submission deadline)\nhttps://www.kaggle.com/hengck23/final-v-00-private-public-score-0-615-0-628?scriptVersionId=70933214\n\nthis is bare minium model (only one k-fold model for study classification and one k-fold detection model)\nwith decent results\n\nPrivate Score   0.615\nPublic Score    0.628\n\n![https://i.ibb.co/pb1SB85/Selection-665.png](https://i.ibb.co/pb1SB85/Selection-665.png)\n\n---\n\n[2]  code and trained model for effcienetDet (see folder \"2021-08-11-effdet\")\nhttps://drive.google.com/drive/folders/16JzkuBpW5cwEexM5awq0wOK6t9gYLeKc\n\n\n---\n\n\n[3] more results on effcienetDet\n![https://i.ibb.co/vBr88pr/Selection-668.png](https://i.ibb.co/vBr88pr/Selection-668.png)\n\n\n",
      "votes": 6
    },
    {
      "id": 1361974,
      "postDate": "2021-06-23T06:32:57.673Z",
      "content": "<p>voc12 mAP computation, python code: <a href=\"https://github.com/Cartucho/mAP/blob/master/main.py\" target=\"_blank\">https://github.com/Cartucho/mAP/blob/master/main.py</a></p>",
      "rawMarkdown": "voc12 mAP computation, python code: https://github.com/Cartucho/mAP/blob/master/main.py",
      "votes": 3,
      "replies": [
        {
          "id": 1362347,
          "postDate": "2021-06-23T11:46:44.013Z",
          "content": "<p><img src=\"https://insidebigdata.com/wp-content/uploads/2021/03/arXiv_2021_Feb6.png\" alt=\"https://insidebigdata.com/wp-content/uploads/2021/03/arXiv_2021_Feb6.png\"></p>\n<p>Constrained Optimization for Training Deep Neural Networks Under Class Imbalance <br>\n<a href=\"https://arxiv.org/pdf/2102.12894v1.pdf\" target=\"_blank\">https://arxiv.org/pdf/2102.12894v1.pdf</a></p>",
          "rawMarkdown": "![https://insidebigdata.com/wp-content/uploads/2021/03/arXiv_2021_Feb6.png](https://insidebigdata.com/wp-content/uploads/2021/03/arXiv_2021_Feb6.png)\n\nConstrained Optimization for Training Deep Neural Networks Under Class Imbalance \nhttps://arxiv.org/pdf/2102.12894v1.pdf",
          "votes": 1
        }
      ]
    },
    {
      "id": 1359014,
      "postDate": "2021-06-21T02:18:31.080Z",
      "content": "<p>we love neighbors:</p>\n<ul>\n<li>Semi-Supervised Learning of Visual Features by Non-Parametrically<br>\nPredicting View Assignments with Support Samples</li>\n<li>Many-to-One Distribution Learning and K-Nearest Neighbor Smoothing for<br>\nThoracic Disease Identification</li>\n</ul>",
      "rawMarkdown": "we love neighbors:\n- Semi-Supervised Learning of Visual Features by Non-Parametrically\nPredicting View Assignments with Support Samples\n- Many-to-One Distribution Learning and K-Nearest Neighbor Smoothing for\nThoracic Disease Identification",
      "votes": 3
    },
    {
      "id": 1358761,
      "postDate": "2021-06-20T17:53:51.943Z",
      "content": "<p><a href=\"https://www.kaggle.com/c/siim-covid19-detection/discussion/240250\" target=\"_blank\">https://www.kaggle.com/c/siim-covid19-detection/discussion/240250</a></p>\n<p>\"FIGURE 7: Lung zones: proposed methodology for dividing a frontal CXR into 3 zones per lung (total of 6 zones). The upper zone extends from the apices to the superior portion of the hilum. The mid zone spans the space between the superior and inferior hilar margins. The lower zone extends from the inferior hilar margins to the costophrenic sulci.\"</p>\n<p><img src=\"https://images.journals.lww.com/thoracicimaging/ArticleViewerPreview.00005382-202011000-00004.F7.jpeg\" alt=\"\"></p>\n<p>see also:</p>\n<ul>\n<li>Vision Transformer using Low-level Chest X-ray Feature Corpus for COVID-19 Diagnosis and Severity Quantification</li>\n<li>Vision Transformer for COVID-19 CXR Diagnosis using Chest X-ray Feature Corpus</li>\n</ul>\n<p><img src=\"https://i.ibb.co/2dWFsCr/Selection-323.png\" alt=\"https://i.ibb.co/2dWFsCr/Selection-323.png\"></p>\n<ul>\n<li>Radiologic diagnosis of patients with COVID-19<br>\n<img src=\"https://i.ibb.co/LvGJQVV/Selection-324.png\" alt=\"https://i.ibb.co/LvGJQVV/Selection-324.png\"></li>\n</ul>",
      "rawMarkdown": "https://www.kaggle.com/c/siim-covid19-detection/discussion/240250\n\n\"FIGURE 7: Lung zones: proposed methodology for dividing a frontal CXR into 3 zones per lung (total of 6 zones). The upper zone extends from the apices to the superior portion of the hilum. The mid zone spans the space between the superior and inferior hilar margins. The lower zone extends from the inferior hilar margins to the costophrenic sulci.\"\n\n![](https://images.journals.lww.com/thoracicimaging/ArticleViewerPreview.00005382-202011000-00004.F7.jpeg)\n\n\nsee also:\n- Vision Transformer using Low-level Chest X-ray Feature Corpus for COVID-19 Diagnosis and Severity Quantification\n- Vision Transformer for COVID-19 CXR Diagnosis using Chest X-ray Feature Corpus\n\n\n![https://i.ibb.co/2dWFsCr/Selection-323.png](https://i.ibb.co/2dWFsCr/Selection-323.png)\n\n- Radiologic diagnosis of patients with COVID-19\n![https://i.ibb.co/LvGJQVV/Selection-324.png](https://i.ibb.co/LvGJQVV/Selection-324.png)",
      "votes": 3
    },
    {
      "id": 1356561,
      "postDate": "2021-06-19T05:13:30.323Z",
      "content": "<p>Note: bbox aux loss help image classification.</p>\n<p><strong>conversely,</strong> 4-class image label aux loss should help opacity localization/detection.<br>\n(you need an aux-loss yolo or efficientDet)</p>",
      "rawMarkdown": "Note: bbox aux loss help image classification.\n\n**conversely,** 4-class image label aux loss should help opacity localization/detection.\n(you need an aux-loss yolo or efficientDet)",
      "votes": 3,
      "replies": [
        {
          "id": 1356570,
          "postDate": "2021-06-19T05:20:20.380Z",
          "content": "<p>modified meta pesudo label</p>\n<p><img src=\"https://i.ibb.co/6P7dnsn/Selection-317.png\" alt=\"\"></p>",
          "rawMarkdown": "modified meta pesudo label\n\n![](https://i.ibb.co/6P7dnsn/Selection-317.png)"
        }
      ]
    },
    {
      "id": 1360751,
      "postDate": "2021-06-22T10:25:03.903Z",
      "content": "<p>insprations from recent cvpr 2021<br>\n[CVPR 2021] Background Splitting: Finding Rare Categories in a Sea of Background</p>\n<p><img src=\"https://i.ibb.co/SVKfTvG/Selection-342.png\" alt=\"https://i.ibb.co/SVKfTvG/Selection-342.png\"></p>",
      "rawMarkdown": "insprations from recent cvpr 2021\n[CVPR 2021] Background Splitting: Finding Rare Categories in a Sea of Background\n\n![https://i.ibb.co/SVKfTvG/Selection-342.png](https://i.ibb.co/SVKfTvG/Selection-342.png)",
      "votes": 4,
      "replies": [
        {
          "id": 1361097,
          "postDate": "2021-06-22T14:48:17.187Z",
          "content": "<p>Thanks this is interesting, however in this case the background images are pseudo-labeled by an imagenet-pretrained model. Can this apply to our case.. ?</p>",
          "rawMarkdown": "Thanks this is interesting, however in this case the background images are pseudo-labeled by an imagenet-pretrained model. Can this apply to our case.. ?"
        },
        {
          "id": 1361158,
          "postDate": "2021-06-22T16:00:35.597Z",
          "content": "<p><img src=\"https://i.ibb.co/Kx1nZyT/boxes.png\" alt=\"\"><br>\nget your best object detection model trained with default background box 0,0,0,0 -&gt; label \"negative\" samples and make the predicted opacity box as background -&gt; train again. From the image above (covid negative), you can see that vanilla model does makes some \"reasonable\" but wrong predictions on the negative image, but it also looks at the foreign objects such as the \"BIPE\" and spine. [0,0,0,0] fake background box tells the model \"your prediction is very wrong!\", but doesn't tell how &amp; where to improve. Without a proper regularization, model will be easily overfitted to looking at irrelevant objects, like metal, heart, patient pose, etc. Pseudolabelling background with <em>good</em> boxes instead of 0,0,0,0 fake box (should) help model understand the corresponding region is not opacity and makes the loss smoother. </p>",
          "rawMarkdown": "![](https://i.ibb.co/Kx1nZyT/boxes.png)\nget your best object detection model trained with default background box 0,0,0,0 -> label \"negative\" samples and make the predicted opacity box as background -> train again. From the image above (covid negative), you can see that vanilla model does makes some \"reasonable\" but wrong predictions on the negative image, but it also looks at the foreign objects such as the \"BIPE\" and spine. [0,0,0,0] fake background box tells the model \"your prediction is very wrong!\", but doesn't tell how & where to improve. Without a proper regularization, model will be easily overfitted to looking at irrelevant objects, like metal, heart, patient pose, etc. Pseudolabelling background with *good* boxes instead of 0,0,0,0 fake box (should) help model understand the corresponding region is not opacity and makes the loss smoother. ",
          "votes": 1
        },
        {
          "id": 1361710,
          "postDate": "2021-06-23T03:03:29.473Z",
          "content": "<p><img src=\"https://i.ibb.co/LxL1ybP/Selection-343.png\" alt=\"https://i.ibb.co/LxL1ybP/Selection-343.png\"><br>\nBuilding High Performance Chest X-Ray Classification Models | Talk 1 | CVPR 2021 | WIANLP Tutorial</p>\n<hr>\n<p>Topic VI: Data Efficient Deep Learning for Medical Image Analysis | CVPR 2021 | VITA Workshop<br>\n<a href=\"https://www.youtube.com/watch?v=HnBvpwP0Wp4\" target=\"_blank\">https://www.youtube.com/watch?v=HnBvpwP0Wp4</a></p>",
          "rawMarkdown": "![https://i.ibb.co/LxL1ybP/Selection-343.png](https://i.ibb.co/LxL1ybP/Selection-343.png)\nBuilding High Performance Chest X-Ray Classification Models | Talk 1 | CVPR 2021 | WIANLP Tutorial\n\n---\n\nTopic VI: Data Efficient Deep Learning for Medical Image Analysis | CVPR 2021 | VITA Workshop\nhttps://www.youtube.com/watch?v=HnBvpwP0Wp4\n\n",
          "votes": 2
        }
      ]
    },
    {
      "id": 1360311,
      "postDate": "2021-06-22T02:50:33.647Z",
      "content": "<p>success in experiments in transformer opens up a world of new possibilities …<br>\ncode coming up ….</p>",
      "rawMarkdown": "success in experiments in transformer opens up a world of new possibilities ...\ncode coming up ....",
      "votes": 4,
      "replies": [
        {
          "id": 1360324,
          "postDate": "2021-06-22T03:23:57.223Z",
          "content": "<p><img src=\"https://i.ibb.co/2FYmFh6/Selection-335.png\" alt=\"https://i.ibb.co/2FYmFh6/Selection-335.png\"><br>\n<img src=\"https://i.ibb.co/VDnGj2n/Selection-337.png\" alt=\"https://i.ibb.co/VDnGj2n/Selection-337.png\"><br>\n<img src=\"https://i.ibb.co/hfnyBM1/Selection-338.png\" alt=\"https://i.ibb.co/hfnyBM1/Selection-338.png\"><br>\n<img src=\"https://i.ibb.co/6WnyF6X/Selection-339.png\" alt=\"https://i.ibb.co/6WnyF6X/Selection-339.png\"></p>",
          "rawMarkdown": "![https://i.ibb.co/2FYmFh6/Selection-335.png](https://i.ibb.co/2FYmFh6/Selection-335.png)\n![https://i.ibb.co/VDnGj2n/Selection-337.png](https://i.ibb.co/VDnGj2n/Selection-337.png)\n![https://i.ibb.co/hfnyBM1/Selection-338.png](https://i.ibb.co/hfnyBM1/Selection-338.png)\n![https://i.ibb.co/6WnyF6X/Selection-339.png](https://i.ibb.co/6WnyF6X/Selection-339.png)",
          "votes": 4
        },
        {
          "id": 1379416,
          "postDate": "2021-07-07T10:54:16Z",
          "content": "<p>Have you share the code with transformer?</p>",
          "rawMarkdown": "Have you share the code with transformer?"
        }
      ]
    },
    {
      "id": 1349610,
      "postDate": "2021-06-15T00:50:44.503Z",
      "content": "<p>important conclusion from version.1 2020-14-jun: <br>\n(do not take any words for granted. i encourage you to verify the claims below and discuss here)</p>\n<ul>\n<li>baseline performance: no augmentation: CV/LB 0.34/?, add augmentation 0.36/0.38, add aux loss 0.38/0.395<br>\n(this is based on old scoring system, where sample submission scored 0.050)</li>\n</ul>",
      "rawMarkdown": "important conclusion from version.1 2020-14-jun: \n(do not take any words for granted. i encourage you to verify the claims below and discuss here)\n- baseline performance: no augmentation: CV/LB 0.34/?, add augmentation 0.36/0.38, add aux loss 0.38/0.395\n(this is based on old scoring system, where sample submission scored 0.050)\n",
      "votes": 4,
      "replies": [
        {
          "id": 1350971,
          "postDate": "2021-06-16T01:43:30.193Z",
          "content": "<p>Confirmed. Different backbones of EffNet with aux loss consistently resulted in CV mAP 0.38x. Model get overfitted easily without aux loss.</p>",
          "rawMarkdown": "Confirmed. Different backbones of EffNet with aux loss consistently resulted in CV mAP 0.38x. Model get overfitted easily without aux loss."
        },
        {
          "id": 1350981,
          "postDate": "2021-06-16T01:50:15.457Z",
          "content": "<p>you may also want to check that at CV mAP 0.38x. , the validation and training loss gap is not large (much better than the case without aux loss). this indicates aux loss improve generalisation.</p>\n<p>but the loss curves are bumpy and fluctuating. there is still some room for improvement if you can smooth and stabilise the curve</p>",
          "rawMarkdown": "you may also want to check that at CV mAP 0.38x. , the validation and training loss gap is not large (much better than the case without aux loss). this indicates aux loss improve generalisation.\n\nbut the loss curves are bumpy and fluctuating. there is still some room for improvement if you can smooth and stabilise the curve",
          "votes": 1
        },
        {
          "id": 1351581,
          "postDate": "2021-06-16T12:32:59.537Z",
          "content": "<p>I can confirm that augmentation helps a lot.  But regard aux loss,  my resnet101 model(224x224) started to overfit heavily when I add aux loss. The training accuracy is nearly 95% with aux loss and 70% without aux loss, validation accuracy is about 67% percent in both cases. I tried using all images and ignore all images(except negative class) without boxes, still no luck ;(  <br>\nI'll try to use your input pipeline to investigate this further, maybe segmentation head only works better only if your augmentation is strong enough?</p>",
          "rawMarkdown": "I can confirm that augmentation helps a lot.  But regard aux loss,  my resnet101 model(224x224) started to overfit heavily when I add aux loss. The training accuracy is nearly 95% with aux loss and 70% without aux loss, validation accuracy is about 67% percent in both cases. I tried using all images and ignore all images(except negative class) without boxes, still no luck ;(  \nI'll try to use your input pipeline to investigate this further, maybe segmentation head only works better only if your augmentation is strong enough?"
        },
        {
          "id": 1351684,
          "postDate": "2021-06-16T14:17:55.947Z",
          "content": "<p>resnet perform  worse than efficient net in my experiments</p>",
          "rawMarkdown": "resnet perform  worse than efficient net in my experiments",
          "votes": 1
        },
        {
          "id": 1351728,
          "postDate": "2021-06-16T14:51:38.603Z",
          "content": "<p><a href=\"https://www.kaggle.com/artnotintelligence\" target=\"_blank\">@artnotintelligence</a> you probably need to specify high drop_rate and drop_path_rate in the effnet / resnet, especially when lr is low. In Heng's kit, they are both 0.2, but for big backbone I set drop_rate = 0.5 to combat overfitting, but model will still overfit when mAP is close to 0.385. This is the limit of simple aux loss strategy.</p>",
          "rawMarkdown": "@artnotintelligence you probably need to specify high drop_rate and drop_path_rate in the effnet / resnet, especially when lr is low. In Heng's kit, they are both 0.2, but for big backbone I set drop_rate = 0.5 to combat overfitting, but model will still overfit when mAP is close to 0.385. This is the limit of simple aux loss strategy.",
          "votes": 1
        },
        {
          "id": 1351808,
          "postDate": "2021-06-16T16:07:19.397Z",
          "content": "<p>I add dropout rate up to 0.5 along with l2 regularization loss, which doesn't help avoid overfitting. </p>",
          "rawMarkdown": "I add dropout rate up to 0.5 along with l2 regularization loss, which doesn't help avoid overfitting. "
        },
        {
          "id": 1351850,
          "postDate": "2021-06-16T16:40:34.700Z",
          "content": "<p>\"This is the limit of simple aux loss strategy.\"</p>\n<p>you can predict the lung segmentation or pixel values of the related masked region.</p>\n<p><img src=\"https://i.ibb.co/ZTbK99K/Selection-265.png\" alt=\"\"><br>\n<img src=\"https://i.ibb.co/fk6LsBX/Selection-264.png\" alt=\"\"></p>",
          "rawMarkdown": "\"This is the limit of simple aux loss strategy.\"\n\nyou can predict the lung segmentation or pixel values of the related masked region.\n\n![](https://i.ibb.co/ZTbK99K/Selection-265.png)\n![](https://i.ibb.co/fk6LsBX/Selection-264.png)\n",
          "votes": 4
        },
        {
          "id": 1351870,
          "postDate": "2021-06-16T16:50:12.933Z",
          "content": "<p><img src=\"https://i.ibb.co/RNM9cFV/Selection-266.png\" alt=\"\"></p>\n<p>input to the green \"predict the value of cross entropy loss\" model could be array of pixel differences of the predicted and truth of mask region.</p>\n<p>we bypass the step to obtain pseudo label … we just need the \"pseudo label loss\" for backprop</p>",
          "rawMarkdown": "![](https://i.ibb.co/RNM9cFV/Selection-266.png)\n\ninput to the green \"predict the value of cross entropy loss\" model could be array of pixel differences of the predicted and truth of mask region.\n\nwe bypass the step to obtain pseudo label ... we just need the \"pseudo label loss\" for backprop",
          "votes": 2
        },
        {
          "id": 1353291,
          "postDate": "2021-06-17T03:15:37.277Z",
          "content": "<p>I don't quite understand the last part, are you saying that , for example, if softmax(logits) = [0.1, 0.1, 0.2, 0.6], then we use pseudo label = [0, 0, 0, 1]<br>\nas gt label to produce CE loss, then further regularize CE loss with predicted CE loss?</p>",
          "rawMarkdown": "I don't quite understand the last part, are you saying that , for example, if softmax(logits) = [0.1, 0.1, 0.2, 0.6], then we use pseudo label = [0, 0, 0, 1]\nas gt label to produce CE loss, then further regularize CE loss with predicted CE loss?"
        },
        {
          "id": 1353300,
          "postDate": "2021-06-17T03:27:01.110Z",
          "content": "<p>no. you don't predict the pseudo label.<br>\nyou can predict the CE loss value (of pseudo label) directly</p>",
          "rawMarkdown": "no. you don't predict the pseudo label.\nyou can predict the CE loss value (of pseudo label) directly",
          "votes": 1
        },
        {
          "id": 1353316,
          "postDate": "2021-06-17T03:44:04.260Z",
          "content": "<p><a href=\"https://www.kaggle.com/houndcl\" target=\"_blank\">@houndcl</a> i think <a href=\"https://www.kaggle.com/phalanx\" target=\"_blank\">@phalanx</a> Unet aux loss is better than mine. Maybe it can hit 0.395</p>",
          "rawMarkdown": "@houndcl i think @phalanx Unet aux loss is better than mine. Maybe it can hit 0.395",
          "votes": 1
        }
      ]
    },
    {
      "id": 1347120,
      "postDate": "2021-06-13T02:24:02.733Z",
      "content": "<p>archive for old post </p>\n<hr>\n<p>i am preparing starter kit over the next few weeks.<br>\nIf you have recommended papers or methods, please let me know. I will include it in the starter kit.</p>\n<p>What is desired:</p>\n<p>old methods that have proved to work on xray images, etc<br>\nnew methods that may show interesting results (e.g. transformer, weak/semi-supervised learning)<br>\npaper that you want to understand learn, but there is no open source to verify if your understanding is correct<br>\ntraining/inference speedup<br>\ne.g. …<br>\nOnce i select the method, the starter kits will include:</p>\n<p>reference code for training and inference<br>\nintermediate trained model<br>\nlogfile of training for reference and checking implementation, etc<br>\nexperiment results<br>\nsome training/hyperparameters tricks. etc<br>\nNote: i am currently busy with kaggle BMS molecule image-text translation. I will be more active here after BMS is over</p>\n<p>the starter kit post will be something like this: <a href=\"https://www.kaggle.com/c/bms-molecular-translation/discussion/231190\" target=\"_blank\">https://www.kaggle.com/c/bms-molecular-translation/discussion/231190</a></p>",
      "rawMarkdown": "archive for old post \n\n----\ni am preparing starter kit over the next few weeks.\nIf you have recommended papers or methods, please let me know. I will include it in the starter kit.\n\nWhat is desired:\n\nold methods that have proved to work on xray images, etc\nnew methods that may show interesting results (e.g. transformer, weak/semi-supervised learning)\npaper that you want to understand learn, but there is no open source to verify if your understanding is correct\ntraining/inference speedup\ne.g. …\nOnce i select the method, the starter kits will include:\n\nreference code for training and inference\nintermediate trained model\nlogfile of training for reference and checking implementation, etc\nexperiment results\nsome training/hyperparameters tricks. etc\nNote: i am currently busy with kaggle BMS molecule image-text translation. I will be more active here after BMS is over\n\nthe starter kit post will be something like this: https://www.kaggle.com/c/bms-molecular-translation/discussion/231190",
      "votes": 4
    },
    {
      "id": 1367336,
      "postDate": "2021-06-27T15:49:09.230Z",
      "content": "<p><img src=\"https://i.ibb.co/Y7BbmCN/Selection-425.png\" alt=\"https://i.ibb.co/Y7BbmCN/Selection-425.png\"></p>",
      "rawMarkdown": "![https://i.ibb.co/Y7BbmCN/Selection-425.png](https://i.ibb.co/Y7BbmCN/Selection-425.png)",
      "votes": 2,
      "replies": [
        {
          "id": 1367708,
          "postDate": "2021-06-28T03:41:42.397Z",
          "content": "<p><img src=\"https://i.ibb.co/42YxkwH/Selection-450.png\" alt=\"https://i.ibb.co/42YxkwH/Selection-450.png\"><img src=\"https://i.ibb.co/5R3BkWv/Selection-449.png\" alt=\"https://i.ibb.co/5R3BkWv/Selection-449.png\"><img src=\"https://i.ibb.co/KbQsYMV/Selection-448.png\" alt=\"https://i.ibb.co/KbQsYMV/Selection-448.png\"></p>\n<p><img src=\"https://i.ibb.co/55XgDND/Selection-454.png\" alt=\"https://i.ibb.co/55XgDND/Selection-454.png\"></p>",
          "rawMarkdown": "![https://i.ibb.co/42YxkwH/Selection-450.png](https://i.ibb.co/42YxkwH/Selection-450.png)![https://i.ibb.co/5R3BkWv/Selection-449.png](https://i.ibb.co/5R3BkWv/Selection-449.png)![https://i.ibb.co/KbQsYMV/Selection-448.png](https://i.ibb.co/KbQsYMV/Selection-448.png)\n\n![https://i.ibb.co/55XgDND/Selection-454.png](https://i.ibb.co/55XgDND/Selection-454.png)",
          "votes": 1
        },
        {
          "id": 1367725,
          "postDate": "2021-06-28T03:56:53.627Z",
          "content": "<p><img src=\"https://i.ibb.co/xgh6zvn/agree.png\" alt=\"\"> <br>\nThe real world confusion matrix from RICORD dataset. The \"typical appearance\" data seems cleaner in this competition. The accurate prediction of \"atypical\" and \"indeterminate\" appearances remain challenging. Atypical class may be slightly easier to improve, by integrating external dataset such as MIMIC and NIH. There are plenty of images with mass | nodule | effusion | pneumothorax | edema etc labels.</p>",
          "rawMarkdown": "![](https://i.ibb.co/xgh6zvn/agree.png) \nThe real world confusion matrix from RICORD dataset. The \"typical appearance\" data seems cleaner in this competition. The accurate prediction of \"atypical\" and \"indeterminate\" appearances remain challenging. Atypical class may be slightly easier to improve, by integrating external dataset such as MIMIC and NIH. There are plenty of images with mass | nodule | effusion | pneumothorax | edema etc labels."
        }
      ]
    },
    {
      "id": 1380600,
      "postDate": "2021-07-08T07:33:18.697Z",
      "content": "<p>What is rescore?</p>",
      "rawMarkdown": "What is rescore?",
      "votes": 1,
      "replies": [
        {
          "id": 1380875,
          "postDate": "2021-07-08T11:54:31.467Z",
          "content": "<p>At the beginning of the competition there was a bug in the leaderboard and once the bug was fixed all submissions were run again and \"rescored\" so they got a new score without the bug</p>",
          "rawMarkdown": "At the beginning of the competition there was a bug in the leaderboard and once the bug was fixed all submissions were run again and \"rescored\" so they got a new score without the bug"
        }
      ]
    },
    {
      "id": 1374603,
      "postDate": "2021-07-03T12:53:52.260Z",
      "content": "<p>i suddenly has an idea:</p>\n<ul>\n<li>super-resolution as self supervsied loss for unlabelled data</li>\n</ul>",
      "rawMarkdown": "i suddenly has an idea:\n- super-resolution as self supervsied loss for unlabelled data",
      "votes": 1
    },
    {
      "id": 1366470,
      "postDate": "2021-06-26T19:55:51.803Z",
      "content": "<p>In this research, we proposed an ACGAN based model<br>\ncalled CovidGAN that generates synthetic CXR images to<br>\nenlarge the dataset and to improve the performance of CNN<br>\nin COVID-19 detection. The research is implemented on a<br>\ndataset with 403 COVID-CXR images and 721 Normal-CXR<br>\nimages</p>\n<p><a href=\"https://arxiv.org/pdf/2103.05094.pdf\" target=\"_blank\">https://arxiv.org/pdf/2103.05094.pdf</a></p>",
      "rawMarkdown": "In this research, we proposed an ACGAN based model\ncalled CovidGAN that generates synthetic CXR images to\nenlarge the dataset and to improve the performance of CNN\nin COVID-19 detection. The research is implemented on a\ndataset with 403 COVID-CXR images and 721 Normal-CXR\nimages\n\nhttps://arxiv.org/pdf/2103.05094.pdf",
      "votes": 1
    },
    {
      "id": 1366297,
      "postDate": "2021-06-26T16:22:40.367Z",
      "content": "<p><img src=\"https://i.ibb.co/xfvbwKF/Selection-393.png\" alt=\"https://i.ibb.co/xfvbwKF/Selection-393.png\"><br>\n<a href=\"https://www.youtube.com/channel/UCOkkljs06NPPkjNysCdQV4w/videos\" target=\"_blank\">https://www.youtube.com/channel/UCOkkljs06NPPkjNysCdQV4w/videos</a></p>",
      "rawMarkdown": "![https://i.ibb.co/xfvbwKF/Selection-393.png](https://i.ibb.co/xfvbwKF/Selection-393.png)\nhttps://www.youtube.com/channel/UCOkkljs06NPPkjNysCdQV4w/videos",
      "votes": 1
    },
    {
      "id": 1366209,
      "postDate": "2021-06-26T14:54:31.843Z",
      "content": "<p>channel to replace patch as token in trasnformer<br>\nCross-Covariance Image Transformer (XCiT)<br>\n<a href=\"https://www.youtube.com/watch?v=g08NkNWmZTA\" target=\"_blank\">https://www.youtube.com/watch?v=g08NkNWmZTA</a><br>\n<a href=\"https://github.com/facebookresearch/xcit\" target=\"_blank\">https://github.com/facebookresearch/xcit</a></p>",
      "rawMarkdown": "channel to replace patch as token in trasnformer\nCross-Covariance Image Transformer (XCiT)\nhttps://www.youtube.com/watch?v=g08NkNWmZTA\nhttps://github.com/facebookresearch/xcit",
      "votes": 1
    },
    {
      "id": 1364534,
      "postDate": "2021-06-25T04:38:39.137Z",
      "content": "<p><a href=\"https://arxiv.org/pdf/2106.13112.pdf\" target=\"_blank\">https://arxiv.org/pdf/2106.13112.pdf</a><br>\nVolo+yolo?</p>",
      "rawMarkdown": "https://arxiv.org/pdf/2106.13112.pdf\nVolo+yolo?",
      "votes": 1
    },
    {
      "id": 1363356,
      "postDate": "2021-06-24T06:00:00.690Z",
      "content": "<p><img src=\"https://i.ibb.co/ngYDtJM/Selection-352.png\" alt=\"https://i.ibb.co/ngYDtJM/Selection-352.png\"><br>\n<a href=\"https://arxiv.org/pdf/2104.10858.pdf\" target=\"_blank\">https://arxiv.org/pdf/2104.10858.pdf</a><br>\nAll Tokens Matter: Token Labeling for Training Better Vision Transformers</p>",
      "rawMarkdown": "![https://i.ibb.co/ngYDtJM/Selection-352.png](https://i.ibb.co/ngYDtJM/Selection-352.png)\nhttps://arxiv.org/pdf/2104.10858.pdf\nAll Tokens Matter: Token Labeling for Training Better Vision Transformers",
      "votes": 1
    },
    {
      "id": 1356552,
      "postDate": "2021-06-19T05:01:56.983Z",
      "content": "<p><img src=\"https://i.ibb.co/s11Vc7Q/Selection-316.png\" alt=\"\"><br>\n<a href=\"https://www.youtube.com/watch?v=0TwZfRcqhbI&amp;list=PL6liSIqFR4BUr7F4pL6aoucjkV3HYZ48J\" target=\"_blank\">https://www.youtube.com/watch?v=0TwZfRcqhbI&amp;list=PL6liSIqFR4BUr7F4pL6aoucjkV3HYZ48J</a><br>\n<a href=\"https://github.com/facebookresearch/unbiased-teacher\" target=\"_blank\">https://github.com/facebookresearch/unbiased-teacher</a></p>",
      "rawMarkdown": "![](https://i.ibb.co/s11Vc7Q/Selection-316.png)\nhttps://www.youtube.com/watch?v=0TwZfRcqhbI&list=PL6liSIqFR4BUr7F4pL6aoucjkV3HYZ48J\nhttps://github.com/facebookresearch/unbiased-teacher\n",
      "votes": 1
    },
    {
      "id": 1348118,
      "postDate": "2021-06-13T18:52:16.780Z",
      "content": "<p>I tried similiar setup but my mAP at study level was lower with segmentation head. What's your score without segmentation loss?</p>",
      "rawMarkdown": "I tried similiar setup but my mAP at study level was lower with segmentation head. What's your score without segmentation loss?",
      "votes": 1
    },
    {
      "id": 1347883,
      "postDate": "2021-06-13T14:45:53.973Z",
      "content": "<p>Hi <a href=\"https://www.kaggle.com/hengck23\" target=\"_blank\">@hengck23</a>, what was your score without the <strong>aux loss</strong> ?</p>",
      "rawMarkdown": "Hi @hengck23, what was your score without the **aux loss** ?",
      "votes": 1,
      "replies": [
        {
          "id": 1350072,
          "postDate": "2021-06-15T08:45:30.530Z",
          "content": "<p>What is aux loss ? I'm googling it and not finding anything!</p>",
          "rawMarkdown": "What is aux loss ? I'm googling it and not finding anything!"
        },
        {
          "id": 1350176,
          "postDate": "2021-06-15T10:09:45.767Z",
          "content": "<p><a href=\"https://www.kaggle.com/josephamigo\" target=\"_blank\">@josephamigo</a> I believe aux loss is auxiliary loss. It helps to reduce the vanishing gradient problem for earlier layers, stabilizes the training and is used as regularization. It's only used for training and not for inference.</p>\n<p>Reference: <a href=\"https://stats.stackexchange.com/questions/304699/what-is-auxiliary-loss-as-mentioned-in-pspnet-paper\" target=\"_blank\">https://stats.stackexchange.com/questions/304699/what-is-auxiliary-loss-as-mentioned-in-pspnet-paper</a></p>",
          "rawMarkdown": "@josephamigo I believe aux loss is auxiliary loss. It helps to reduce the vanishing gradient problem for earlier layers, stabilizes the training and is used as regularization. It's only used for training and not for inference.\n\nReference: https://stats.stackexchange.com/questions/304699/what-is-auxiliary-loss-as-mentioned-in-pspnet-paper",
          "votes": 5
        },
        {
          "id": 1350199,
          "postDate": "2021-06-15T10:32:51.100Z",
          "content": "<p>Thank you very much!!</p>",
          "rawMarkdown": "Thank you very much!!",
          "votes": 1
        }
      ]
    },
    {
      "id": 1334679,
      "postDate": "2021-06-03T17:27:06.223Z",
      "content": "<p>cool just waiting for your discussion and ideas <a href=\"https://www.kaggle.com/hengck23\" target=\"_blank\">@hengck23</a>  and starting baseline of <a href=\"https://www.kaggle.com/yasufuminakama\" target=\"_blank\">@yasufuminakama</a> and saturday.</p>",
      "rawMarkdown": "cool just waiting for your discussion and ideas @hengck23  and starting baseline of @yasufuminakama and saturday.",
      "votes": 1
    },
    {
      "id": 1319215,
      "postDate": "2021-05-23T03:11:15.323Z",
      "content": "<p>Not really a method, but a good summary. Also, it mentions a way to speed up a training procedure.</p>\n<p><strong>CheXtransfer: Performance and Parameter Efficiency of ImageNet Models for Chest X-Ray Interpretation</strong><br>\n<a href=\"https://arxiv.org/abs/2101.06871\" target=\"_blank\">https://arxiv.org/abs/2101.06871</a></p>",
      "rawMarkdown": "Not really a method, but a good summary. Also, it mentions a way to speed up a training procedure.\n\n**CheXtransfer: Performance and Parameter Efficiency of ImageNet Models for Chest X-Ray Interpretation**\nhttps://arxiv.org/abs/2101.06871",
      "votes": 1
    },
    {
      "id": 1314643,
      "postDate": "2021-05-19T09:42:24.207Z",
      "content": "<p>Welcome! I will learn from you again.</p>",
      "rawMarkdown": "Welcome! I will learn from you again.",
      "votes": 1
    },
    {
      "id": 1359001,
      "postDate": "2021-06-21T02:02:50.340Z",
      "content": "<p>lung mask:<br>\n<a href=\"https://github.com/v7labs/covid-19-xray-dataset\" target=\"_blank\">https://github.com/v7labs/covid-19-xray-dataset</a><br>\n<a href=\"https://github.com/ieee8023/covid-chestxray-dataset\" target=\"_blank\">https://github.com/ieee8023/covid-chestxray-dataset</a></p>\n<p><a href=\"https://github.com/raghavian/lungVAE\" target=\"_blank\">https://github.com/raghavian/lungVAE</a><br>\n<a href=\"https://arxiv.org/pdf/2104.05892.pdf\" target=\"_blank\">https://arxiv.org/pdf/2104.05892.pdf</a></p>\n<p>lung opacity:<br>\n<a href=\"https://arxiv.org/pdf/2002.02497.pdf\" target=\"_blank\">https://arxiv.org/pdf/2002.02497.pdf</a><br>\n<a href=\"https://github.com/mlmed/torchxrayvision\" target=\"_blank\">https://github.com/mlmed/torchxrayvision</a><br>\n<a href=\"https://openaccess.thecvf.com/content_CVPRW_2020/papers/w22/Gabruseva_Deep_Learning_for_Automatic_Pneumonia_Detection_CVPRW_2020_paper.pdf\" target=\"_blank\">https://openaccess.thecvf.com/content_CVPRW_2020/papers/w22/Gabruseva_Deep_Learning_for_Automatic_Pneumonia_Detection_CVPRW_2020_paper.pdf</a></p>",
      "rawMarkdown": "lung mask:\nhttps://github.com/v7labs/covid-19-xray-dataset\nhttps://github.com/ieee8023/covid-chestxray-dataset\n\nhttps://github.com/raghavian/lungVAE\nhttps://arxiv.org/pdf/2104.05892.pdf\n\nlung opacity:\nhttps://arxiv.org/pdf/2002.02497.pdf\nhttps://github.com/mlmed/torchxrayvision\nhttps://openaccess.thecvf.com/content_CVPRW_2020/papers/w22/Gabruseva_Deep_Learning_for_Automatic_Pneumonia_Detection_CVPRW_2020_paper.pdf",
      "votes": 2
    },
    {
      "id": 1358302,
      "postDate": "2021-06-20T10:47:13.290Z",
      "content": "<p><img src=\"https://i.ibb.co/Y2SycDk/Selection-322.png\" alt=\"\"></p>",
      "rawMarkdown": "![](https://i.ibb.co/Y2SycDk/Selection-322.png)",
      "votes": 2,
      "replies": [
        {
          "id": 1358458,
          "postDate": "2021-06-20T13:22:37.657Z",
          "content": "<p>Hello,How can I get this picture?</p>",
          "rawMarkdown": "Hello,How can I get this picture?"
        },
        {
          "id": 1358760,
          "postDate": "2021-06-20T17:52:43.727Z",
          "content": "<p><img src=\"https://pbs.twimg.com/media/EzEYd9CW8AEQlLh?format=jpg&amp;name=large\" alt=\"https://pbs.twimg.com/media/EzEYd9CW8AEQlLh?format=jpg&amp;name=large\"></p>\n<p>Vision Transformer using Low-level Chest X-ray Feature Corpus for COVID-19 Diagnosis and Severity Quantification</p>",
          "rawMarkdown": "![https://pbs.twimg.com/media/EzEYd9CW8AEQlLh?format=jpg&name=large](https://pbs.twimg.com/media/EzEYd9CW8AEQlLh?format=jpg&name=large)\n\nVision Transformer using Low-level Chest X-ray Feature Corpus for COVID-19 Diagnosis and Severity Quantification",
          "votes": 2
        },
        {
          "id": 1358997,
          "postDate": "2021-06-21T01:46:33.963Z",
          "content": "<p>Thanks for your ideas!</p>",
          "rawMarkdown": "Thanks for your ideas!"
        },
        {
          "id": 1359004,
          "postDate": "2021-06-21T02:09:05.740Z",
          "content": "<p>PCAM pooling<br>\n<img src=\"https://github.com/jfhealthcare/Chexpert/raw/master/PCAM.png\" alt=\"\"><br>\n<a href=\"https://github.com/jfhealthcare/Chexpert\" target=\"_blank\">https://github.com/jfhealthcare/Chexpert</a></p>",
          "rawMarkdown": "PCAM pooling\n![](https://github.com/jfhealthcare/Chexpert/raw/master/PCAM.png)\nhttps://github.com/jfhealthcare/Chexpert",
          "votes": 1
        }
      ]
    },
    {
      "id": 1356643,
      "postDate": "2021-06-19T06:11:48.620Z",
      "content": "<p>In run_train.py(also in run_submit.py), there seems a bug in calculating the topk accuracy,<br>\n<code>predict = probability.argsort(-1)[::-1]</code> should be <code>predict = probability.argsort(-1)[:, ::-1]</code>? </p>",
      "rawMarkdown": "In run_train.py(also in run_submit.py), there seems a bug in calculating the topk accuracy,\n`predict = probability.argsort(-1)[::-1]` should be `predict = probability.argsort(-1)[:, ::-1]`? ",
      "votes": 2,
      "replies": [
        {
          "id": 1356693,
          "postDate": "2021-06-19T07:09:16.577Z",
          "content": "<p>good catch.<br>\nthe same occurs in do_valid() function in run_train.py.</p>\n<p>Thanks</p>",
          "rawMarkdown": "good catch.\nthe same occurs in do\\_valid() function in run\\_train.py.\n\nThanks\n",
          "votes": 1
        },
        {
          "id": 1357541,
          "postDate": "2021-06-19T18:44:03.557Z",
          "content": "<p>nice catch, <a href=\"https://www.kaggle.com/artnotintelligence\" target=\"_blank\">Anii</a> thanks!!</p>\n<p>1) BTW do you also get NaN in <code>map</code> score ?</p>\n<p>2) also a minor point in <code>run_train.py</code> (affects only the logging, code runs fine)  </p>\n<p><code>batch_loss = np.array([loss0.item(), loss1.item(), loss2.item()])</code></p>\n<p><code>loss2</code> is always 0.0 from initialisation. I guess if you want to correct it we need to add before: <br>\n<code>loss2 = loss0+loss1</code></p>",
          "rawMarkdown": "nice catch, [Anii](https://www.kaggle.com/artnotintelligence) thanks!!\n\n1) BTW do you also get NaN in `map` score ?\n\n2) also a minor point in `run_train.py` (affects only the logging, code runs fine)  \n\n`batch_loss = np.array([loss0.item(), loss1.item(), loss2.item()])`\n\n`loss2` is always 0.0 from initialisation. I guess if you want to correct it we need to add before: \n`loss2 = loss0+loss1`",
          "votes": 1
        },
        {
          "id": 1358472,
          "postDate": "2021-06-20T13:40:34.503Z",
          "content": "<p>after the topk bug is fixed, you will get something like:</p>\n<pre><code>   experiment = ['effb3-full-512-mask-v8', 'run_train_2.py']\n\n       |---------------- VALID -------------|---- TRAIN/BATCH -------\n epoch | loss    map   (map*0.6)  top1,2    | loss0  loss1          \n----------------------------------------------------------------------\n 0.00  | 1.412  0.257  (0.171)  0.281  0.425  | 0.000  0.000  0.000  | \n 0.16  | 1.103  0.419  (0.279)  0.597  0.755  | 1.276  0.561  0.000  | \n 0.32  | 0.994  0.464  (0.309)  0.612  0.808  | 1.096  0.396  0.000  | \n 0.48  | 1.073  0.453  (0.302)  0.585  0.779  | 1.044  0.302  0.000  | \n 0.64  | 0.925  0.505  (0.337)  0.638  0.812  | 1.045  0.258  0.000  | \n 0.80  | 0.971  0.475  (0.317)  0.634  0.794  | 1.013  0.246  0.000  | \n 0.96  | 0.940  0.488  (0.326)  0.639  0.812  | 1.055  0.232  0.000  | \n 1.13  | 0.949  0.507  (0.338)  0.639  0.815  | 0.990  0.221  0.000  | \n 1.29  | 1.013  0.502  (0.334)  0.585  0.764  | 1.017  0.224  0.000  | \n 1.45  | 0.970  0.489  (0.326)  0.631  0.813  | 0.991  0.211  0.000  | \n</code></pre>\n<p>this reveals a few tricks:</p>\n<ul>\n<li><p>map is worse than top1. this is the effect of imbalance class. map is averaged across all classes, i did not apply that for top1</p></li>\n<li><p>the probing discussion is in <a href=\"https://www.kaggle.com/c/siim-covid19-detection/discussion/244066\" target=\"_blank\">https://www.kaggle.com/c/siim-covid19-detection/discussion/244066</a>. You can obtain the prior class probability</p></li>\n<li><p>if you know how many test samples there are, you can \"de-rank\" the probabiliy. e.g <a href=\"https://www.kaggle.com/c/quickdraw-doodle-recognition/discussion/73738\" target=\"_blank\">https://www.kaggle.com/c/quickdraw-doodle-recognition/discussion/73738</a></p></li>\n</ul>\n<p>the cost of mistakes is not the same for each sample. It is more costly to make mistakes for rare classes. some kind of cost-aware loss function or post-processing may be able to improve results?</p>\n<ul>\n<li><p>top2 results are pretty good. if you want to post-process results, you may consider \"moving prediction from top2 to top1\" if the \"cost\" of this action justifies itself.</p></li>\n<li><p>one can think of more ideas if one plots some graphs to analyze the distribution of relative/absolute score of different class</p></li>\n</ul>",
          "rawMarkdown": "after the topk bug is fixed, you will get something like:\n\n```\n   experiment = ['effb3-full-512-mask-v8', 'run_train_2.py']\n\n       |---------------- VALID -------------|---- TRAIN/BATCH -------\n epoch | loss    map   (map*0.6)  top1,2    | loss0  loss1          \n----------------------------------------------------------------------\n 0.00  | 1.412  0.257  (0.171)  0.281  0.425  | 0.000  0.000  0.000  | \n 0.16  | 1.103  0.419  (0.279)  0.597  0.755  | 1.276  0.561  0.000  | \n 0.32  | 0.994  0.464  (0.309)  0.612  0.808  | 1.096  0.396  0.000  | \n 0.48  | 1.073  0.453  (0.302)  0.585  0.779  | 1.044  0.302  0.000  | \n 0.64  | 0.925  0.505  (0.337)  0.638  0.812  | 1.045  0.258  0.000  | \n 0.80  | 0.971  0.475  (0.317)  0.634  0.794  | 1.013  0.246  0.000  | \n 0.96  | 0.940  0.488  (0.326)  0.639  0.812  | 1.055  0.232  0.000  | \n 1.13  | 0.949  0.507  (0.338)  0.639  0.815  | 0.990  0.221  0.000  | \n 1.29  | 1.013  0.502  (0.334)  0.585  0.764  | 1.017  0.224  0.000  | \n 1.45  | 0.970  0.489  (0.326)  0.631  0.813  | 0.991  0.211  0.000  | \n```\n\nthis reveals a few tricks:\n- map is worse than top1. this is the effect of imbalance class. map is averaged across all classes, i did not apply that for top1\n\n- the probing discussion is in https://www.kaggle.com/c/siim-covid19-detection/discussion/244066. You can obtain the prior class probability\n\n- if you know how many test samples there are, you can \"de-rank\" the probabiliy. e.g https://www.kaggle.com/c/quickdraw-doodle-recognition/discussion/73738\n\nthe cost of mistakes is not the same for each sample. It is more costly to make mistakes for rare classes. some kind of cost-aware loss function or post-processing may be able to improve results?\n\n- top2 results are pretty good. if you want to post-process results, you may consider \"moving prediction from top2 to top1\" if the \"cost\" of this action justifies itself.\n\n- one can think of more ideas if one plots some graphs to analyze the distribution of relative/absolute score of different class\n",
          "votes": 3
        }
      ]
    },
    {
      "id": 1336213,
      "postDate": "2021-06-04T18:05:35.833Z",
      "content": "<p>There is a discussion to replace Attention with MLP. I don't know if it can be a good application here.</p>",
      "rawMarkdown": "There is a discussion to replace Attention with MLP. I don't know if it can be a good application here.",
      "votes": 2
    },
    {
      "id": 1314181,
      "postDate": "2021-05-19T02:36:30.963Z",
      "content": "<p>It’s an honor to explore the philosophy of artificial intelligence with you on another battlefield</p>",
      "rawMarkdown": "It’s an honor to explore the philosophy of artificial intelligence with you on another battlefield"
    },
    {
      "id": 1462191,
      "postDate": "2021-08-09T18:11:05.583Z",
      "content": "<p>Do you think inputting the image with only 1 channel as opposed to 3 could increase the score? maybe decrease it? idk. personally, when i used one channel the accuracy reduced</p>",
      "rawMarkdown": "Do you think inputting the image with only 1 channel as opposed to 3 could increase the score? maybe decrease it? idk. personally, when i used one channel the accuracy reduced",
      "votes": -1
    },
    {
      "id": 1464120,
      "postDate": "2021-08-10T13:04:56.283Z",
      "content": "<p><a href=\"https://www.kaggle.com/hengck23\" target=\"_blank\">@hengck23</a> Thank you for all information you shared for this competition. As a team we used your  code, ideas and implemented them. Looking forward for next \"starter kit\" discussion 👀</p>",
      "rawMarkdown": "@hengck23 Thank you for all information you shared for this competition. As a team we used your  code, ideas and implemented them. Looking forward for next \"starter kit\" discussion 👀"
    },
    {
      "id": 1393690,
      "postDate": "2021-07-19T19:54:31.270Z",
      "content": "<p>Nice work! I'd like to ask what is the \"00007400_model.path\" set as the initial checkpoint. As I tried the training with your original setting (efficient net_b3a) with none initial checkpoint, it reached the best point at 3200 iterations, and if I try with effnetv2, it converges faster, around 600 iterations. </p>",
      "rawMarkdown": "Nice work! I'd like to ask what is the \"00007400_model.path\" set as the initial checkpoint. As I tried the training with your original setting (efficient net_b3a) with none initial checkpoint, it reached the best point at 3200 iterations, and if I try with effnetv2, it converges faster, around 600 iterations. ",
      "replies": [
        {
          "id": 1393708,
          "postDate": "2021-07-19T20:12:59.367Z",
          "content": "<p>Another question, I obtained a CV score 0.374 for training with your original setting (effnet_b3a) for fold 1. What is the expected LB score for this single folder submission (with \"none 1 0 0 1 1\")? Thanks!</p>",
          "rawMarkdown": "Another question, I obtained a CV score 0.374 for training with your original setting (effnet_b3a) for fold 1. What is the expected LB score for this single folder submission (with \"none 1 0 0 1 1\")? Thanks!"
        }
      ]
    },
    {
      "id": 1379390,
      "postDate": "2021-07-07T10:26:39.310Z",
      "content": "<p>hi <br>\nwhy use efficientnet first 6 layers out put as mask to calculate aux loss?<br>\nHow do you know use 6 layer output rather than 7 layer output?</p>",
      "rawMarkdown": "hi \nwhy use efficientnet first 6 layers out put as mask to calculate aux loss?\nHow do you know use 6 layer output rather than 7 layer output?\n"
    },
    {
      "id": 1375162,
      "postDate": "2021-07-04T00:00:17.667Z",
      "content": "<p>hiii i tried your started kit its so good i was able to train but having problems while submission i mean how to get in on kaggle i trained on my system i need to submit in kaggle can u help please</p>",
      "rawMarkdown": "hiii i tried your started kit its so good i was able to train but having problems while submission i mean how to get in on kaggle i trained on my system i need to submit in kaggle can u help please"
    },
    {
      "id": 1359754,
      "postDate": "2021-06-21T13:53:56.010Z",
      "content": "<p>Do you expect the multi-task model to work better than the models that solve each task (OD, clf)?</p>",
      "rawMarkdown": "Do you expect the multi-task model to work better than the models that solve each task (OD, clf)?"
    },
    {
      "id": 1354831,
      "postDate": "2021-06-17T23:28:42.667Z",
      "content": "<p>Great work. I'll try the aux loss.</p>",
      "rawMarkdown": "Great work. I'll try the aux loss.",
      "replies": [
        {
          "id": 1356696,
          "postDate": "2021-06-19T07:13:16.947Z",
          "content": "<p>Hey I have tried segmentation as aux loss the masks generated by the bounding box seem to be not that accurate especially for the typical label and it has not worked for me so update if you somehow make it work</p>",
          "rawMarkdown": "Hey I have tried segmentation as aux loss the masks generated by the bounding box seem to be not that accurate especially for the typical label and it has not worked for me so update if you somehow make it work"
        }
      ]
    },
    {
      "id": 1350860,
      "postDate": "2021-06-15T21:20:04.390Z",
      "content": "<p>Very nice work!! Do you think it would be helpful to remove / not calculate loss for the classification head of the EfficientDet since there is basically only one class in the detection part? And did you implement this model in your Google Drive?</p>",
      "rawMarkdown": "Very nice work!! Do you think it would be helpful to remove / not calculate loss for the classification head of the EfficientDet since there is basically only one class in the detection part? And did you implement this model in your Google Drive?"
    },
    {
      "id": 1350206,
      "postDate": "2021-06-15T10:45:09.393Z",
      "content": "<p>Hey thank you for your code, could you enlighten me about \"mask\" ? I've seen in your code that your network has a second head for it and that you calculate an auxiliary loss with it, but I don't know what mask is supposed to be? The boxes from the train datas ?</p>",
      "rawMarkdown": "Hey thank you for your code, could you enlighten me about \"mask\" ? I've seen in your code that your network has a second head for it and that you calculate an auxiliary loss with it, but I don't know what mask is supposed to be? The boxes from the train datas ?",
      "replies": [
        {
          "id": 1350219,
          "postDate": "2021-06-15T11:01:46.540Z",
          "content": "<p>they are rendered box annotation: 1 for pixel inside box and 0 for pixel outside</p>",
          "rawMarkdown": "they are rendered box annotation: 1 for pixel inside box and 0 for pixel outside",
          "votes": 3,
          "replies": [
            {
              "id": 1350929,
              "postDate": "2021-06-15T23:44:19.817Z",
              "content": "<p><a href=\"https://www.kaggle.com/hengck23\" target=\"_blank\">@hengck23</a> Thanks for this starter!! I'm starting some experiments setup, just to make sure that everything is fine could you please guide us on how we can generate the masks ? eg see dataset.py </p>\n<p><code>mask_file = data_dir + '/%s_mask_full_512/%s.png' % (d.set, d.image)</code></p>",
              "rawMarkdown": "@hengck23 Thanks for this starter!! I'm starting some experiments setup, just to make sure that everything is fine could you please guide us on how we can generate the masks ? eg see dataset.py \n\n`mask_file = data_dir + '/%s_mask_full_512/%s.png' % (d.set, d.image)`"
            }
          ]
        },
        {
          "id": 1350931,
          "postDate": "2021-06-15T23:56:14.127Z",
          "content": "<p>i provided some images at train_mask_full_512 at the google drive.<br>\nbasically, you can use e.g, opencv rect draw function to draw the bounding box and resize to 512x512</p>",
          "rawMarkdown": "i provided some images at train\\_mask\\_full\\_512 at the google drive.\nbasically, you can use e.g, opencv rect draw function to draw the bounding box and resize to 512x512",
          "votes": 3
        },
        {
          "id": 1354133,
          "postDate": "2021-06-17T11:57:39.610Z",
          "content": "<p><a href=\"https://www.kaggle.com/hengck23\" target=\"_blank\">@hengck23</a> in your model why u name self.mask as one.  I though u will output Bbox mask at output, but it give  Single output only. <br>\nIs mask one prepared out of BBOxes ?</p>",
          "rawMarkdown": "@hengck23 in your model why u name self.mask as one.  I though u will output Bbox mask at output, but it give  Single output only. \nIs mask one prepared out of BBOxes ?\n"
        }
      ]
    },
    {
      "id": 1349430,
      "postDate": "2021-06-14T18:52:42.410Z",
      "content": "<p>How are you generating the segmentation masks for the dataset ?</p>",
      "rawMarkdown": "How are you generating the segmentation masks for the dataset ?"
    },
    {
      "id": 1347872,
      "postDate": "2021-06-13T14:35:12.640Z",
      "content": "<p>Hello,how can I see the picture?</p>",
      "rawMarkdown": "Hello,how can I see the picture?"
    },
    {
      "id": 1334609,
      "postDate": "2021-06-03T16:10:30.030Z",
      "content": "<p>Cool. Expect👀</p>",
      "rawMarkdown": "Cool. Expect👀"
    },
    {
      "id": 1329685,
      "postDate": "2021-05-31T09:52:57.157Z",
      "content": "<p><a href=\"https://pytorch.org/blog/stochastic-weight-averaging-in-pytorch/#low-precision-training\" target=\"_blank\">SWALP</a> sounds interesting but most materials are quite old(correct me if I was wrong), I can hardly find any codebase that uses this technique in object detection. For users with limited GPU resource people like me, this is the first thing comes out of my mind ;) </p>",
      "rawMarkdown": "[SWALP](https://pytorch.org/blog/stochastic-weight-averaging-in-pytorch/#low-precision-training) sounds interesting but most materials are quite old(correct me if I was wrong), I can hardly find any codebase that uses this technique in object detection. For users with limited GPU resource people like me, this is the first thing comes out of my mind ;) "
    },
    {
      "id": 1320282,
      "postDate": "2021-05-24T01:09:51.920Z",
      "content": "<p>🐸迟但到……..</p>",
      "rawMarkdown": "🐸迟但到........"
    },
    {
      "id": 1319330,
      "postDate": "2021-05-23T05:49:00.847Z",
      "content": "<p>Wow, Can't wait to learn more!</p>",
      "rawMarkdown": "Wow, Can't wait to learn more!"
    },
    {
      "id": 1375776,
      "postDate": "2021-07-04T13:33:27.403Z",
      "rawMarkdown": "",
      "votes": -1,
      "isDeleted": true
    },
    {
      "id": 1335208,
      "postDate": "2021-06-04T04:52:43.490Z",
      "rawMarkdown": "",
      "isDeleted": true
    },
    {
      "id": 1360192,
      "postDate": "2021-06-21T22:19:24.737Z",
      "content": "<p>thanks for sharing</p>",
      "rawMarkdown": "thanks for sharing"
    },
    {
      "id": 1359366,
      "postDate": "2021-06-21T08:41:59.303Z",
      "content": "<p>so cool thank u</p>",
      "rawMarkdown": "so cool thank u"
    }
  ],
  "comments": [
    {
      "id": 1941002,
      "author_name": "Nanduvardhanreddy",
      "author_url": "",
      "post_date": "2022-09-15T17:39:42.567000",
      "content": "<p>I really appreciate your work and thanks for sharing information</p>",
      "votes": 5,
      "replies": []
    },
    {
      "id": 1363385,
      "author_name": "hengck23",
      "author_url": "",
      "post_date": "2021-06-24T06:11:58.033000",
      "content": "<p>after numerous experiments:</p>\n<ul>\n<li><p>confirmed that aux loss using the mask can improve results significantly. <br>\nI can get local CV up to 0.39+ for single fold using different network (e.g. transformer), different pooling (attention-based, global average), different loss (lovasz, sigmoid, softamx, more weighing in aux loss, hard mining top +ve/-ve pixels etc)</p></li>\n<li><p>freezing at fine tuning</p></li>\n<li><p>increasing difficulty at training and fine-tuning</p></li>\n<li><p>but it is sometimes unstable (i.e. different methods improve results for different folds/subsets. I can't find a method that improves for all cases)</p></li>\n<li><p>this is because the mask is \"approximate\". we need a way to better refine the labeling of the pixel to mark them as indicating lung opacity/non-opacity or other.</p></li>\n<li><p>you can think of pixels inside the box as \"likely to contain lung opacity\", but \"not all\" pixels are like that (e.g. box contains non-lung region). There is a similar argument for pixels that is outside the box. you need a pooling loss.</p></li>\n<li><p>the number of train images is too small. Strong network overfits easily</p></li>\n</ul>",
      "votes": 9,
      "replies": [
        {
          "id": 1363466,
          "author_name": "human intelligence",
          "author_url": "",
          "post_date": "2021-06-24T06:48:10.683000",
          "content": "<p>I stacked top 50 object detections boxes with confidence to generate the \"finer\" mask. Regions with high-confidence opacity will be brighter whereas negative sample will be darker but not completely blank. Almost perfectly filtered distractive objects such as letter and metals. But got same result for appearance classification. Without external data, I doubt whether multitasking model will result in an improvement.</p>",
          "votes": 0,
          "replies": []
        },
        {
          "id": 1365025,
          "author_name": "Harshit Sheoran",
          "author_url": "",
          "post_date": "2021-06-25T11:55:16.643000",
          "content": "<blockquote>\n  <p>but it is sometimes unstable (i.e. different methods improve results for different folds/subsets. I can't find a method that improves for all cases)</p>\n</blockquote>\n<p>Exactly! In my case too even average of folds is not the ideal improvement on leaderboard, I select my final best model as average of all my CV folds and LB. Even changing the seed changes the scores a lot (made it only for worse in my trails).</p>\n<blockquote>\n  <p>you can think of pixels inside the box as \"likely to contain lung opacity\", but \"not all\" pixels are like that (e.g. box contains non-lung region). There is a similar argument for pixels that is outside the box. you need a pooling loss.</p>\n</blockquote>\n<p>I am using something like pooling loss working out great for me!</p>\n<blockquote>\n  <p>the number of train images is too small. Strong network overfits easily</p>\n</blockquote>\n<p>I wonder if the extra data pretraining might solve that for us although that might mean even stronger augmentations or higher drop rates to make it not overfit.</p>",
          "votes": 0,
          "replies": []
        },
        {
          "id": 1365783,
          "author_name": "Anii",
          "author_url": "",
          "post_date": "2021-06-26T05:56:54.817000",
          "content": "<p>I trained a MoCo model on CheXpert dataset(license issue, only for experiments), MoCo models was trained well with top 1 accuracy over 90%(k=65536 and 4096). But finetuned on this dataset doesn't improve the performance compare to imagenet pretrained weights. Naive knn on MoCo representations doesn't work as well, as expected.</p>",
          "votes": 0,
          "replies": []
        }
      ]
    },
    {
      "id": 1462936,
      "author_name": "hengck23",
      "author_url": "",
      "post_date": "2021-08-10T03:39:04.480000",
      "content": "<p>to make this thread complete, i have updated:</p>\n<p>[1]  notebook to show interference code and results<br>\n(My submission couldn't complete in time and hence I missed the submission deadline)<br>\n<a href=\"https://www.kaggle.com/hengck23/final-v-00-private-public-score-0-615-0-628?scriptVersionId=70933214\" target=\"_blank\">https://www.kaggle.com/hengck23/final-v-00-private-public-score-0-615-0-628?scriptVersionId=70933214</a></p>\n<p>this is bare minium model (only one k-fold model for study classification and one k-fold detection model)<br>\nwith decent results</p>\n<p>Private Score   0.615<br>\nPublic Score    0.628</p>\n<p><img src=\"https://i.ibb.co/pb1SB85/Selection-665.png\" alt=\"https://i.ibb.co/pb1SB85/Selection-665.png\"></p>\n<hr>\n<p>[2]  code and trained model for effcienetDet (see folder \"2021-08-11-effdet\")<br>\n<a href=\"https://drive.google.com/drive/folders/16JzkuBpW5cwEexM5awq0wOK6t9gYLeKc\" target=\"_blank\">https://drive.google.com/drive/folders/16JzkuBpW5cwEexM5awq0wOK6t9gYLeKc</a></p>\n<hr>\n<p>[3] more results on effcienetDet<br>\n<img src=\"https://i.ibb.co/vBr88pr/Selection-668.png\" alt=\"https://i.ibb.co/vBr88pr/Selection-668.png\"></p>",
      "votes": 6,
      "replies": []
    },
    {
      "id": 1361974,
      "author_name": "hengck23",
      "author_url": "",
      "post_date": "2021-06-23T06:32:57.673000",
      "content": "<p>voc12 mAP computation, python code: <a href=\"https://github.com/Cartucho/mAP/blob/master/main.py\" target=\"_blank\">https://github.com/Cartucho/mAP/blob/master/main.py</a></p>",
      "votes": 3,
      "replies": [
        {
          "id": 1362347,
          "author_name": "hengck23",
          "author_url": "",
          "post_date": "2021-06-23T11:46:44.013000",
          "content": "<p><img src=\"https://insidebigdata.com/wp-content/uploads/2021/03/arXiv_2021_Feb6.png\" alt=\"https://insidebigdata.com/wp-content/uploads/2021/03/arXiv_2021_Feb6.png\"></p>\n<p>Constrained Optimization for Training Deep Neural Networks Under Class Imbalance <br>\n<a href=\"https://arxiv.org/pdf/2102.12894v1.pdf\" target=\"_blank\">https://arxiv.org/pdf/2102.12894v1.pdf</a></p>",
          "votes": 1,
          "replies": []
        }
      ]
    },
    {
      "id": 1359014,
      "author_name": "hengck23",
      "author_url": "",
      "post_date": "2021-06-21T02:18:31.080000",
      "content": "<p>we love neighbors:</p>\n<ul>\n<li>Semi-Supervised Learning of Visual Features by Non-Parametrically<br>\nPredicting View Assignments with Support Samples</li>\n<li>Many-to-One Distribution Learning and K-Nearest Neighbor Smoothing for<br>\nThoracic Disease Identification</li>\n</ul>",
      "votes": 3,
      "replies": []
    },
    {
      "id": 1358761,
      "author_name": "hengck23",
      "author_url": "",
      "post_date": "2021-06-20T17:53:51.943000",
      "content": "<p><a href=\"https://www.kaggle.com/c/siim-covid19-detection/discussion/240250\" target=\"_blank\">https://www.kaggle.com/c/siim-covid19-detection/discussion/240250</a></p>\n<p>\"FIGURE 7: Lung zones: proposed methodology for dividing a frontal CXR into 3 zones per lung (total of 6 zones). The upper zone extends from the apices to the superior portion of the hilum. The mid zone spans the space between the superior and inferior hilar margins. The lower zone extends from the inferior hilar margins to the costophrenic sulci.\"</p>\n<p><img src=\"https://images.journals.lww.com/thoracicimaging/ArticleViewerPreview.00005382-202011000-00004.F7.jpeg\" alt=\"\"></p>\n<p>see also:</p>\n<ul>\n<li>Vision Transformer using Low-level Chest X-ray Feature Corpus for COVID-19 Diagnosis and Severity Quantification</li>\n<li>Vision Transformer for COVID-19 CXR Diagnosis using Chest X-ray Feature Corpus</li>\n</ul>\n<p><img src=\"https://i.ibb.co/2dWFsCr/Selection-323.png\" alt=\"https://i.ibb.co/2dWFsCr/Selection-323.png\"></p>\n<ul>\n<li>Radiologic diagnosis of patients with COVID-19<br>\n<img src=\"https://i.ibb.co/LvGJQVV/Selection-324.png\" alt=\"https://i.ibb.co/LvGJQVV/Selection-324.png\"></li>\n</ul>",
      "votes": 3,
      "replies": []
    },
    {
      "id": 1356561,
      "author_name": "hengck23",
      "author_url": "",
      "post_date": "2021-06-19T05:13:30.323000",
      "content": "<p>Note: bbox aux loss help image classification.</p>\n<p><strong>conversely,</strong> 4-class image label aux loss should help opacity localization/detection.<br>\n(you need an aux-loss yolo or efficientDet)</p>",
      "votes": 3,
      "replies": [
        {
          "id": 1356570,
          "author_name": "hengck23",
          "author_url": "",
          "post_date": "2021-06-19T05:20:20.380000",
          "content": "<p>modified meta pesudo label</p>\n<p><img src=\"https://i.ibb.co/6P7dnsn/Selection-317.png\" alt=\"\"></p>",
          "votes": 0,
          "replies": []
        }
      ]
    },
    {
      "id": 1360751,
      "author_name": "hengck23",
      "author_url": "",
      "post_date": "2021-06-22T10:25:03.903000",
      "content": "<p>insprations from recent cvpr 2021<br>\n[CVPR 2021] Background Splitting: Finding Rare Categories in a Sea of Background</p>\n<p><img src=\"https://i.ibb.co/SVKfTvG/Selection-342.png\" alt=\"https://i.ibb.co/SVKfTvG/Selection-342.png\"></p>",
      "votes": 4,
      "replies": [
        {
          "id": 1361097,
          "author_name": "Schwert",
          "author_url": "",
          "post_date": "2021-06-22T14:48:17.187000",
          "content": "<p>Thanks this is interesting, however in this case the background images are pseudo-labeled by an imagenet-pretrained model. Can this apply to our case.. ?</p>",
          "votes": 0,
          "replies": []
        },
        {
          "id": 1361158,
          "author_name": "human intelligence",
          "author_url": "",
          "post_date": "2021-06-22T16:00:35.597000",
          "content": "<p><img src=\"https://i.ibb.co/Kx1nZyT/boxes.png\" alt=\"\"><br>\nget your best object detection model trained with default background box 0,0,0,0 -&gt; label \"negative\" samples and make the predicted opacity box as background -&gt; train again. From the image above (covid negative), you can see that vanilla model does makes some \"reasonable\" but wrong predictions on the negative image, but it also looks at the foreign objects such as the \"BIPE\" and spine. [0,0,0,0] fake background box tells the model \"your prediction is very wrong!\", but doesn't tell how &amp; where to improve. Without a proper regularization, model will be easily overfitted to looking at irrelevant objects, like metal, heart, patient pose, etc. Pseudolabelling background with <em>good</em> boxes instead of 0,0,0,0 fake box (should) help model understand the corresponding region is not opacity and makes the loss smoother. </p>",
          "votes": 1,
          "replies": []
        },
        {
          "id": 1361710,
          "author_name": "hengck23",
          "author_url": "",
          "post_date": "2021-06-23T03:03:29.473000",
          "content": "<p><img src=\"https://i.ibb.co/LxL1ybP/Selection-343.png\" alt=\"https://i.ibb.co/LxL1ybP/Selection-343.png\"><br>\nBuilding High Performance Chest X-Ray Classification Models | Talk 1 | CVPR 2021 | WIANLP Tutorial</p>\n<hr>\n<p>Topic VI: Data Efficient Deep Learning for Medical Image Analysis | CVPR 2021 | VITA Workshop<br>\n<a href=\"https://www.youtube.com/watch?v=HnBvpwP0Wp4\" target=\"_blank\">https://www.youtube.com/watch?v=HnBvpwP0Wp4</a></p>",
          "votes": 2,
          "replies": []
        }
      ]
    },
    {
      "id": 1360311,
      "author_name": "hengck23",
      "author_url": "",
      "post_date": "2021-06-22T02:50:33.647000",
      "content": "<p>success in experiments in transformer opens up a world of new possibilities …<br>\ncode coming up ….</p>",
      "votes": 4,
      "replies": [
        {
          "id": 1360324,
          "author_name": "hengck23",
          "author_url": "",
          "post_date": "2021-06-22T03:23:57.223000",
          "content": "<p><img src=\"https://i.ibb.co/2FYmFh6/Selection-335.png\" alt=\"https://i.ibb.co/2FYmFh6/Selection-335.png\"><br>\n<img src=\"https://i.ibb.co/VDnGj2n/Selection-337.png\" alt=\"https://i.ibb.co/VDnGj2n/Selection-337.png\"><br>\n<img src=\"https://i.ibb.co/hfnyBM1/Selection-338.png\" alt=\"https://i.ibb.co/hfnyBM1/Selection-338.png\"><br>\n<img src=\"https://i.ibb.co/6WnyF6X/Selection-339.png\" alt=\"https://i.ibb.co/6WnyF6X/Selection-339.png\"></p>",
          "votes": 4,
          "replies": []
        },
        {
          "id": 1379416,
          "author_name": "Victor Fernandez Albor",
          "author_url": "",
          "post_date": "2021-07-07T10:54:16",
          "content": "<p>Have you share the code with transformer?</p>",
          "votes": 0,
          "replies": []
        }
      ]
    },
    {
      "id": 1349610,
      "author_name": "hengck23",
      "author_url": "",
      "post_date": "2021-06-15T00:50:44.503000",
      "content": "<p>important conclusion from version.1 2020-14-jun: <br>\n(do not take any words for granted. i encourage you to verify the claims below and discuss here)</p>\n<ul>\n<li>baseline performance: no augmentation: CV/LB 0.34/?, add augmentation 0.36/0.38, add aux loss 0.38/0.395<br>\n(this is based on old scoring system, where sample submission scored 0.050)</li>\n</ul>",
      "votes": 4,
      "replies": [
        {
          "id": 1350971,
          "author_name": "human intelligence",
          "author_url": "",
          "post_date": "2021-06-16T01:43:30.193000",
          "content": "<p>Confirmed. Different backbones of EffNet with aux loss consistently resulted in CV mAP 0.38x. Model get overfitted easily without aux loss.</p>",
          "votes": 0,
          "replies": []
        },
        {
          "id": 1350981,
          "author_name": "hengck23",
          "author_url": "",
          "post_date": "2021-06-16T01:50:15.457000",
          "content": "<p>you may also want to check that at CV mAP 0.38x. , the validation and training loss gap is not large (much better than the case without aux loss). this indicates aux loss improve generalisation.</p>\n<p>but the loss curves are bumpy and fluctuating. there is still some room for improvement if you can smooth and stabilise the curve</p>",
          "votes": 1,
          "replies": []
        },
        {
          "id": 1351581,
          "author_name": "Anii",
          "author_url": "",
          "post_date": "2021-06-16T12:32:59.537000",
          "content": "<p>I can confirm that augmentation helps a lot.  But regard aux loss,  my resnet101 model(224x224) started to overfit heavily when I add aux loss. The training accuracy is nearly 95% with aux loss and 70% without aux loss, validation accuracy is about 67% percent in both cases. I tried using all images and ignore all images(except negative class) without boxes, still no luck ;(  <br>\nI'll try to use your input pipeline to investigate this further, maybe segmentation head only works better only if your augmentation is strong enough?</p>",
          "votes": 0,
          "replies": []
        },
        {
          "id": 1351684,
          "author_name": "hengck23",
          "author_url": "",
          "post_date": "2021-06-16T14:17:55.947000",
          "content": "<p>resnet perform  worse than efficient net in my experiments</p>",
          "votes": 1,
          "replies": []
        },
        {
          "id": 1351728,
          "author_name": "human intelligence",
          "author_url": "",
          "post_date": "2021-06-16T14:51:38.603000",
          "content": "<p><a href=\"https://www.kaggle.com/artnotintelligence\" target=\"_blank\">@artnotintelligence</a> you probably need to specify high drop_rate and drop_path_rate in the effnet / resnet, especially when lr is low. In Heng's kit, they are both 0.2, but for big backbone I set drop_rate = 0.5 to combat overfitting, but model will still overfit when mAP is close to 0.385. This is the limit of simple aux loss strategy.</p>",
          "votes": 1,
          "replies": []
        },
        {
          "id": 1351808,
          "author_name": "Anii",
          "author_url": "",
          "post_date": "2021-06-16T16:07:19.397000",
          "content": "<p>I add dropout rate up to 0.5 along with l2 regularization loss, which doesn't help avoid overfitting. </p>",
          "votes": 0,
          "replies": []
        },
        {
          "id": 1351850,
          "author_name": "hengck23",
          "author_url": "",
          "post_date": "2021-06-16T16:40:34.700000",
          "content": "<p>\"This is the limit of simple aux loss strategy.\"</p>\n<p>you can predict the lung segmentation or pixel values of the related masked region.</p>\n<p><img src=\"https://i.ibb.co/ZTbK99K/Selection-265.png\" alt=\"\"><br>\n<img src=\"https://i.ibb.co/fk6LsBX/Selection-264.png\" alt=\"\"></p>",
          "votes": 4,
          "replies": []
        },
        {
          "id": 1351870,
          "author_name": "hengck23",
          "author_url": "",
          "post_date": "2021-06-16T16:50:12.933000",
          "content": "<p><img src=\"https://i.ibb.co/RNM9cFV/Selection-266.png\" alt=\"\"></p>\n<p>input to the green \"predict the value of cross entropy loss\" model could be array of pixel differences of the predicted and truth of mask region.</p>\n<p>we bypass the step to obtain pseudo label … we just need the \"pseudo label loss\" for backprop</p>",
          "votes": 2,
          "replies": []
        },
        {
          "id": 1353291,
          "author_name": "Anii",
          "author_url": "",
          "post_date": "2021-06-17T03:15:37.277000",
          "content": "<p>I don't quite understand the last part, are you saying that , for example, if softmax(logits) = [0.1, 0.1, 0.2, 0.6], then we use pseudo label = [0, 0, 0, 1]<br>\nas gt label to produce CE loss, then further regularize CE loss with predicted CE loss?</p>",
          "votes": 0,
          "replies": []
        },
        {
          "id": 1353300,
          "author_name": "hengck23",
          "author_url": "",
          "post_date": "2021-06-17T03:27:01.110000",
          "content": "<p>no. you don't predict the pseudo label.<br>\nyou can predict the CE loss value (of pseudo label) directly</p>",
          "votes": 1,
          "replies": []
        },
        {
          "id": 1353316,
          "author_name": "hengck23",
          "author_url": "",
          "post_date": "2021-06-17T03:44:04.260000",
          "content": "<p><a href=\"https://www.kaggle.com/houndcl\" target=\"_blank\">@houndcl</a> i think <a href=\"https://www.kaggle.com/phalanx\" target=\"_blank\">@phalanx</a> Unet aux loss is better than mine. Maybe it can hit 0.395</p>",
          "votes": 1,
          "replies": []
        }
      ]
    },
    {
      "id": 1347120,
      "author_name": "hengck23",
      "author_url": "",
      "post_date": "2021-06-13T02:24:02.733000",
      "content": "<p>archive for old post </p>\n<hr>\n<p>i am preparing starter kit over the next few weeks.<br>\nIf you have recommended papers or methods, please let me know. I will include it in the starter kit.</p>\n<p>What is desired:</p>\n<p>old methods that have proved to work on xray images, etc<br>\nnew methods that may show interesting results (e.g. transformer, weak/semi-supervised learning)<br>\npaper that you want to understand learn, but there is no open source to verify if your understanding is correct<br>\ntraining/inference speedup<br>\ne.g. …<br>\nOnce i select the method, the starter kits will include:</p>\n<p>reference code for training and inference<br>\nintermediate trained model<br>\nlogfile of training for reference and checking implementation, etc<br>\nexperiment results<br>\nsome training/hyperparameters tricks. etc<br>\nNote: i am currently busy with kaggle BMS molecule image-text translation. I will be more active here after BMS is over</p>\n<p>the starter kit post will be something like this: <a href=\"https://www.kaggle.com/c/bms-molecular-translation/discussion/231190\" target=\"_blank\">https://www.kaggle.com/c/bms-molecular-translation/discussion/231190</a></p>",
      "votes": 4,
      "replies": []
    },
    {
      "id": 1367336,
      "author_name": "hengck23",
      "author_url": "",
      "post_date": "2021-06-27T15:49:09.230000",
      "content": "<p><img src=\"https://i.ibb.co/Y7BbmCN/Selection-425.png\" alt=\"https://i.ibb.co/Y7BbmCN/Selection-425.png\"></p>",
      "votes": 2,
      "replies": [
        {
          "id": 1367708,
          "author_name": "hengck23",
          "author_url": "",
          "post_date": "2021-06-28T03:41:42.397000",
          "content": "<p><img src=\"https://i.ibb.co/42YxkwH/Selection-450.png\" alt=\"https://i.ibb.co/42YxkwH/Selection-450.png\"><img src=\"https://i.ibb.co/5R3BkWv/Selection-449.png\" alt=\"https://i.ibb.co/5R3BkWv/Selection-449.png\"><img src=\"https://i.ibb.co/KbQsYMV/Selection-448.png\" alt=\"https://i.ibb.co/KbQsYMV/Selection-448.png\"></p>\n<p><img src=\"https://i.ibb.co/55XgDND/Selection-454.png\" alt=\"https://i.ibb.co/55XgDND/Selection-454.png\"></p>",
          "votes": 1,
          "replies": []
        },
        {
          "id": 1367725,
          "author_name": "human intelligence",
          "author_url": "",
          "post_date": "2021-06-28T03:56:53.627000",
          "content": "<p><img src=\"https://i.ibb.co/xgh6zvn/agree.png\" alt=\"\"> <br>\nThe real world confusion matrix from RICORD dataset. The \"typical appearance\" data seems cleaner in this competition. The accurate prediction of \"atypical\" and \"indeterminate\" appearances remain challenging. Atypical class may be slightly easier to improve, by integrating external dataset such as MIMIC and NIH. There are plenty of images with mass | nodule | effusion | pneumothorax | edema etc labels.</p>",
          "votes": 0,
          "replies": []
        }
      ]
    },
    {
      "id": 1380600,
      "author_name": "lafe",
      "author_url": "",
      "post_date": "2021-07-08T07:33:18.697000",
      "content": "<p>What is rescore?</p>",
      "votes": 1,
      "replies": [
        {
          "id": 1380875,
          "author_name": "Simon",
          "author_url": "",
          "post_date": "2021-07-08T11:54:31.467000",
          "content": "<p>At the beginning of the competition there was a bug in the leaderboard and once the bug was fixed all submissions were run again and \"rescored\" so they got a new score without the bug</p>",
          "votes": 0,
          "replies": []
        }
      ]
    },
    {
      "id": 1374603,
      "author_name": "hengck23",
      "author_url": "",
      "post_date": "2021-07-03T12:53:52.260000",
      "content": "<p>i suddenly has an idea:</p>\n<ul>\n<li>super-resolution as self supervsied loss for unlabelled data</li>\n</ul>",
      "votes": 1,
      "replies": []
    },
    {
      "id": 1366470,
      "author_name": "hengck23",
      "author_url": "",
      "post_date": "2021-06-26T19:55:51.803000",
      "content": "<p>In this research, we proposed an ACGAN based model<br>\ncalled CovidGAN that generates synthetic CXR images to<br>\nenlarge the dataset and to improve the performance of CNN<br>\nin COVID-19 detection. The research is implemented on a<br>\ndataset with 403 COVID-CXR images and 721 Normal-CXR<br>\nimages</p>\n<p><a href=\"https://arxiv.org/pdf/2103.05094.pdf\" target=\"_blank\">https://arxiv.org/pdf/2103.05094.pdf</a></p>",
      "votes": 1,
      "replies": []
    },
    {
      "id": 1366297,
      "author_name": "hengck23",
      "author_url": "",
      "post_date": "2021-06-26T16:22:40.367000",
      "content": "<p><img src=\"https://i.ibb.co/xfvbwKF/Selection-393.png\" alt=\"https://i.ibb.co/xfvbwKF/Selection-393.png\"><br>\n<a href=\"https://www.youtube.com/channel/UCOkkljs06NPPkjNysCdQV4w/videos\" target=\"_blank\">https://www.youtube.com/channel/UCOkkljs06NPPkjNysCdQV4w/videos</a></p>",
      "votes": 1,
      "replies": []
    },
    {
      "id": 1366209,
      "author_name": "hengck23",
      "author_url": "",
      "post_date": "2021-06-26T14:54:31.843000",
      "content": "<p>channel to replace patch as token in trasnformer<br>\nCross-Covariance Image Transformer (XCiT)<br>\n<a href=\"https://www.youtube.com/watch?v=g08NkNWmZTA\" target=\"_blank\">https://www.youtube.com/watch?v=g08NkNWmZTA</a><br>\n<a href=\"https://github.com/facebookresearch/xcit\" target=\"_blank\">https://github.com/facebookresearch/xcit</a></p>",
      "votes": 1,
      "replies": []
    },
    {
      "id": 1364534,
      "author_name": "hengck23",
      "author_url": "",
      "post_date": "2021-06-25T04:38:39.137000",
      "content": "<p><a href=\"https://arxiv.org/pdf/2106.13112.pdf\" target=\"_blank\">https://arxiv.org/pdf/2106.13112.pdf</a><br>\nVolo+yolo?</p>",
      "votes": 1,
      "replies": []
    },
    {
      "id": 1363356,
      "author_name": "hengck23",
      "author_url": "",
      "post_date": "2021-06-24T06:00:00.690000",
      "content": "<p><img src=\"https://i.ibb.co/ngYDtJM/Selection-352.png\" alt=\"https://i.ibb.co/ngYDtJM/Selection-352.png\"><br>\n<a href=\"https://arxiv.org/pdf/2104.10858.pdf\" target=\"_blank\">https://arxiv.org/pdf/2104.10858.pdf</a><br>\nAll Tokens Matter: Token Labeling for Training Better Vision Transformers</p>",
      "votes": 1,
      "replies": []
    },
    {
      "id": 1356552,
      "author_name": "hengck23",
      "author_url": "",
      "post_date": "2021-06-19T05:01:56.983000",
      "content": "<p><img src=\"https://i.ibb.co/s11Vc7Q/Selection-316.png\" alt=\"\"><br>\n<a href=\"https://www.youtube.com/watch?v=0TwZfRcqhbI&amp;list=PL6liSIqFR4BUr7F4pL6aoucjkV3HYZ48J\" target=\"_blank\">https://www.youtube.com/watch?v=0TwZfRcqhbI&amp;list=PL6liSIqFR4BUr7F4pL6aoucjkV3HYZ48J</a><br>\n<a href=\"https://github.com/facebookresearch/unbiased-teacher\" target=\"_blank\">https://github.com/facebookresearch/unbiased-teacher</a></p>",
      "votes": 1,
      "replies": []
    },
    {
      "id": 1348118,
      "author_name": "sheep",
      "author_url": "",
      "post_date": "2021-06-13T18:52:16.780000",
      "content": "<p>I tried similiar setup but my mAP at study level was lower with segmentation head. What's your score without segmentation loss?</p>",
      "votes": 1,
      "replies": []
    },
    {
      "id": 1347883,
      "author_name": "Awsaf",
      "author_url": "",
      "post_date": "2021-06-13T14:45:53.973000",
      "content": "<p>Hi <a href=\"https://www.kaggle.com/hengck23\" target=\"_blank\">@hengck23</a>, what was your score without the <strong>aux loss</strong> ?</p>",
      "votes": 1,
      "replies": [
        {
          "id": 1350072,
          "author_name": "Joseph AMIGO",
          "author_url": "",
          "post_date": "2021-06-15T08:45:30.530000",
          "content": "<p>What is aux loss ? I'm googling it and not finding anything!</p>",
          "votes": 0,
          "replies": []
        },
        {
          "id": 1350176,
          "author_name": "Ashutosh Behera",
          "author_url": "",
          "post_date": "2021-06-15T10:09:45.767000",
          "content": "<p><a href=\"https://www.kaggle.com/josephamigo\" target=\"_blank\">@josephamigo</a> I believe aux loss is auxiliary loss. It helps to reduce the vanishing gradient problem for earlier layers, stabilizes the training and is used as regularization. It's only used for training and not for inference.</p>\n<p>Reference: <a href=\"https://stats.stackexchange.com/questions/304699/what-is-auxiliary-loss-as-mentioned-in-pspnet-paper\" target=\"_blank\">https://stats.stackexchange.com/questions/304699/what-is-auxiliary-loss-as-mentioned-in-pspnet-paper</a></p>",
          "votes": 5,
          "replies": []
        },
        {
          "id": 1350199,
          "author_name": "Joseph AMIGO",
          "author_url": "",
          "post_date": "2021-06-15T10:32:51.100000",
          "content": "<p>Thank you very much!!</p>",
          "votes": 1,
          "replies": []
        }
      ]
    },
    {
      "id": 1334679,
      "author_name": "Aman Deep Gupta",
      "author_url": "",
      "post_date": "2021-06-03T17:27:06.223000",
      "content": "<p>cool just waiting for your discussion and ideas <a href=\"https://www.kaggle.com/hengck23\" target=\"_blank\">@hengck23</a>  and starting baseline of <a href=\"https://www.kaggle.com/yasufuminakama\" target=\"_blank\">@yasufuminakama</a> and saturday.</p>",
      "votes": 1,
      "replies": []
    },
    {
      "id": 1319215,
      "author_name": "Cyr1ll",
      "author_url": "",
      "post_date": "2021-05-23T03:11:15.323000",
      "content": "<p>Not really a method, but a good summary. Also, it mentions a way to speed up a training procedure.</p>\n<p><strong>CheXtransfer: Performance and Parameter Efficiency of ImageNet Models for Chest X-Ray Interpretation</strong><br>\n<a href=\"https://arxiv.org/abs/2101.06871\" target=\"_blank\">https://arxiv.org/abs/2101.06871</a></p>",
      "votes": 1,
      "replies": []
    },
    {
      "id": 1314643,
      "author_name": "朴大福",
      "author_url": "",
      "post_date": "2021-05-19T09:42:24.207000",
      "content": "<p>Welcome! I will learn from you again.</p>",
      "votes": 1,
      "replies": []
    },
    {
      "id": 1359001,
      "author_name": "hengck23",
      "author_url": "",
      "post_date": "2021-06-21T02:02:50.340000",
      "content": "<p>lung mask:<br>\n<a href=\"https://github.com/v7labs/covid-19-xray-dataset\" target=\"_blank\">https://github.com/v7labs/covid-19-xray-dataset</a><br>\n<a href=\"https://github.com/ieee8023/covid-chestxray-dataset\" target=\"_blank\">https://github.com/ieee8023/covid-chestxray-dataset</a></p>\n<p><a href=\"https://github.com/raghavian/lungVAE\" target=\"_blank\">https://github.com/raghavian/lungVAE</a><br>\n<a href=\"https://arxiv.org/pdf/2104.05892.pdf\" target=\"_blank\">https://arxiv.org/pdf/2104.05892.pdf</a></p>\n<p>lung opacity:<br>\n<a href=\"https://arxiv.org/pdf/2002.02497.pdf\" target=\"_blank\">https://arxiv.org/pdf/2002.02497.pdf</a><br>\n<a href=\"https://github.com/mlmed/torchxrayvision\" target=\"_blank\">https://github.com/mlmed/torchxrayvision</a><br>\n<a href=\"https://openaccess.thecvf.com/content_CVPRW_2020/papers/w22/Gabruseva_Deep_Learning_for_Automatic_Pneumonia_Detection_CVPRW_2020_paper.pdf\" target=\"_blank\">https://openaccess.thecvf.com/content_CVPRW_2020/papers/w22/Gabruseva_Deep_Learning_for_Automatic_Pneumonia_Detection_CVPRW_2020_paper.pdf</a></p>",
      "votes": 2,
      "replies": []
    },
    {
      "id": 1358302,
      "author_name": "hengck23",
      "author_url": "",
      "post_date": "2021-06-20T10:47:13.290000",
      "content": "<p><img src=\"https://i.ibb.co/Y2SycDk/Selection-322.png\" alt=\"\"></p>",
      "votes": 2,
      "replies": [
        {
          "id": 1358458,
          "author_name": "Zekun",
          "author_url": "",
          "post_date": "2021-06-20T13:22:37.657000",
          "content": "<p>Hello,How can I get this picture?</p>",
          "votes": 0,
          "replies": []
        },
        {
          "id": 1358760,
          "author_name": "hengck23",
          "author_url": "",
          "post_date": "2021-06-20T17:52:43.727000",
          "content": "<p><img src=\"https://pbs.twimg.com/media/EzEYd9CW8AEQlLh?format=jpg&amp;name=large\" alt=\"https://pbs.twimg.com/media/EzEYd9CW8AEQlLh?format=jpg&amp;name=large\"></p>\n<p>Vision Transformer using Low-level Chest X-ray Feature Corpus for COVID-19 Diagnosis and Severity Quantification</p>",
          "votes": 2,
          "replies": []
        },
        {
          "id": 1358997,
          "author_name": "Zekun",
          "author_url": "",
          "post_date": "2021-06-21T01:46:33.963000",
          "content": "<p>Thanks for your ideas!</p>",
          "votes": 0,
          "replies": []
        },
        {
          "id": 1359004,
          "author_name": "hengck23",
          "author_url": "",
          "post_date": "2021-06-21T02:09:05.740000",
          "content": "<p>PCAM pooling<br>\n<img src=\"https://github.com/jfhealthcare/Chexpert/raw/master/PCAM.png\" alt=\"\"><br>\n<a href=\"https://github.com/jfhealthcare/Chexpert\" target=\"_blank\">https://github.com/jfhealthcare/Chexpert</a></p>",
          "votes": 1,
          "replies": []
        }
      ]
    },
    {
      "id": 1356643,
      "author_name": "Anii",
      "author_url": "",
      "post_date": "2021-06-19T06:11:48.620000",
      "content": "<p>In run_train.py(also in run_submit.py), there seems a bug in calculating the topk accuracy,<br>\n<code>predict = probability.argsort(-1)[::-1]</code> should be <code>predict = probability.argsort(-1)[:, ::-1]</code>? </p>",
      "votes": 2,
      "replies": [
        {
          "id": 1356693,
          "author_name": "hengck23",
          "author_url": "",
          "post_date": "2021-06-19T07:09:16.577000",
          "content": "<p>good catch.<br>\nthe same occurs in do_valid() function in run_train.py.</p>\n<p>Thanks</p>",
          "votes": 1,
          "replies": []
        },
        {
          "id": 1357541,
          "author_name": "Ioannis M",
          "author_url": "",
          "post_date": "2021-06-19T18:44:03.557000",
          "content": "<p>nice catch, <a href=\"https://www.kaggle.com/artnotintelligence\" target=\"_blank\">Anii</a> thanks!!</p>\n<p>1) BTW do you also get NaN in <code>map</code> score ?</p>\n<p>2) also a minor point in <code>run_train.py</code> (affects only the logging, code runs fine)  </p>\n<p><code>batch_loss = np.array([loss0.item(), loss1.item(), loss2.item()])</code></p>\n<p><code>loss2</code> is always 0.0 from initialisation. I guess if you want to correct it we need to add before: <br>\n<code>loss2 = loss0+loss1</code></p>",
          "votes": 1,
          "replies": []
        },
        {
          "id": 1358472,
          "author_name": "hengck23",
          "author_url": "",
          "post_date": "2021-06-20T13:40:34.503000",
          "content": "<p>after the topk bug is fixed, you will get something like:</p>\n<pre><code>   experiment = ['effb3-full-512-mask-v8', 'run_train_2.py']\n\n       |---------------- VALID -------------|---- TRAIN/BATCH -------\n epoch | loss    map   (map*0.6)  top1,2    | loss0  loss1          \n----------------------------------------------------------------------\n 0.00  | 1.412  0.257  (0.171)  0.281  0.425  | 0.000  0.000  0.000  | \n 0.16  | 1.103  0.419  (0.279)  0.597  0.755  | 1.276  0.561  0.000  | \n 0.32  | 0.994  0.464  (0.309)  0.612  0.808  | 1.096  0.396  0.000  | \n 0.48  | 1.073  0.453  (0.302)  0.585  0.779  | 1.044  0.302  0.000  | \n 0.64  | 0.925  0.505  (0.337)  0.638  0.812  | 1.045  0.258  0.000  | \n 0.80  | 0.971  0.475  (0.317)  0.634  0.794  | 1.013  0.246  0.000  | \n 0.96  | 0.940  0.488  (0.326)  0.639  0.812  | 1.055  0.232  0.000  | \n 1.13  | 0.949  0.507  (0.338)  0.639  0.815  | 0.990  0.221  0.000  | \n 1.29  | 1.013  0.502  (0.334)  0.585  0.764  | 1.017  0.224  0.000  | \n 1.45  | 0.970  0.489  (0.326)  0.631  0.813  | 0.991  0.211  0.000  | \n</code></pre>\n<p>this reveals a few tricks:</p>\n<ul>\n<li><p>map is worse than top1. this is the effect of imbalance class. map is averaged across all classes, i did not apply that for top1</p></li>\n<li><p>the probing discussion is in <a href=\"https://www.kaggle.com/c/siim-covid19-detection/discussion/244066\" target=\"_blank\">https://www.kaggle.com/c/siim-covid19-detection/discussion/244066</a>. You can obtain the prior class probability</p></li>\n<li><p>if you know how many test samples there are, you can \"de-rank\" the probabiliy. e.g <a href=\"https://www.kaggle.com/c/quickdraw-doodle-recognition/discussion/73738\" target=\"_blank\">https://www.kaggle.com/c/quickdraw-doodle-recognition/discussion/73738</a></p></li>\n</ul>\n<p>the cost of mistakes is not the same for each sample. It is more costly to make mistakes for rare classes. some kind of cost-aware loss function or post-processing may be able to improve results?</p>\n<ul>\n<li><p>top2 results are pretty good. if you want to post-process results, you may consider \"moving prediction from top2 to top1\" if the \"cost\" of this action justifies itself.</p></li>\n<li><p>one can think of more ideas if one plots some graphs to analyze the distribution of relative/absolute score of different class</p></li>\n</ul>",
          "votes": 3,
          "replies": []
        }
      ]
    },
    {
      "id": 1336213,
      "author_name": "Yibing Wu",
      "author_url": "",
      "post_date": "2021-06-04T18:05:35.833000",
      "content": "<p>There is a discussion to replace Attention with MLP. I don't know if it can be a good application here.</p>",
      "votes": 2,
      "replies": []
    },
    {
      "id": 1314181,
      "author_name": "",
      "author_url": "",
      "post_date": "2021-05-19T02:36:30.963000",
      "content": "",
      "votes": 0,
      "replies": []
    },
    {
      "id": 1462191,
      "author_name": "",
      "author_url": "",
      "post_date": "2021-08-09T18:11:05.583000",
      "content": "",
      "votes": -1,
      "replies": []
    },
    {
      "id": 1464120,
      "author_name": "",
      "author_url": "",
      "post_date": "2021-08-10T13:04:56.283000",
      "content": "",
      "votes": 0,
      "replies": []
    },
    {
      "id": 1393690,
      "author_name": "",
      "author_url": "",
      "post_date": "2021-07-19T19:54:31.270000",
      "content": "",
      "votes": 0,
      "replies": [
        {
          "id": 1393708,
          "author_name": "",
          "author_url": "",
          "post_date": "2021-07-19T20:12:59.367000",
          "content": "",
          "votes": 0,
          "replies": []
        }
      ]
    },
    {
      "id": 1379390,
      "author_name": "",
      "author_url": "",
      "post_date": "2021-07-07T10:26:39.310000",
      "content": "",
      "votes": 0,
      "replies": []
    },
    {
      "id": 1375162,
      "author_name": "",
      "author_url": "",
      "post_date": "2021-07-04T00:00:17.667000",
      "content": "",
      "votes": 0,
      "replies": []
    },
    {
      "id": 1359754,
      "author_name": "",
      "author_url": "",
      "post_date": "2021-06-21T13:53:56.010000",
      "content": "",
      "votes": 0,
      "replies": []
    },
    {
      "id": 1354831,
      "author_name": "",
      "author_url": "",
      "post_date": "2021-06-17T23:28:42.667000",
      "content": "",
      "votes": 0,
      "replies": [
        {
          "id": 1356696,
          "author_name": "",
          "author_url": "",
          "post_date": "2021-06-19T07:13:16.947000",
          "content": "",
          "votes": 0,
          "replies": []
        }
      ]
    },
    {
      "id": 1350860,
      "author_name": "",
      "author_url": "",
      "post_date": "2021-06-15T21:20:04.390000",
      "content": "",
      "votes": 0,
      "replies": []
    },
    {
      "id": 1350206,
      "author_name": "",
      "author_url": "",
      "post_date": "2021-06-15T10:45:09.393000",
      "content": "",
      "votes": 0,
      "replies": [
        {
          "id": 1350219,
          "author_name": "",
          "author_url": "",
          "post_date": "2021-06-15T11:01:46.540000",
          "content": "",
          "votes": 3,
          "replies": [
            {
              "id": 1350929,
              "author_name": "",
              "author_url": "",
              "post_date": "2021-06-15T23:44:19.817000",
              "content": "",
              "votes": 0,
              "replies": []
            }
          ]
        },
        {
          "id": 1350931,
          "author_name": "",
          "author_url": "",
          "post_date": "2021-06-15T23:56:14.127000",
          "content": "",
          "votes": 3,
          "replies": []
        },
        {
          "id": 1354133,
          "author_name": "",
          "author_url": "",
          "post_date": "2021-06-17T11:57:39.610000",
          "content": "",
          "votes": 0,
          "replies": []
        }
      ]
    },
    {
      "id": 1349430,
      "author_name": "",
      "author_url": "",
      "post_date": "2021-06-14T18:52:42.410000",
      "content": "",
      "votes": 0,
      "replies": []
    },
    {
      "id": 1347872,
      "author_name": "",
      "author_url": "",
      "post_date": "2021-06-13T14:35:12.640000",
      "content": "",
      "votes": 0,
      "replies": []
    },
    {
      "id": 1334609,
      "author_name": "",
      "author_url": "",
      "post_date": "2021-06-03T16:10:30.030000",
      "content": "",
      "votes": 0,
      "replies": []
    },
    {
      "id": 1329685,
      "author_name": "",
      "author_url": "",
      "post_date": "2021-05-31T09:52:57.157000",
      "content": "",
      "votes": 0,
      "replies": []
    },
    {
      "id": 1320282,
      "author_name": "",
      "author_url": "",
      "post_date": "2021-05-24T01:09:51.920000",
      "content": "",
      "votes": 0,
      "replies": []
    },
    {
      "id": 1319330,
      "author_name": "",
      "author_url": "",
      "post_date": "2021-05-23T05:49:00.847000",
      "content": "",
      "votes": 0,
      "replies": []
    },
    {
      "id": 1375776,
      "author_name": "",
      "author_url": "",
      "post_date": "2021-07-04T13:33:27.403000",
      "content": "",
      "votes": -1,
      "replies": []
    },
    {
      "id": 1335208,
      "author_name": "",
      "author_url": "",
      "post_date": "2021-06-04T04:52:43.490000",
      "content": "",
      "votes": 0,
      "replies": []
    },
    {
      "id": 1360192,
      "author_name": "",
      "author_url": "",
      "post_date": "2021-06-21T22:19:24.737000",
      "content": "",
      "votes": 0,
      "replies": []
    },
    {
      "id": 1359366,
      "author_name": "",
      "author_url": "",
      "post_date": "2021-06-21T08:41:59.303000",
      "content": "",
      "votes": 0,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "1314110": "Let's make this a gold starter kit!\n---\n\ni am preparing starter kit over the next few weeks.\nIf you have recommended papers or methods, please let me know. I will include it in the starter kit.\n \ngoogle drive link for code, model, train, log, etc:\nhttps://drive.google.com/drive/folders/1oXfTayH6eRG36DAKmvwVyFE5cmPR6K6W?usp=sharing\n\n---\n\nversion.1 2020-14-jun:  completed and ready for download!\n- image classification only\n- compare effects of \"segmentation as aux loss\"\n- ~~ lb-0.389 for efficienet-b3 at image size=512  (5-fold ensmeble, original+flipTTA)~~\n- ~~lb-0.396 for efficienet-b5 at image size=640 (5-fold ensmeble, original+flipTTA)~~\n\nafter rescore\n- lb-0.444 for efficienet-b3 at image size=512  (5-fold ensmeble, original+flipTTA)\n- lb-0.450 for efficienet-b5 at image size=640 (5-fold ensmeble, original+flipTTA)\n \n![](https://i.ibb.co/LkJGQmW/Selection-217.png)\n\n---\n\nversion.2:  ... in preparation ...\n- due date: 21-jun\n- ~~\"Be Your Own Teacher: Improve the Performance of Convolutional Neural Networks via Self Distillation\" - iccv 2019~~ (let me try object detection first and decide if i should focus more on image classification or object detection)\n\n\n- customize bifpn from https://github.com/rwightman/efficientdet-pytorch\n- use efficientNet v2 as backbone:  https://arxiv.org/pdf/2104.00298.pdf\n- use adversial-prop-det for training: https://arxiv.org/pdf/2103.13886.pdf\n\nreference: https://amaarora.github.io/2021/01/13/efficientdet-pytorch.html\n\n\nversion.1 shows that pure classification does not work better than one with joint aux loss.\nthe reason is overfitting\n\nhence we need to implement something like this .... \n![](https://i.ibb.co/XtywGb9/Selection-239.png)\n\n---\n\nlater version\nyolo-2021 : https://twitter.com/alexeyab84/status/1398443022619189248?s=20\n\nreference: https://www.kaggle.com/c/vinbigdata-chest-xray-abnormalities-detection/discussion/229615\n\nit would be interesting to use multi-task yolo by extracting extra labels from radiologist report in external data ...\n\n![](https://i.ibb.co/sgKhJwF/Selection-289.png)\n\n---\n\netc (random notes for myself):\n\nFB MoCo self-supervised contrastive learning?\n\ntransformers ????\n\nmeta-pseudo label adapted for detection, transMIL (transformer MIL, ranking as a \"sorted\" sequence prediction)\n\n- mAP for imbalanced class? \nRobust Deep AUC Maximization: A New Surrogate Loss and Empirical Studies on Medical Image Classification\nhttps://libauc.org/\n\nSemi-Supervised AUC Optimization without Guessing Labels of Unlabeled Data\n\n- change yolo objectiveness score to iou score\nsee https://www.kaggle.com/c/global-wheat-detection/discussion/172436\n\ntrasnformer yolo https://www.gitmemory.com/issue/ultralytics/yolov5/2329/808852867\n\nre-ranking trasnformer  for ensemble\n\nresize artificats, adversial noise \n\nConstrained Optimization to Train Neural Networks\non Critical and Under-Represented Classes\n\ntransformer hybrid: \nhttps://www.kaggle.com/bamps53/lb0-87-part-of-3rd-place-solution?scriptVersionId=65265405\nhttps://www.kaggle.com/c/bms-molecular-translation/discussion/243932\n\nhttps://brixia.github.io/\n\nwhy to convert weak segmentation ground truth (bbox) into a stronger one? ... pool most probable pixels? lung prior? read papers on the weak labels for segmentation.\n\n\n---\n\nkeys to winning\n\n- a better loss function for mAP image classification and localization (same or different one?) ...\n- someone can recommend a ranking-based loss or large margin function for mAP?\n\n- use of external data (especially  MIDRC-RICORD Data, Kaggle previous data etc)\n- small data size is one of the main problems in this challenge. Your results may be unstable (overfitting, etc) ... you need to think of a way to solve this, e.g. deep/extra supervision, augmentation \n",
    "1941002": "I really appreciate your work and thanks for sharing information",
    "1363385": "after numerous experiments:\n\n- confirmed that aux loss using the mask can improve results significantly. \nI can get local CV up to 0.39+ for single fold using different network (e.g. transformer), different pooling (attention-based, global average), different loss (lovasz, sigmoid, softamx, more weighing in aux loss, hard mining top +ve/-ve pixels etc)\n\n- freezing at fine tuning\n\n- increasing difficulty at training and fine-tuning\n\n- but it is sometimes unstable (i.e. different methods improve results for different folds/subsets. I can't find a method that improves for all cases)\n\n- this is because the mask is \"approximate\". we need a way to better refine the labeling of the pixel to mark them as indicating lung opacity/non-opacity or other.\n\n- you can think of pixels inside the box as \"likely to contain lung opacity\", but \"not all\" pixels are like that (e.g. box contains non-lung region). There is a similar argument for pixels that is outside the box. you need a pooling loss.\n\n- the number of train images is too small. Strong network overfits easily",
    "1462936": "to make this thread complete, i have updated:\n\n[1]  notebook to show interference code and results\n(My submission couldn't complete in time and hence I missed the submission deadline)\nhttps://www.kaggle.com/hengck23/final-v-00-private-public-score-0-615-0-628?scriptVersionId=70933214\n\nthis is bare minium model (only one k-fold model for study classification and one k-fold detection model)\nwith decent results\n\nPrivate Score   0.615\nPublic Score    0.628\n\n![https://i.ibb.co/pb1SB85/Selection-665.png](https://i.ibb.co/pb1SB85/Selection-665.png)\n\n---\n\n[2]  code and trained model for effcienetDet (see folder \"2021-08-11-effdet\")\nhttps://drive.google.com/drive/folders/16JzkuBpW5cwEexM5awq0wOK6t9gYLeKc\n\n\n---\n\n\n[3] more results on effcienetDet\n![https://i.ibb.co/vBr88pr/Selection-668.png](https://i.ibb.co/vBr88pr/Selection-668.png)\n\n\n",
    "1361974": "voc12 mAP computation, python code: https://github.com/Cartucho/mAP/blob/master/main.py",
    "1359014": "we love neighbors:\n- Semi-Supervised Learning of Visual Features by Non-Parametrically\nPredicting View Assignments with Support Samples\n- Many-to-One Distribution Learning and K-Nearest Neighbor Smoothing for\nThoracic Disease Identification",
    "1358761": "https://www.kaggle.com/c/siim-covid19-detection/discussion/240250\n\n\"FIGURE 7: Lung zones: proposed methodology for dividing a frontal CXR into 3 zones per lung (total of 6 zones). The upper zone extends from the apices to the superior portion of the hilum. The mid zone spans the space between the superior and inferior hilar margins. The lower zone extends from the inferior hilar margins to the costophrenic sulci.\"\n\n![](https://images.journals.lww.com/thoracicimaging/ArticleViewerPreview.00005382-202011000-00004.F7.jpeg)\n\n\nsee also:\n- Vision Transformer using Low-level Chest X-ray Feature Corpus for COVID-19 Diagnosis and Severity Quantification\n- Vision Transformer for COVID-19 CXR Diagnosis using Chest X-ray Feature Corpus\n\n\n![https://i.ibb.co/2dWFsCr/Selection-323.png](https://i.ibb.co/2dWFsCr/Selection-323.png)\n\n- Radiologic diagnosis of patients with COVID-19\n![https://i.ibb.co/LvGJQVV/Selection-324.png](https://i.ibb.co/LvGJQVV/Selection-324.png)",
    "1356561": "Note: bbox aux loss help image classification.\n\n**conversely,** 4-class image label aux loss should help opacity localization/detection.\n(you need an aux-loss yolo or efficientDet)",
    "1360751": "insprations from recent cvpr 2021\n[CVPR 2021] Background Splitting: Finding Rare Categories in a Sea of Background\n\n![https://i.ibb.co/SVKfTvG/Selection-342.png](https://i.ibb.co/SVKfTvG/Selection-342.png)",
    "1360311": "success in experiments in transformer opens up a world of new possibilities ...\ncode coming up ....",
    "1349610": "important conclusion from version.1 2020-14-jun: \n(do not take any words for granted. i encourage you to verify the claims below and discuss here)\n- baseline performance: no augmentation: CV/LB 0.34/?, add augmentation 0.36/0.38, add aux loss 0.38/0.395\n(this is based on old scoring system, where sample submission scored 0.050)\n",
    "1347120": "archive for old post \n\n----\ni am preparing starter kit over the next few weeks.\nIf you have recommended papers or methods, please let me know. I will include it in the starter kit.\n\nWhat is desired:\n\nold methods that have proved to work on xray images, etc\nnew methods that may show interesting results (e.g. transformer, weak/semi-supervised learning)\npaper that you want to understand learn, but there is no open source to verify if your understanding is correct\ntraining/inference speedup\ne.g. …\nOnce i select the method, the starter kits will include:\n\nreference code for training and inference\nintermediate trained model\nlogfile of training for reference and checking implementation, etc\nexperiment results\nsome training/hyperparameters tricks. etc\nNote: i am currently busy with kaggle BMS molecule image-text translation. I will be more active here after BMS is over\n\nthe starter kit post will be something like this: https://www.kaggle.com/c/bms-molecular-translation/discussion/231190",
    "1367336": "![https://i.ibb.co/Y7BbmCN/Selection-425.png](https://i.ibb.co/Y7BbmCN/Selection-425.png)",
    "1380600": "What is rescore?",
    "1374603": "i suddenly has an idea:\n- super-resolution as self supervsied loss for unlabelled data",
    "1366470": "In this research, we proposed an ACGAN based model\ncalled CovidGAN that generates synthetic CXR images to\nenlarge the dataset and to improve the performance of CNN\nin COVID-19 detection. The research is implemented on a\ndataset with 403 COVID-CXR images and 721 Normal-CXR\nimages\n\nhttps://arxiv.org/pdf/2103.05094.pdf",
    "1366297": "![https://i.ibb.co/xfvbwKF/Selection-393.png](https://i.ibb.co/xfvbwKF/Selection-393.png)\nhttps://www.youtube.com/channel/UCOkkljs06NPPkjNysCdQV4w/videos",
    "1366209": "channel to replace patch as token in trasnformer\nCross-Covariance Image Transformer (XCiT)\nhttps://www.youtube.com/watch?v=g08NkNWmZTA\nhttps://github.com/facebookresearch/xcit",
    "1364534": "https://arxiv.org/pdf/2106.13112.pdf\nVolo+yolo?",
    "1363356": "![https://i.ibb.co/ngYDtJM/Selection-352.png](https://i.ibb.co/ngYDtJM/Selection-352.png)\nhttps://arxiv.org/pdf/2104.10858.pdf\nAll Tokens Matter: Token Labeling for Training Better Vision Transformers",
    "1356552": "![](https://i.ibb.co/s11Vc7Q/Selection-316.png)\nhttps://www.youtube.com/watch?v=0TwZfRcqhbI&list=PL6liSIqFR4BUr7F4pL6aoucjkV3HYZ48J\nhttps://github.com/facebookresearch/unbiased-teacher\n",
    "1348118": "I tried similiar setup but my mAP at study level was lower with segmentation head. What's your score without segmentation loss?",
    "1347883": "Hi @hengck23, what was your score without the **aux loss** ?",
    "1334679": "cool just waiting for your discussion and ideas @hengck23  and starting baseline of @yasufuminakama and saturday.",
    "1319215": "Not really a method, but a good summary. Also, it mentions a way to speed up a training procedure.\n\n**CheXtransfer: Performance and Parameter Efficiency of ImageNet Models for Chest X-Ray Interpretation**\nhttps://arxiv.org/abs/2101.06871",
    "1314643": "Welcome! I will learn from you again.",
    "1359001": "lung mask:\nhttps://github.com/v7labs/covid-19-xray-dataset\nhttps://github.com/ieee8023/covid-chestxray-dataset\n\nhttps://github.com/raghavian/lungVAE\nhttps://arxiv.org/pdf/2104.05892.pdf\n\nlung opacity:\nhttps://arxiv.org/pdf/2002.02497.pdf\nhttps://github.com/mlmed/torchxrayvision\nhttps://openaccess.thecvf.com/content_CVPRW_2020/papers/w22/Gabruseva_Deep_Learning_for_Automatic_Pneumonia_Detection_CVPRW_2020_paper.pdf",
    "1358302": "![](https://i.ibb.co/Y2SycDk/Selection-322.png)",
    "1356643": "In run_train.py(also in run_submit.py), there seems a bug in calculating the topk accuracy,\n`predict = probability.argsort(-1)[::-1]` should be `predict = probability.argsort(-1)[:, ::-1]`? ",
    "1336213": "There is a discussion to replace Attention with MLP. I don't know if it can be a good application here.",
    "1314181": "It’s an honor to explore the philosophy of artificial intelligence with you on another battlefield",
    "1462191": "Do you think inputting the image with only 1 channel as opposed to 3 could increase the score? maybe decrease it? idk. personally, when i used one channel the accuracy reduced",
    "1464120": "@hengck23 Thank you for all information you shared for this competition. As a team we used your  code, ideas and implemented them. Looking forward for next \"starter kit\" discussion 👀",
    "1393690": "Nice work! I'd like to ask what is the \"00007400_model.path\" set as the initial checkpoint. As I tried the training with your original setting (efficient net_b3a) with none initial checkpoint, it reached the best point at 3200 iterations, and if I try with effnetv2, it converges faster, around 600 iterations. ",
    "1379390": "hi \nwhy use efficientnet first 6 layers out put as mask to calculate aux loss?\nHow do you know use 6 layer output rather than 7 layer output?\n",
    "1375162": "hiii i tried your started kit its so good i was able to train but having problems while submission i mean how to get in on kaggle i trained on my system i need to submit in kaggle can u help please",
    "1359754": "Do you expect the multi-task model to work better than the models that solve each task (OD, clf)?",
    "1354831": "Great work. I'll try the aux loss.",
    "1350860": "Very nice work!! Do you think it would be helpful to remove / not calculate loss for the classification head of the EfficientDet since there is basically only one class in the detection part? And did you implement this model in your Google Drive?",
    "1350206": "Hey thank you for your code, could you enlighten me about \"mask\" ? I've seen in your code that your network has a second head for it and that you calculate an auxiliary loss with it, but I don't know what mask is supposed to be? The boxes from the train datas ?",
    "1349430": "How are you generating the segmentation masks for the dataset ?",
    "1347872": "Hello,how can I see the picture?",
    "1334609": "Cool. Expect👀",
    "1329685": "[SWALP](https://pytorch.org/blog/stochastic-weight-averaging-in-pytorch/#low-precision-training) sounds interesting but most materials are quite old(correct me if I was wrong), I can hardly find any codebase that uses this technique in object detection. For users with limited GPU resource people like me, this is the first thing comes out of my mind ;) ",
    "1320282": "🐸迟但到........",
    "1319330": "Wow, Can't wait to learn more!",
    "1375776": "",
    "1335208": "",
    "1360192": "thanks for sharing",
    "1359366": "so cool thank u"
  }
}