{
  "id": 333631,
  "title": "CV vs LB  ",
  "url": "/competitions/hubmap-organ-segmentation/discussion/333631",
  "author_name": "shiroe",
  "post_date": "2022-06-27T13:57:42.223000",
  "votes": 41,
  "comment_count": 59,
  "views": 0,
  "content": "<p>I know it's a bit early but every competition needs one so here it goes :)<br>\nModel:- Unet+effiecentnet-b0<br>\nsingle fold cv:-0.79291 <br>\nsingle fold lb (no TTA):- 0.59</p>",
  "messages": [
    {
      "id": 1835135,
      "postDate": "2022-06-27T13:57:42.223Z",
      "content": "<p>I know it's a bit early but every competition needs one so here it goes :)<br>\nModel:- Unet+effiecentnet-b0<br>\nsingle fold cv:-0.79291 <br>\nsingle fold lb (no TTA):- 0.59</p>",
      "rawMarkdown": "I know it's a bit early but every competition needs one so here it goes :)\nModel:- Unet+effiecentnet-b0\nsingle fold cv:-0.79291 \nsingle fold lb (no TTA):- 0.59",
      "votes": 41
    },
    {
      "id": 1838907,
      "postDate": "2022-07-01T01:47:32.870Z",
      "content": "<p>information needed to split LB-public into LB-public-Hubmap and LB-public-HPA </p>\n<p>\"roughly 550 test images \"<br>\nthere are exactly 529 test images, of which Hubmap=448, HPA=81</p>\n<p>public test : 55% of the test data()<br>\n291 --&gt; Hubmap=210 (0.7216), HPA=81 (0.2783)</p>\n<p>private test = 45%<br>\n238--&gt; Hubmap= 238</p>",
      "rawMarkdown": "information needed to split LB-public into LB-public-Hubmap and LB-public-HPA \n\n\n\"roughly 550 test images \"\nthere are exactly 529 test images, of which Hubmap=448, HPA=81\n\npublic test : 55% of the test data()\n291 --> Hubmap=210 (0.7216), HPA=81 (0.2783)\n\nprivate test = 45%\n238--> Hubmap= 238\n\n\n",
      "votes": 13,
      "replies": [
        {
          "id": 1842359,
          "postDate": "2022-07-04T00:01:19.673Z",
          "content": "<p>as an example public submission:</p>\n<pre><code>all = 0.56\nHPA = 0.19  (set rle='' for data_source != HPA)\nHubmap = 0.36 (set rle='' for data_source != Hubmap)\n#\nHPA x num of public / num of HPA \n= 0.19*291 / 81\n= 0.6825925925925925\nlocal CV is 0.666\n#\nHubmap x num of public / num of Hubmap \n= 0.36*291 / 210\n= 0.49885714285714283\n#\napproximate HPA and Hubmap domain intersection\n= 0.4988/0.68259 = 0.73 ... is this a stable ratio ???\n</code></pre>\n<p>it seems that i need to further break down score into organs to fault find the weakness.<br>\nAlso, we do not know how finetuning threshold on HPA will affect Hubmap. need to probe this too!</p>",
          "rawMarkdown": "\nas an example public submission:\n\n```\nall = 0.56\nHPA = 0.19  (set rle='' for data_source != HPA)\nHubmap = 0.36 (set rle='' for data_source != Hubmap)\n\n#\n\nHPA x num of public / num of HPA \n= 0.19*291 / 81\n= 0.6825925925925925\n\nlocal CV is 0.666\n\n#\n\nHubmap x num of public / num of Hubmap \n= 0.36*291 / 210\n= 0.49885714285714283\n\n#\n\napproximate HPA and Hubmap domain intersection\n= 0.4988/0.68259 = 0.73 ... is this a stable ratio ???\n ```\n\nit seems that i need to further break down score into organs to fault find the weakness.\nAlso, we do not know how finetuning threshold on HPA will affect Hubmap. need to probe this too!",
          "votes": 4
        }
      ]
    },
    {
      "id": 1835768,
      "postDate": "2022-06-28T04:10:27.663Z",
      "content": "<p>You should make 2 submissions. One that only predicts mask for HPA and one that only predicts mask for HuBMAP. Then you can compute two LB scores and compare both LB scores to your CV score. My guess is that your HPA public LB score is closer to your CV score than your HuBMAP public LB score.</p>",
      "rawMarkdown": "You should make 2 submissions. One that only predicts mask for HPA and one that only predicts mask for HuBMAP. Then you can compute two LB scores and compare both LB scores to your CV score. My guess is that your HPA public LB score is closer to your CV score than your HuBMAP public LB score.",
      "votes": 9,
      "replies": [
        {
          "id": 1835769,
          "postDate": "2022-06-28T04:12:17.370Z",
          "content": "<p>See this post <a href=\"https://www.kaggle.com/competitions/hubmap-organ-segmentation/discussion/332941#1832268\" target=\"_blank\">here</a> for more info</p>",
          "rawMarkdown": "See this post [here][1] for more info\n\n[1]: https://www.kaggle.com/competitions/hubmap-organ-segmentation/discussion/332941#1832268",
          "votes": 1
        },
        {
          "id": 1857888,
          "postDate": "2022-07-16T13:22:59.810Z",
          "content": "<p>What's the point of predicting non-HuBMAP images? They won't be in the private dataset anyway.</p>",
          "rawMarkdown": "What's the point of predicting non-HuBMAP images? They won't be in the private dataset anyway.",
          "votes": 2
        }
      ]
    },
    {
      "id": 1877615,
      "postDate": "2022-07-30T20:59:12.623Z",
      "content": "<ul>\n<li>fold_4 out of 5 fold</li>\n<li>local: 0.81</li>\n<li>lb: 0.73<br>\nkidney : 0.94<br>\nprostate : 0.81<br>\nlargeintestine : 0.92<br>\nspleen : 0.84<br>\nlung : 0.38<br>\n<a href=\"https://www.kaggle.com/code/w3579628328/multi-class-mmsegmentation-training\" target=\"_blank\">mmsegmentation</a></li>\n</ul>",
      "rawMarkdown": "* fold_4 out of 5 fold\n* local: 0.81\n* lb: 0.73\nkidney : 0.94\nprostate : 0.81\nlargeintestine : 0.92\nspleen : 0.84\nlung : 0.38\n[mmsegmentation](https://www.kaggle.com/code/w3579628328/multi-class-mmsegmentation-training)",
      "votes": 5,
      "replies": [
        {
          "id": 1886751,
          "postDate": "2022-08-06T06:08:02.357Z",
          "content": "<p>Nice work! Did you use multi-class segmentation or single-class segmentation?</p>",
          "rawMarkdown": "Nice work! Did you use multi-class segmentation or single-class segmentation?"
        },
        {
          "id": 1886841,
          "postDate": "2022-08-06T07:40:02.710Z",
          "content": "<p>multi-class</p>",
          "rawMarkdown": "multi-class"
        }
      ]
    },
    {
      "id": 1919519,
      "postDate": "2022-08-30T13:26:07.200Z",
      "content": "<p>DeeplabV3 with EfficientNetB4<br>\nCV: 0.863 (out of folds, over 4 folds)<br>\nLB: 0.79 (minimal threshold tweaking)</p>",
      "rawMarkdown": "DeeplabV3 with EfficientNetB4\nCV: 0.863 (out of folds, over 4 folds)\nLB: 0.79 (minimal threshold tweaking)",
      "votes": 3,
      "replies": [
        {
          "id": 1919722,
          "postDate": "2022-08-30T16:22:49.213Z",
          "content": "<p>Congrats <a href=\"https://www.kaggle.com/jamesphoward\" target=\"_blank\">@jamesphoward</a>, what do you mean by \"minimal threshold tweaking\"?<br>\nis this a single fold result? <br>\nwhich loss function did you use?</p>\n<p>Im really sorry for bombarding with so many questions 😅</p>",
          "rawMarkdown": "Congrats @jamesphoward, what do you mean by \"minimal threshold tweaking\"?\nis this a single fold result? \nwhich loss function did you use?\n\nIm really sorry for bombarding with so many questions 😅"
        },
        {
          "id": 1919737,
          "postDate": "2022-08-30T16:33:40.950Z",
          "content": "<p>This is 4 folds, BCE loss, and I just completely guessed thresholds and haven't optimised them (I picked 0.1 for lung, other organs I used 0.5 for HPA and 0.2 for hubmap).</p>",
          "rawMarkdown": "This is 4 folds, BCE loss, and I just completely guessed thresholds and haven't optimised them (I picked 0.1 for lung, other organs I used 0.5 for HPA and 0.2 for hubmap).",
          "votes": 3
        },
        {
          "id": 1919752,
          "postDate": "2022-08-30T16:45:18.060Z",
          "content": "<p>Thank you so much for the reply, btw why are you using MSE loss, isn't semantic segmentation a pixel level classification problem, then why mean square error[regression loss], instead of BCE/log loss etc? please correct me if im wrong here</p>",
          "rawMarkdown": "Thank you so much for the reply, btw why are you using MSE loss, isn't semantic segmentation a pixel level classification problem, then why mean square error[regression loss], instead of BCE/log loss etc? please correct me if im wrong here"
        },
        {
          "id": 1919756,
          "postDate": "2022-08-30T16:49:31.600Z",
          "content": "<p>Sorry, that was a typo! I meant BCE and wasn't concentrating…</p>",
          "rawMarkdown": "Sorry, that was a typo! I meant BCE and wasn't concentrating...",
          "votes": 1
        },
        {
          "id": 1919762,
          "postDate": "2022-08-30T16:54:59.100Z",
          "content": "<p>I got scared watching that lol😂. btw, no auxiliary loss?<br>\nwhat did you use to ensemble those 4folds?</p>",
          "rawMarkdown": "I got scared watching that lol😂. btw, no auxiliary loss?\nwhat did you use to ensemble those 4folds?"
        },
        {
          "id": 1919768,
          "postDate": "2022-08-30T16:58:01.857Z",
          "content": "<p>No aux loss, although I do use 4x TTA.<br>\nI just summate the prediction maps and then divine them by the number of predictions (ie take a simple pixel-wise average).</p>",
          "rawMarkdown": "No aux loss, although I do use 4x TTA.\nI just summate the prediction maps and then divine them by the number of predictions (ie take a simple pixel-wise average).",
          "votes": 1
        },
        {
          "id": 1919781,
          "postDate": "2022-08-30T17:03:10.230Z",
          "content": "<p>really appreciate you sharing the details. all the best with the competition. </p>",
          "rawMarkdown": "really appreciate you sharing the details. all the best with the competition. "
        },
        {
          "id": 1920075,
          "postDate": "2022-08-30T21:27:18.783Z",
          "content": "<p>Are you using whole images then resize or tiled images</p>",
          "rawMarkdown": "Are you using whole images then resize or tiled images"
        }
      ]
    },
    {
      "id": 1856203,
      "postDate": "2022-07-15T07:19:33.937Z",
      "content": "<p>Unet2D 32x64x128x256x320<br>\n5 Fold CV - 0.748672<br>\nLB - 0.44 🙄 (Whyy?)</p>",
      "rawMarkdown": "Unet2D 32x64x128x256x320\n5 Fold CV - 0.748672\nLB - 0.44 🙄 (Whyy?)",
      "votes": 3,
      "replies": [
        {
          "id": 1856230,
          "postDate": "2022-07-15T07:47:08.733Z",
          "content": "<p>I'd strongly suggest you visualise your prediction on the single test image before submitting the notebook. You'll be surprised by how bad your model is on HuBMAP data, I suspect…</p>",
          "rawMarkdown": "I'd strongly suggest you visualise your prediction on the single test image before submitting the notebook. You'll be surprised by how bad your model is on HuBMAP data, I suspect...",
          "votes": 6
        },
        {
          "id": 1856233,
          "postDate": "2022-07-15T07:48:30.330Z",
          "content": "<p>That's what I observed as well. Annotation seems all over the place</p>",
          "rawMarkdown": "That's what I observed as well. Annotation seems all over the place"
        },
        {
          "id": 1856310,
          "postDate": "2022-07-15T08:59:00.323Z",
          "content": "<p>I suffer from the same thing. I trained a very simple unet model with efficientnet b0 encoder and my oof dice score is 0.721, but my leaderboard score is 0.19 lol. These are detailed scores of my model. </p>\n<pre><code>\"out_of_fold\": {\n    \"global\": {\n      \"sample_count\": 351,\n      \"dice_coefficient\": {\n        \"mean\": 0.7210908048892115,\n        \"std\": 0.3087503658863055,\n        \"min\": 1.2499843751796857e-11,\n        \"max\": 0.9726454699260181\n      },\n      \"intersection_over_union\": {\n        \"mean\": 0.6343560812096684,\n        \"std\": 0.29665165227558893,\n        \"min\": 1.2499843751796857e-11,\n        \"max\": 0.9467476333193632\n      }\n    },\n    \"organs\": {\n      \"sample_count\": {\n        \"kidney\": 99,\n        \"largeintestine\": 58,\n        \"lung\": 48,\n        \"prostate\": 93,\n        \"spleen\": 53\n      },\n      \"dice_coefficient\": {\n        \"kidney\": {\n          \"mean\": 0.8977391601781795,\n          \"std\": 0.06643440652731449,\n          \"min\": 0.6370120607597658,\n          \"max\": 0.9726454699260181\n        },\n        \"largeintestine\": {\n          \"mean\": 0.8625815659109379,\n          \"std\": 0.11012129876516484,\n          \"min\": 0.15504884979521794,\n          \"max\": 0.9557906152153275\n        },\n        \"lung\": {\n          \"mean\": 0.04145343110662958,\n          \"std\": 0.11725142416682333,\n          \"min\": 1.2499843751796857e-11,\n          \"max\": 0.6145009488394847\n        },\n        \"prostate\": {\n          \"mean\": 0.7947290161557055,\n          \"std\": 0.17756911704942144,\n          \"min\": 0.20619881455300634,\n          \"max\": 0.9563853043455539\n        },\n        \"spleen\": {\n          \"mean\": 0.7225924837743438,\n          \"std\": 0.1843539475344702,\n          \"min\": 0.01800969580417568,\n          \"max\": 0.912698279695554\n        }\n      },\n      \"intersection_over_union\": {\n        \"kidney\": {\n          \"mean\": 0.820414463802119,\n          \"std\": 0.10031296950970611,\n          \"min\": 0.46736441498780357,\n          \"max\": 0.9467476333193632\n        },\n        \"largeintestine\": {\n          \"mean\": 0.7698824870675187,\n          \"std\": 0.12350442742012406,\n          \"min\": 0.08403954206806587,\n          \"max\": 0.9153246744786364\n        },\n        \"lung\": {\n          \"mean\": 0.025768105153562062,\n          \"std\": 0.07890517684618706,\n          \"min\": 1.2499843751796857e-11,\n          \"max\": 0.44352318275512714\n        },\n        \"prostate\": {\n          \"mean\": 0.6900000001631348,\n          \"std\": 0.21192072949716861,\n          \"min\": 0.11495076278942798,\n          \"max\": 0.9164160952582849\n        },\n        \"spleen\": {\n          \"mean\": 0.5920358353910417,\n          \"std\": 0.18949636140025228,\n          \"min\": 0.009086672020481157,\n          \"max\": 0.839415833390244\n        }\n      }\n    }\n  }\n}\n</code></pre>\n<p>This is my model's prediction on one test sample. It looks pretty bad right now. I think I have to add some transforms because model is not generalizing at all.</p>\n<p><img src=\"https://i.ibb.co/2ZBjJ46/Screenshot-from-2022-07-15-11-48-44.png\" alt=\"test\"></p>",
          "rawMarkdown": "I suffer from the same thing. I trained a very simple unet model with efficientnet b0 encoder and my oof dice score is 0.721, but my leaderboard score is 0.19 lol. These are detailed scores of my model. \n\n```\n\"out_of_fold\": {\n    \"global\": {\n      \"sample_count\": 351,\n      \"dice_coefficient\": {\n        \"mean\": 0.7210908048892115,\n        \"std\": 0.3087503658863055,\n        \"min\": 1.2499843751796857e-11,\n        \"max\": 0.9726454699260181\n      },\n      \"intersection_over_union\": {\n        \"mean\": 0.6343560812096684,\n        \"std\": 0.29665165227558893,\n        \"min\": 1.2499843751796857e-11,\n        \"max\": 0.9467476333193632\n      }\n    },\n    \"organs\": {\n      \"sample_count\": {\n        \"kidney\": 99,\n        \"largeintestine\": 58,\n        \"lung\": 48,\n        \"prostate\": 93,\n        \"spleen\": 53\n      },\n      \"dice_coefficient\": {\n        \"kidney\": {\n          \"mean\": 0.8977391601781795,\n          \"std\": 0.06643440652731449,\n          \"min\": 0.6370120607597658,\n          \"max\": 0.9726454699260181\n        },\n        \"largeintestine\": {\n          \"mean\": 0.8625815659109379,\n          \"std\": 0.11012129876516484,\n          \"min\": 0.15504884979521794,\n          \"max\": 0.9557906152153275\n        },\n        \"lung\": {\n          \"mean\": 0.04145343110662958,\n          \"std\": 0.11725142416682333,\n          \"min\": 1.2499843751796857e-11,\n          \"max\": 0.6145009488394847\n        },\n        \"prostate\": {\n          \"mean\": 0.7947290161557055,\n          \"std\": 0.17756911704942144,\n          \"min\": 0.20619881455300634,\n          \"max\": 0.9563853043455539\n        },\n        \"spleen\": {\n          \"mean\": 0.7225924837743438,\n          \"std\": 0.1843539475344702,\n          \"min\": 0.01800969580417568,\n          \"max\": 0.912698279695554\n        }\n      },\n      \"intersection_over_union\": {\n        \"kidney\": {\n          \"mean\": 0.820414463802119,\n          \"std\": 0.10031296950970611,\n          \"min\": 0.46736441498780357,\n          \"max\": 0.9467476333193632\n        },\n        \"largeintestine\": {\n          \"mean\": 0.7698824870675187,\n          \"std\": 0.12350442742012406,\n          \"min\": 0.08403954206806587,\n          \"max\": 0.9153246744786364\n        },\n        \"lung\": {\n          \"mean\": 0.025768105153562062,\n          \"std\": 0.07890517684618706,\n          \"min\": 1.2499843751796857e-11,\n          \"max\": 0.44352318275512714\n        },\n        \"prostate\": {\n          \"mean\": 0.6900000001631348,\n          \"std\": 0.21192072949716861,\n          \"min\": 0.11495076278942798,\n          \"max\": 0.9164160952582849\n        },\n        \"spleen\": {\n          \"mean\": 0.5920358353910417,\n          \"std\": 0.18949636140025228,\n          \"min\": 0.009086672020481157,\n          \"max\": 0.839415833390244\n        }\n      }\n    }\n  }\n}\n```\nThis is my model's prediction on one test sample. It looks pretty bad right now. I think I have to add some transforms because model is not generalizing at all.\n\n![test](https://i.ibb.co/2ZBjJ46/Screenshot-from-2022-07-15-11-48-44.png)",
          "votes": 3
        },
        {
          "id": 1856329,
          "postDate": "2022-07-15T09:20:59.353Z",
          "content": "<p>One thing I don't really understand is why <a href=\"https://www.kaggle.com/thedevastator\" target=\"_blank\">@thedevastator</a> 's models do SO well at the test data in comparison with many others. His training notebook doesn't do anything that exotic, but the models generalise excellently.</p>",
          "rawMarkdown": "One thing I don't really understand is why @thedevastator 's models do SO well at the test data in comparison with many others. His training notebook doesn't do anything that exotic, but the models generalise excellently.",
          "votes": 7
        },
        {
          "id": 1856333,
          "postDate": "2022-07-15T09:25:26.400Z",
          "content": "<p>I suggest checking LB on only HubMap data</p>",
          "rawMarkdown": "I suggest checking LB on only HubMap data"
        },
        {
          "id": 1856343,
          "postDate": "2022-07-15T09:30:32.377Z",
          "rawMarkdown": "",
          "isDeleted": true
        },
        {
          "id": 1856344,
          "postDate": "2022-07-15T09:33:47.660Z",
          "content": "<p>One thing I do know is if my CV increases, my LB also increases. We don't have access to labelled Hubmap data so I think we have to rely on heavy augmentation</p>",
          "rawMarkdown": "One thing I do know is if my CV increases, my LB also increases. We don't have access to labelled Hubmap data so I think we have to rely on heavy augmentation",
          "votes": 1
        },
        {
          "id": 1856418,
          "postDate": "2022-07-15T10:31:33.173Z",
          "content": "<p><a href=\"https://www.kaggle.com/jamesphoward\" target=\"_blank\">@jamesphoward</a> I think the public baseline is not reliable. I tried breaking it with different sizes, params, models etc and most of the time I was able to get <code>nan</code> as loss. <br>\nfor 0.64 score, I would say it was luck with right combinations. even if you use 512x512 images, it will fail.</p>",
          "rawMarkdown": "@jamesphoward I think the public baseline is not reliable. I tried breaking it with different sizes, params, models etc and most of the time I was able to get `nan` as loss. \nfor 0.64 score, I would say it was luck with right combinations. even if you use 512x512 images, it will fail.",
          "votes": 4
        },
        {
          "id": 1856423,
          "postDate": "2022-07-15T10:33:45.300Z",
          "content": "<p><a href=\"https://www.kaggle.com/gunesevitan\" target=\"_blank\">@gunesevitan</a> are you using <code>segmentation_models_pytorch</code>? because I had the same results using it. I will recommend try the same with <code>b7</code>. more better would be if you implement it by yourself.<br>\nI believe this competition is more data oriented than models.</p>",
          "rawMarkdown": "@gunesevitan are you using `segmentation_models_pytorch`? because I had the same results using it. I will recommend try the same with `b7`. more better would be if you implement it by yourself.\nI believe this competition is more data oriented than models.",
          "votes": 1
        },
        {
          "id": 1856425,
          "postDate": "2022-07-15T10:34:57.367Z",
          "content": "<p>I agree, but if you visualise <a href=\"https://www.kaggle.com/thedevastator\" target=\"_blank\">@thedevastator</a> 's models predictions on the public test image it makes much much better predictions (they look like FTUs rather than random blobs) than similar models I have trained with similar parameters and augmentations.</p>",
          "rawMarkdown": "I agree, but if you visualise @thedevastator 's models predictions on the public test image it makes much much better predictions (they look like FTUs rather than random blobs) than similar models I have trained with similar parameters and augmentations."
        },
        {
          "id": 1856537,
          "postDate": "2022-07-15T12:01:15.160Z",
          "rawMarkdown": "",
          "isDeleted": true
        },
        {
          "id": 1856553,
          "postDate": "2022-07-15T12:20:04.900Z",
          "rawMarkdown": "",
          "isDeleted": true
        },
        {
          "id": 1861328,
          "postDate": "2022-07-19T01:14:04.657Z",
          "content": "<p>same thing. +1. dont know why.</p>",
          "rawMarkdown": "same thing. +1. dont know why."
        },
        {
          "id": 1862752,
          "postDate": "2022-07-20T01:31:41.133Z",
          "content": "<p>Update:<br>\nSame model<br>\nInsane Augmentation in attempts to close the domain differences gap<br>\nCV: 0.77809<br>\nLB: 0.65 (0.44 Hubmap + 0.21 HPA)<br>\nStill pretty large gap compared to <a href=\"https://www.kaggle.com/hengck23\" target=\"_blank\">@hengck23</a> <br>\n<img src=\"https://www.kaggleusercontent.com/kf/101271481/eyJhbGciOiJkaXIiLCJlbmMiOiJBMTI4Q0JDLUhTMjU2In0..w3aDWFam2PgY7arJAMxVIw.R2pzGthO6Quigj_oEN2Ly1Iz2KVJNjYYVwgvDwHb8cV3JocO-hpf6tu4A98D05LvNNl-hea2aifzqA8CHSkNNFFjkUo8YXpoX-nuapuUVbPFKSb7MaX_o6_ZnLvpN3QnEWIHghu4oYmDquADtjdvd6j66MzNP0Bw99GMaLF9ttSVQaJK62oiOTlOTy9dahpCBPQYRC19IEKdzUiyMzOmJRKtJsbGf_23LbqI-eiK-HEFt6g0dKajUw7MXt8QFGUpPq2mdIIsgns3PTHYw8XM1Rkrr6Kp6Rfw-dCCyH82DIvGziMat299SP0CREvjcuv7rS1tIdCZ9gSlQzzbsXManj9Vi0UA_IbSuAvYrdtZ_a0XqPd1i90tLMl7OgVBFOx98u75yRGp6oLMehgzjihHMwTxcqZ8CHtZnrf-KRYEJmzKhdO9T53PA84cS9VhWiY-xUnxiEpGFIzBW7O8RNWhMAmvJl4da6tnOaP7DDfigMqZCNb7rJbS5KLSMOeDuCTOV73YaYmXRxY4SiQnoCZ_8h4pyo1ffvq9ng3cCTU0xTsDmxLtC7sfvL5cqJrBz4go5u8YKo8Z5ZRHOZfq28l8sWrARzSqvTDagJZFZmeRW3-o5WO6NMwNm3y0V6jMs15qj3rh5LKoE9XXPoxixzqgl0nrPZhFHvTJDJifGSqzLsuiopf-iYqmn-6rFEmpuIYU.tPjoJ3-0hEFkAdQNKEPyHA/__results___files/__results___12_0.png\" alt=\"\"></p>",
          "rawMarkdown": "Update:\nSame model\nInsane Augmentation in attempts to close the domain differences gap\nCV: 0.77809\nLB: 0.65 (0.44 Hubmap + 0.21 HPA)\nStill pretty large gap compared to @hengck23 \n![](https://www.kaggleusercontent.com/kf/101271481/eyJhbGciOiJkaXIiLCJlbmMiOiJBMTI4Q0JDLUhTMjU2In0..w3aDWFam2PgY7arJAMxVIw.R2pzGthO6Quigj_oEN2Ly1Iz2KVJNjYYVwgvDwHb8cV3JocO-hpf6tu4A98D05LvNNl-hea2aifzqA8CHSkNNFFjkUo8YXpoX-nuapuUVbPFKSb7MaX_o6_ZnLvpN3QnEWIHghu4oYmDquADtjdvd6j66MzNP0Bw99GMaLF9ttSVQaJK62oiOTlOTy9dahpCBPQYRC19IEKdzUiyMzOmJRKtJsbGf_23LbqI-eiK-HEFt6g0dKajUw7MXt8QFGUpPq2mdIIsgns3PTHYw8XM1Rkrr6Kp6Rfw-dCCyH82DIvGziMat299SP0CREvjcuv7rS1tIdCZ9gSlQzzbsXManj9Vi0UA_IbSuAvYrdtZ_a0XqPd1i90tLMl7OgVBFOx98u75yRGp6oLMehgzjihHMwTxcqZ8CHtZnrf-KRYEJmzKhdO9T53PA84cS9VhWiY-xUnxiEpGFIzBW7O8RNWhMAmvJl4da6tnOaP7DDfigMqZCNb7rJbS5KLSMOeDuCTOV73YaYmXRxY4SiQnoCZ_8h4pyo1ffvq9ng3cCTU0xTsDmxLtC7sfvL5cqJrBz4go5u8YKo8Z5ZRHOZfq28l8sWrARzSqvTDagJZFZmeRW3-o5WO6NMwNm3y0V6jMs15qj3rh5LKoE9XXPoxixzqgl0nrPZhFHvTJDJifGSqzLsuiopf-iYqmn-6rFEmpuIYU.tPjoJ3-0hEFkAdQNKEPyHA/__results___files/__results___12_0.png)",
          "votes": 1
        },
        {
          "id": 1874511,
          "postDate": "2022-07-28T10:23:50.813Z",
          "content": "<p>hey <a href=\"https://www.kaggle.com/quandapro\" target=\"_blank\">@quandapro</a> How did you break the LB score into 2 parts? I can only get a total score and I'm facing exactly the same issue like you. I still can't to beat the public kernel score (0.56) with my customized training.</p>",
          "rawMarkdown": "hey @quandapro How did you break the LB score into 2 parts? I can only get a total score and I'm facing exactly the same issue like you. I still can't to beat the public kernel score (0.56) with my customized training."
        },
        {
          "id": 1875389,
          "postDate": "2022-07-29T01:38:06.690Z",
          "content": "<p><a href=\"https://www.kaggle.com/fuckvenkatraman\" target=\"_blank\">@fuckvenkatraman</a> do 2 runs: </p>\n<ul>\n<li>Run normally to get full score</li>\n<li>Set RLE of HPA images to empty to get Hubmap scores</li>\n</ul>\n<p>Hope that helps. </p>",
          "rawMarkdown": "@fuckvenkatraman do 2 runs: \n- Run normally to get full score\n- Set RLE of HPA images to empty to get Hubmap scores\n\nHope that helps. ",
          "votes": 1
        },
        {
          "id": 1886753,
          "postDate": "2022-08-06T06:09:20.337Z",
          "content": "<p>I will try you advice for my work, i suppose it will help me a lot.</p>",
          "rawMarkdown": "I will try you advice for my work, i suppose it will help me a lot."
        },
        {
          "id": 1886979,
          "postDate": "2022-08-06T10:26:10.787Z",
          "content": "<p><a href=\"https://www.kaggle.com/quandapro\" target=\"_blank\">@quandapro</a> i am new to competition, in the default data given we have got only HPA,from where we get the HubMap</p>",
          "rawMarkdown": "@quandapro i am new to competition, in the default data given we have got only HPA,from where we get the HubMap"
        },
        {
          "id": 1929488,
          "postDate": "2022-09-07T05:29:59.077Z",
          "content": "<p>Hi <a href=\"https://www.kaggle.com/gunesevitan\" target=\"_blank\">@gunesevitan</a> , I suffered the same problem as you, cv: 0.82 lb 0.36. Have you solved the issue? Could you please provide some hints on how you solved it? Thanks.</p>",
          "rawMarkdown": "Hi @gunesevitan , I suffered the same problem as you, cv: 0.82 lb 0.36. Have you solved the issue? Could you please provide some hints on how you solved it? Thanks.",
          "votes": 1
        },
        {
          "id": 1930261,
          "postDate": "2022-09-07T17:19:48.307Z",
          "content": "<p>I forgot to transpose while submitting</p>",
          "rawMarkdown": "I forgot to transpose while submitting"
        }
      ]
    },
    {
      "id": 1839460,
      "postDate": "2022-07-01T12:31:37.733Z",
      "content": "<p>I think for a proper CV strategy we need HubMap data too otherwise we are simply training it on HPA data and LB is mostly HubMap. that is why our CV is high but LB is low. <br>\nbtw my CV is 0.84 and LB is 0.56 😄</p>",
      "rawMarkdown": "I think for a proper CV strategy we need HubMap data too otherwise we are simply training it on HPA data and LB is mostly HubMap. that is why our CV is high but LB is low. \nbtw my CV is 0.84 and LB is 0.56 😄",
      "votes": 1,
      "replies": [
        {
          "id": 1839478,
          "postDate": "2022-07-01T13:03:12.437Z",
          "content": "<p>I agree, did an quick experiment in which i used model to predict only HPA and if HubMap then predict a circle LB was 0.51</p>",
          "rawMarkdown": "I agree, did an quick experiment in which i used model to predict only HPA and if HubMap then predict a circle LB was 0.51",
          "votes": 1
        },
        {
          "id": 1849526,
          "postDate": "2022-07-09T15:50:04.590Z",
          "content": "<p>Do we know the HuBMAP data will be circles? I wonder if that's unique to HPA…</p>",
          "rawMarkdown": "Do we know the HuBMAP data will be circles? I wonder if that's unique to HPA..."
        },
        {
          "id": 1849846,
          "postDate": "2022-07-09T21:56:54.580Z",
          "content": "<p>in last years challenge there have been no circular specimen in the hubmap data. In this years test data (1 hubmap image) it also does not appear to be round as well.<br>\nThere are 81 HPA images in the test data, which probably achieve a better score with round masks.</p>",
          "rawMarkdown": "in last years challenge there have been no circular specimen in the hubmap data. In this years test data (1 hubmap image) it also does not appear to be round as well.\nThere are 81 HPA images in the test data, which probably achieve a better score with round masks."
        }
      ]
    },
    {
      "id": 1849216,
      "postDate": "2022-07-09T10:07:17.933Z",
      "content": "<p>Efficientnet b4, unet, bce/dice (Combo loss)<br>\nSingle Fold CV 0.76 macro dice, containing 3x 0 dice because of lung. Median is 0.88.<br>\nSingle Fold LB 0.66 </p>",
      "rawMarkdown": "Efficientnet b4, unet, bce/dice (Combo loss)\nSingle Fold CV 0.76 macro dice, containing 3x 0 dice because of lung. Median is 0.88.\nSingle Fold LB 0.66 ",
      "votes": 2,
      "replies": [
        {
          "id": 1850225,
          "postDate": "2022-07-10T08:21:34.963Z",
          "content": "<p>Single Model Efficientnet-b5:<br>\nMean Macro F1: 0.75, Median Macro F1 0.89<br>\nLB: 0.69</p>",
          "rawMarkdown": "Single Model Efficientnet-b5:\nMean Macro F1: 0.75, Median Macro F1 0.89\nLB: 0.69",
          "votes": 2
        },
        {
          "id": 1857850,
          "postDate": "2022-07-16T12:55:58.257Z",
          "content": "<p>Did you use the tiles images to training? and what's your CV datasets? I use efficientnet b1 got CV 0.83 but LB only 0.24…😭</p>",
          "rawMarkdown": "Did you use the tiles images to training? and what's your CV datasets? I use efficientnet b1 got CV 0.83 but LB only 0.24...😭",
          "votes": 1
        },
        {
          "id": 1857914,
          "postDate": "2022-07-16T13:58:11.043Z",
          "content": "<p>\"CV 0.83 but LB only 0.24\"</p>\n<p>most likely it is due to:</p>\n<p>\"All HPA images have a pixel size of 0.4 µm. For HuBMAP imagery the pixel size is 0.5 µm for kidney, 0.2290 µm for large intestine, 0.7562 µm for lung, 0.4945 µm for spleen, and 6.263 µm for prostate.\"</p>\n<p>you can verify by making separate submission for HuBMAP and HPA</p>",
          "rawMarkdown": "\"CV 0.83 but LB only 0.24\"\n\nmost likely it is due to:\n\n\"All HPA images have a pixel size of 0.4 µm. For HuBMAP imagery the pixel size is 0.5 µm for kidney, 0.2290 µm for large intestine, 0.7562 µm for lung, 0.4945 µm for spleen, and 6.263 µm for prostate.\"\n\nyou can verify by making separate submission for HuBMAP and HPA",
          "votes": 6
        },
        {
          "id": 1858158,
          "postDate": "2022-07-16T17:52:28.880Z",
          "content": "<p>Oh i dont adjust for pixel size (yet), my micro f1/dice is 0.86 are you using micro or macro f1?<br>\nI am currently using a downscaling of 4 with 320x320 px sized \"tiles\".<br>\nCV is on 10% stratified over all classes.</p>\n<p>Have you visualized your predictions on the one (lol) public validation image?<br>\nAre there any tiling aretefacts?<br>\nDo your augmentations also account for the fact, that the test images are stained differently?</p>",
          "rawMarkdown": "Oh i dont adjust for pixel size (yet), my micro f1/dice is 0.86 are you using micro or macro f1?\nI am currently using a downscaling of 4 with 320x320 px sized \"tiles\".\nCV is on 10% stratified over all classes.\n\nHave you visualized your predictions on the one (lol) public validation image?\nAre there any tiling aretefacts?\nDo your augmentations also account for the fact, that the test images are stained differently?"
        },
        {
          "id": 1860592,
          "postDate": "2022-07-18T12:07:57.717Z",
          "content": "<p>refer to <a href=\"https://www.kaggle.com/competitions/hubmap-organ-segmentation/discussion/332941\" target=\"_blank\">https://www.kaggle.com/competitions/hubmap-organ-segmentation/discussion/332941</a></p>\n<p>5-fold ensmble of  smp-unet-effnet7-aug3-768</p>\n<ul>\n<li>oof local cv 0.78857 </li>\n<li>public LB : 0.75 <br>\n        - HPA LB 0.75444 (0.21)<br>\n        - Hubmap LB 0.74829  (0.54)</li>\n</ul>",
          "rawMarkdown": "refer to https://www.kaggle.com/competitions/hubmap-organ-segmentation/discussion/332941\n\n5-fold ensmble of  smp-unet-effnet7-aug3-768\n- oof local cv 0.78857 \n- public LB : 0.75 \n            - HPA LB 0.75444 (0.21)\n            - Hubmap LB 0.74829  (0.54)\n\n"
        },
        {
          "id": 1860605,
          "postDate": "2022-07-18T12:15:54.640Z",
          "content": "<p><a href=\"https://www.kaggle.com/hengck23\" target=\"_blank\">@hengck23</a> No matter what I try (so far !) I can't go over 0.54 with Hubmap ! <br>\nI am trying with cellpose, ran into memory issues and current tests are bad ! </p>",
          "rawMarkdown": "@hengck23 No matter what I try (so far !) I can't go over 0.54 with Hubmap ! \nI am trying with cellpose, ran into memory issues and current tests are bad ! ",
          "votes": 1
        },
        {
          "id": 1861591,
          "postDate": "2022-07-19T05:34:01.167Z",
          "content": "<p>tried pixel size norm, however, the lb score still very low.</p>",
          "rawMarkdown": "tried pixel size norm, however, the lb score still very low."
        },
        {
          "id": 1863058,
          "postDate": "2022-07-20T06:20:03.320Z",
          "content": "<p>for my submission with public LB =0.77, Hubmap score is 0.55, HPA is 0.22</p>",
          "rawMarkdown": "for my submission with public LB =0.77, Hubmap score is 0.55, HPA is 0.22",
          "votes": 1
        },
        {
          "id": 1864686,
          "postDate": "2022-07-21T08:42:01.503Z",
          "content": "<p>yet another strong model</p>\n<p>uper-net-convnext-large (5-fold) : <br>\nLB=0.75<br>\noof CV = 0.781449</p>",
          "rawMarkdown": "yet another strong model\n\nuper-net-convnext-large (5-fold) : \nLB=0.75\noof CV = 0.781449\n",
          "votes": 2
        },
        {
          "id": 1886984,
          "postDate": "2022-08-06T10:30:21.817Z",
          "content": "<p><a href=\"https://www.kaggle.com/hengck23\" target=\"_blank\">@hengck23</a>  could you point me to the repo please.<br>\nin google i could find only convnext</p>",
          "rawMarkdown": "@hengck23  could you point me to the repo please.\nin google i could find only convnext"
        }
      ]
    },
    {
      "id": 1838366,
      "postDate": "2022-06-30T12:59:50.610Z",
      "content": "<p>Single fold<br>\nCV - 0.7624,  LB - 0.62</p>\n<p>Per class:<br>\nprostate - 0.8385<br>\nspleen - 0.6436<br>\nlung - 0.1976<br>\nkidney - 0.9224<br>\nlarge intestine - 0.8873</p>",
      "rawMarkdown": "Single fold\nCV - 0.7624,  LB - 0.62\n\nPer class:\nprostate - 0.8385\nspleen - 0.6436\nlung - 0.1976\nkidney - 0.9224\nlarge intestine - 0.8873",
      "votes": 2,
      "replies": [
        {
          "id": 1856194,
          "postDate": "2022-07-15T07:16:15.707Z",
          "content": "<p>Did you train on patch or resized image? </p>",
          "rawMarkdown": "Did you train on patch or resized image? ",
          "votes": 1
        },
        {
          "id": 1856372,
          "postDate": "2022-07-15T09:58:03.567Z",
          "content": "<p>I have had my best scores on LB (0.62, 0.6) using resized image. Training on patch lead to better CV, but LB score around 0.46. Looks like patching leads to overfitting for me, need to increase augmentations.</p>",
          "rawMarkdown": "I have had my best scores on LB (0.62, 0.6) using resized image. Training on patch lead to better CV, but LB score around 0.46. Looks like patching leads to overfitting for me, need to increase augmentations.",
          "votes": 1
        }
      ]
    },
    {
      "id": 1893321,
      "postDate": "2022-08-10T17:53:49.970Z",
      "content": "<p>Model : efficientnetb4 + deeplab (patch tiling)<br>\nsingle fold cv : 0.70<br>\nsingle fold lb : 0.58  <br>\nhubmap : 38  <br>\nhpa : 21</p>",
      "rawMarkdown": "Model : efficientnetb4 + deeplab (patch tiling)\nsingle fold cv : 0.70\nsingle fold lb : 0.58  \nhubmap : 38  \nhpa : 21"
    },
    {
      "id": 1841013,
      "postDate": "2022-07-02T19:08:18.193Z",
      "content": "<p>To confirm: fold cv is the score for the training of patches or you did resize and trained and the CV is 0.79291</p>",
      "rawMarkdown": "To confirm: fold cv is the score for the training of patches or you did resize and trained and the CV is 0.79291",
      "replies": [
        {
          "id": 1864898,
          "postDate": "2022-07-21T11:24:02.577Z",
          "content": "<p>resize    </p>",
          "rawMarkdown": "resize    ",
          "votes": 2
        }
      ]
    }
  ],
  "comments": [
    {
      "id": 1838907,
      "author_name": "hengck23",
      "author_url": "",
      "post_date": "2022-07-01T01:47:32.870000",
      "content": "<p>information needed to split LB-public into LB-public-Hubmap and LB-public-HPA </p>\n<p>\"roughly 550 test images \"<br>\nthere are exactly 529 test images, of which Hubmap=448, HPA=81</p>\n<p>public test : 55% of the test data()<br>\n291 --&gt; Hubmap=210 (0.7216), HPA=81 (0.2783)</p>\n<p>private test = 45%<br>\n238--&gt; Hubmap= 238</p>",
      "votes": 13,
      "replies": [
        {
          "id": 1842359,
          "author_name": "hengck23",
          "author_url": "",
          "post_date": "2022-07-04T00:01:19.673000",
          "content": "<p>as an example public submission:</p>\n<pre><code>all = 0.56\nHPA = 0.19  (set rle='' for data_source != HPA)\nHubmap = 0.36 (set rle='' for data_source != Hubmap)\n#\nHPA x num of public / num of HPA \n= 0.19*291 / 81\n= 0.6825925925925925\nlocal CV is 0.666\n#\nHubmap x num of public / num of Hubmap \n= 0.36*291 / 210\n= 0.49885714285714283\n#\napproximate HPA and Hubmap domain intersection\n= 0.4988/0.68259 = 0.73 ... is this a stable ratio ???\n</code></pre>\n<p>it seems that i need to further break down score into organs to fault find the weakness.<br>\nAlso, we do not know how finetuning threshold on HPA will affect Hubmap. need to probe this too!</p>",
          "votes": 4,
          "replies": []
        }
      ]
    },
    {
      "id": 1835768,
      "author_name": "Chris Deotte",
      "author_url": "",
      "post_date": "2022-06-28T04:10:27.663000",
      "content": "<p>You should make 2 submissions. One that only predicts mask for HPA and one that only predicts mask for HuBMAP. Then you can compute two LB scores and compare both LB scores to your CV score. My guess is that your HPA public LB score is closer to your CV score than your HuBMAP public LB score.</p>",
      "votes": 9,
      "replies": [
        {
          "id": 1835769,
          "author_name": "Chris Deotte",
          "author_url": "",
          "post_date": "2022-06-28T04:12:17.370000",
          "content": "<p>See this post <a href=\"https://www.kaggle.com/competitions/hubmap-organ-segmentation/discussion/332941#1832268\" target=\"_blank\">here</a> for more info</p>",
          "votes": 1,
          "replies": []
        },
        {
          "id": 1857888,
          "author_name": "DennisSakva",
          "author_url": "",
          "post_date": "2022-07-16T13:22:59.810000",
          "content": "<p>What's the point of predicting non-HuBMAP images? They won't be in the private dataset anyway.</p>",
          "votes": 2,
          "replies": []
        }
      ]
    },
    {
      "id": 1877615,
      "author_name": "DiamondH",
      "author_url": "",
      "post_date": "2022-07-30T20:59:12.623000",
      "content": "<ul>\n<li>fold_4 out of 5 fold</li>\n<li>local: 0.81</li>\n<li>lb: 0.73<br>\nkidney : 0.94<br>\nprostate : 0.81<br>\nlargeintestine : 0.92<br>\nspleen : 0.84<br>\nlung : 0.38<br>\n<a href=\"https://www.kaggle.com/code/w3579628328/multi-class-mmsegmentation-training\" target=\"_blank\">mmsegmentation</a></li>\n</ul>",
      "votes": 5,
      "replies": [
        {
          "id": 1886751,
          "author_name": "kingjohnson",
          "author_url": "",
          "post_date": "2022-08-06T06:08:02.357000",
          "content": "<p>Nice work! Did you use multi-class segmentation or single-class segmentation?</p>",
          "votes": 0,
          "replies": []
        },
        {
          "id": 1886841,
          "author_name": "DiamondH",
          "author_url": "",
          "post_date": "2022-08-06T07:40:02.710000",
          "content": "<p>multi-class</p>",
          "votes": 0,
          "replies": []
        }
      ]
    },
    {
      "id": 1919519,
      "author_name": "James Howard",
      "author_url": "",
      "post_date": "2022-08-30T13:26:07.200000",
      "content": "<p>DeeplabV3 with EfficientNetB4<br>\nCV: 0.863 (out of folds, over 4 folds)<br>\nLB: 0.79 (minimal threshold tweaking)</p>",
      "votes": 3,
      "replies": [
        {
          "id": 1919722,
          "author_name": "somuSan",
          "author_url": "",
          "post_date": "2022-08-30T16:22:49.213000",
          "content": "<p>Congrats <a href=\"https://www.kaggle.com/jamesphoward\" target=\"_blank\">@jamesphoward</a>, what do you mean by \"minimal threshold tweaking\"?<br>\nis this a single fold result? <br>\nwhich loss function did you use?</p>\n<p>Im really sorry for bombarding with so many questions 😅</p>",
          "votes": 0,
          "replies": []
        },
        {
          "id": 1919737,
          "author_name": "James Howard",
          "author_url": "",
          "post_date": "2022-08-30T16:33:40.950000",
          "content": "<p>This is 4 folds, BCE loss, and I just completely guessed thresholds and haven't optimised them (I picked 0.1 for lung, other organs I used 0.5 for HPA and 0.2 for hubmap).</p>",
          "votes": 3,
          "replies": []
        },
        {
          "id": 1919752,
          "author_name": "somuSan",
          "author_url": "",
          "post_date": "2022-08-30T16:45:18.060000",
          "content": "<p>Thank you so much for the reply, btw why are you using MSE loss, isn't semantic segmentation a pixel level classification problem, then why mean square error[regression loss], instead of BCE/log loss etc? please correct me if im wrong here</p>",
          "votes": 0,
          "replies": []
        },
        {
          "id": 1919756,
          "author_name": "James Howard",
          "author_url": "",
          "post_date": "2022-08-30T16:49:31.600000",
          "content": "<p>Sorry, that was a typo! I meant BCE and wasn't concentrating…</p>",
          "votes": 1,
          "replies": []
        },
        {
          "id": 1919762,
          "author_name": "somuSan",
          "author_url": "",
          "post_date": "2022-08-30T16:54:59.100000",
          "content": "<p>I got scared watching that lol😂. btw, no auxiliary loss?<br>\nwhat did you use to ensemble those 4folds?</p>",
          "votes": 0,
          "replies": []
        },
        {
          "id": 1919768,
          "author_name": "James Howard",
          "author_url": "",
          "post_date": "2022-08-30T16:58:01.857000",
          "content": "<p>No aux loss, although I do use 4x TTA.<br>\nI just summate the prediction maps and then divine them by the number of predictions (ie take a simple pixel-wise average).</p>",
          "votes": 1,
          "replies": []
        },
        {
          "id": 1919781,
          "author_name": "somuSan",
          "author_url": "",
          "post_date": "2022-08-30T17:03:10.230000",
          "content": "<p>really appreciate you sharing the details. all the best with the competition. </p>",
          "votes": 0,
          "replies": []
        },
        {
          "id": 1920075,
          "author_name": "Kaggle，啟動",
          "author_url": "",
          "post_date": "2022-08-30T21:27:18.783000",
          "content": "<p>Are you using whole images then resize or tiled images</p>",
          "votes": 0,
          "replies": []
        }
      ]
    },
    {
      "id": 1856203,
      "author_name": "Quan",
      "author_url": "",
      "post_date": "2022-07-15T07:19:33.937000",
      "content": "<p>Unet2D 32x64x128x256x320<br>\n5 Fold CV - 0.748672<br>\nLB - 0.44 🙄 (Whyy?)</p>",
      "votes": 3,
      "replies": [
        {
          "id": 1856230,
          "author_name": "James Howard",
          "author_url": "",
          "post_date": "2022-07-15T07:47:08.733000",
          "content": "<p>I'd strongly suggest you visualise your prediction on the single test image before submitting the notebook. You'll be surprised by how bad your model is on HuBMAP data, I suspect…</p>",
          "votes": 6,
          "replies": []
        },
        {
          "id": 1856233,
          "author_name": "Quan",
          "author_url": "",
          "post_date": "2022-07-15T07:48:30.330000",
          "content": "<p>That's what I observed as well. Annotation seems all over the place</p>",
          "votes": 0,
          "replies": []
        },
        {
          "id": 1856310,
          "author_name": "Gunes Evitan",
          "author_url": "",
          "post_date": "2022-07-15T08:59:00.323000",
          "content": "<p>I suffer from the same thing. I trained a very simple unet model with efficientnet b0 encoder and my oof dice score is 0.721, but my leaderboard score is 0.19 lol. These are detailed scores of my model. </p>\n<pre><code>\"out_of_fold\": {\n    \"global\": {\n      \"sample_count\": 351,\n      \"dice_coefficient\": {\n        \"mean\": 0.7210908048892115,\n        \"std\": 0.3087503658863055,\n        \"min\": 1.2499843751796857e-11,\n        \"max\": 0.9726454699260181\n      },\n      \"intersection_over_union\": {\n        \"mean\": 0.6343560812096684,\n        \"std\": 0.29665165227558893,\n        \"min\": 1.2499843751796857e-11,\n        \"max\": 0.9467476333193632\n      }\n    },\n    \"organs\": {\n      \"sample_count\": {\n        \"kidney\": 99,\n        \"largeintestine\": 58,\n        \"lung\": 48,\n        \"prostate\": 93,\n        \"spleen\": 53\n      },\n      \"dice_coefficient\": {\n        \"kidney\": {\n          \"mean\": 0.8977391601781795,\n          \"std\": 0.06643440652731449,\n          \"min\": 0.6370120607597658,\n          \"max\": 0.9726454699260181\n        },\n        \"largeintestine\": {\n          \"mean\": 0.8625815659109379,\n          \"std\": 0.11012129876516484,\n          \"min\": 0.15504884979521794,\n          \"max\": 0.9557906152153275\n        },\n        \"lung\": {\n          \"mean\": 0.04145343110662958,\n          \"std\": 0.11725142416682333,\n          \"min\": 1.2499843751796857e-11,\n          \"max\": 0.6145009488394847\n        },\n        \"prostate\": {\n          \"mean\": 0.7947290161557055,\n          \"std\": 0.17756911704942144,\n          \"min\": 0.20619881455300634,\n          \"max\": 0.9563853043455539\n        },\n        \"spleen\": {\n          \"mean\": 0.7225924837743438,\n          \"std\": 0.1843539475344702,\n          \"min\": 0.01800969580417568,\n          \"max\": 0.912698279695554\n        }\n      },\n      \"intersection_over_union\": {\n        \"kidney\": {\n          \"mean\": 0.820414463802119,\n          \"std\": 0.10031296950970611,\n          \"min\": 0.46736441498780357,\n          \"max\": 0.9467476333193632\n        },\n        \"largeintestine\": {\n          \"mean\": 0.7698824870675187,\n          \"std\": 0.12350442742012406,\n          \"min\": 0.08403954206806587,\n          \"max\": 0.9153246744786364\n        },\n        \"lung\": {\n          \"mean\": 0.025768105153562062,\n          \"std\": 0.07890517684618706,\n          \"min\": 1.2499843751796857e-11,\n          \"max\": 0.44352318275512714\n        },\n        \"prostate\": {\n          \"mean\": 0.6900000001631348,\n          \"std\": 0.21192072949716861,\n          \"min\": 0.11495076278942798,\n          \"max\": 0.9164160952582849\n        },\n        \"spleen\": {\n          \"mean\": 0.5920358353910417,\n          \"std\": 0.18949636140025228,\n          \"min\": 0.009086672020481157,\n          \"max\": 0.839415833390244\n        }\n      }\n    }\n  }\n}\n</code></pre>\n<p>This is my model's prediction on one test sample. It looks pretty bad right now. I think I have to add some transforms because model is not generalizing at all.</p>\n<p><img src=\"https://i.ibb.co/2ZBjJ46/Screenshot-from-2022-07-15-11-48-44.png\" alt=\"test\"></p>",
          "votes": 3,
          "replies": []
        },
        {
          "id": 1856329,
          "author_name": "James Howard",
          "author_url": "",
          "post_date": "2022-07-15T09:20:59.353000",
          "content": "<p>One thing I don't really understand is why <a href=\"https://www.kaggle.com/thedevastator\" target=\"_blank\">@thedevastator</a> 's models do SO well at the test data in comparison with many others. His training notebook doesn't do anything that exotic, but the models generalise excellently.</p>",
          "votes": 7,
          "replies": []
        },
        {
          "id": 1856333,
          "author_name": "shiroe",
          "author_url": "",
          "post_date": "2022-07-15T09:25:26.400000",
          "content": "<p>I suggest checking LB on only HubMap data</p>",
          "votes": 0,
          "replies": []
        },
        {
          "id": 1856343,
          "author_name": "",
          "author_url": "",
          "post_date": "2022-07-15T09:30:32.377000",
          "content": "",
          "votes": 0,
          "replies": []
        },
        {
          "id": 1856344,
          "author_name": "Quan",
          "author_url": "",
          "post_date": "2022-07-15T09:33:47.660000",
          "content": "<p>One thing I do know is if my CV increases, my LB also increases. We don't have access to labelled Hubmap data so I think we have to rely on heavy augmentation</p>",
          "votes": 1,
          "replies": []
        },
        {
          "id": 1856418,
          "author_name": "Muhammad Ahmed",
          "author_url": "",
          "post_date": "2022-07-15T10:31:33.173000",
          "content": "<p><a href=\"https://www.kaggle.com/jamesphoward\" target=\"_blank\">@jamesphoward</a> I think the public baseline is not reliable. I tried breaking it with different sizes, params, models etc and most of the time I was able to get <code>nan</code> as loss. <br>\nfor 0.64 score, I would say it was luck with right combinations. even if you use 512x512 images, it will fail.</p>",
          "votes": 4,
          "replies": []
        },
        {
          "id": 1856423,
          "author_name": "Muhammad Ahmed",
          "author_url": "",
          "post_date": "2022-07-15T10:33:45.300000",
          "content": "<p><a href=\"https://www.kaggle.com/gunesevitan\" target=\"_blank\">@gunesevitan</a> are you using <code>segmentation_models_pytorch</code>? because I had the same results using it. I will recommend try the same with <code>b7</code>. more better would be if you implement it by yourself.<br>\nI believe this competition is more data oriented than models.</p>",
          "votes": 1,
          "replies": []
        },
        {
          "id": 1856425,
          "author_name": "James Howard",
          "author_url": "",
          "post_date": "2022-07-15T10:34:57.367000",
          "content": "<p>I agree, but if you visualise <a href=\"https://www.kaggle.com/thedevastator\" target=\"_blank\">@thedevastator</a> 's models predictions on the public test image it makes much much better predictions (they look like FTUs rather than random blobs) than similar models I have trained with similar parameters and augmentations.</p>",
          "votes": 0,
          "replies": []
        },
        {
          "id": 1856537,
          "author_name": "",
          "author_url": "",
          "post_date": "2022-07-15T12:01:15.160000",
          "content": "",
          "votes": 0,
          "replies": []
        },
        {
          "id": 1856553,
          "author_name": "",
          "author_url": "",
          "post_date": "2022-07-15T12:20:04.900000",
          "content": "",
          "votes": 0,
          "replies": []
        },
        {
          "id": 1861328,
          "author_name": "huyidao",
          "author_url": "",
          "post_date": "2022-07-19T01:14:04.657000",
          "content": "<p>same thing. +1. dont know why.</p>",
          "votes": 0,
          "replies": []
        },
        {
          "id": 1862752,
          "author_name": "Quan",
          "author_url": "",
          "post_date": "2022-07-20T01:31:41.133000",
          "content": "<p>Update:<br>\nSame model<br>\nInsane Augmentation in attempts to close the domain differences gap<br>\nCV: 0.77809<br>\nLB: 0.65 (0.44 Hubmap + 0.21 HPA)<br>\nStill pretty large gap compared to <a href=\"https://www.kaggle.com/hengck23\" target=\"_blank\">@hengck23</a> <br>\n<img src=\"https://www.kaggleusercontent.com/kf/101271481/eyJhbGciOiJkaXIiLCJlbmMiOiJBMTI4Q0JDLUhTMjU2In0..w3aDWFam2PgY7arJAMxVIw.R2pzGthO6Quigj_oEN2Ly1Iz2KVJNjYYVwgvDwHb8cV3JocO-hpf6tu4A98D05LvNNl-hea2aifzqA8CHSkNNFFjkUo8YXpoX-nuapuUVbPFKSb7MaX_o6_ZnLvpN3QnEWIHghu4oYmDquADtjdvd6j66MzNP0Bw99GMaLF9ttSVQaJK62oiOTlOTy9dahpCBPQYRC19IEKdzUiyMzOmJRKtJsbGf_23LbqI-eiK-HEFt6g0dKajUw7MXt8QFGUpPq2mdIIsgns3PTHYw8XM1Rkrr6Kp6Rfw-dCCyH82DIvGziMat299SP0CREvjcuv7rS1tIdCZ9gSlQzzbsXManj9Vi0UA_IbSuAvYrdtZ_a0XqPd1i90tLMl7OgVBFOx98u75yRGp6oLMehgzjihHMwTxcqZ8CHtZnrf-KRYEJmzKhdO9T53PA84cS9VhWiY-xUnxiEpGFIzBW7O8RNWhMAmvJl4da6tnOaP7DDfigMqZCNb7rJbS5KLSMOeDuCTOV73YaYmXRxY4SiQnoCZ_8h4pyo1ffvq9ng3cCTU0xTsDmxLtC7sfvL5cqJrBz4go5u8YKo8Z5ZRHOZfq28l8sWrARzSqvTDagJZFZmeRW3-o5WO6NMwNm3y0V6jMs15qj3rh5LKoE9XXPoxixzqgl0nrPZhFHvTJDJifGSqzLsuiopf-iYqmn-6rFEmpuIYU.tPjoJ3-0hEFkAdQNKEPyHA/__results___files/__results___12_0.png\" alt=\"\"></p>",
          "votes": 1,
          "replies": []
        },
        {
          "id": 1874511,
          "author_name": "豆柴金鯱",
          "author_url": "",
          "post_date": "2022-07-28T10:23:50.813000",
          "content": "<p>hey <a href=\"https://www.kaggle.com/quandapro\" target=\"_blank\">@quandapro</a> How did you break the LB score into 2 parts? I can only get a total score and I'm facing exactly the same issue like you. I still can't to beat the public kernel score (0.56) with my customized training.</p>",
          "votes": 0,
          "replies": []
        },
        {
          "id": 1875389,
          "author_name": "Quan",
          "author_url": "",
          "post_date": "2022-07-29T01:38:06.690000",
          "content": "<p><a href=\"https://www.kaggle.com/fuckvenkatraman\" target=\"_blank\">@fuckvenkatraman</a> do 2 runs: </p>\n<ul>\n<li>Run normally to get full score</li>\n<li>Set RLE of HPA images to empty to get Hubmap scores</li>\n</ul>\n<p>Hope that helps. </p>",
          "votes": 1,
          "replies": []
        },
        {
          "id": 1886753,
          "author_name": "kingjohnson",
          "author_url": "",
          "post_date": "2022-08-06T06:09:20.337000",
          "content": "<p>I will try you advice for my work, i suppose it will help me a lot.</p>",
          "votes": 0,
          "replies": []
        },
        {
          "id": 1886979,
          "author_name": "Jaideep",
          "author_url": "",
          "post_date": "2022-08-06T10:26:10.787000",
          "content": "<p><a href=\"https://www.kaggle.com/quandapro\" target=\"_blank\">@quandapro</a> i am new to competition, in the default data given we have got only HPA,from where we get the HubMap</p>",
          "votes": 0,
          "replies": []
        },
        {
          "id": 1929488,
          "author_name": "Zhongkai Shangguan",
          "author_url": "",
          "post_date": "2022-09-07T05:29:59.077000",
          "content": "<p>Hi <a href=\"https://www.kaggle.com/gunesevitan\" target=\"_blank\">@gunesevitan</a> , I suffered the same problem as you, cv: 0.82 lb 0.36. Have you solved the issue? Could you please provide some hints on how you solved it? Thanks.</p>",
          "votes": 1,
          "replies": []
        },
        {
          "id": 1930261,
          "author_name": "Gunes Evitan",
          "author_url": "",
          "post_date": "2022-09-07T17:19:48.307000",
          "content": "<p>I forgot to transpose while submitting</p>",
          "votes": 0,
          "replies": []
        }
      ]
    },
    {
      "id": 1839460,
      "author_name": "Muhammad Ahmed",
      "author_url": "",
      "post_date": "2022-07-01T12:31:37.733000",
      "content": "<p>I think for a proper CV strategy we need HubMap data too otherwise we are simply training it on HPA data and LB is mostly HubMap. that is why our CV is high but LB is low. <br>\nbtw my CV is 0.84 and LB is 0.56 😄</p>",
      "votes": 1,
      "replies": [
        {
          "id": 1839478,
          "author_name": "shiroe",
          "author_url": "",
          "post_date": "2022-07-01T13:03:12.437000",
          "content": "<p>I agree, did an quick experiment in which i used model to predict only HPA and if HubMap then predict a circle LB was 0.51</p>",
          "votes": 1,
          "replies": []
        },
        {
          "id": 1849526,
          "author_name": "James Howard",
          "author_url": "",
          "post_date": "2022-07-09T15:50:04.590000",
          "content": "<p>Do we know the HuBMAP data will be circles? I wonder if that's unique to HPA…</p>",
          "votes": 0,
          "replies": []
        },
        {
          "id": 1849846,
          "author_name": "Philipp Sodmann",
          "author_url": "",
          "post_date": "2022-07-09T21:56:54.580000",
          "content": "<p>in last years challenge there have been no circular specimen in the hubmap data. In this years test data (1 hubmap image) it also does not appear to be round as well.<br>\nThere are 81 HPA images in the test data, which probably achieve a better score with round masks.</p>",
          "votes": 0,
          "replies": []
        }
      ]
    },
    {
      "id": 1849216,
      "author_name": "Philipp Sodmann",
      "author_url": "",
      "post_date": "2022-07-09T10:07:17.933000",
      "content": "<p>Efficientnet b4, unet, bce/dice (Combo loss)<br>\nSingle Fold CV 0.76 macro dice, containing 3x 0 dice because of lung. Median is 0.88.<br>\nSingle Fold LB 0.66 </p>",
      "votes": 2,
      "replies": [
        {
          "id": 1850225,
          "author_name": "Philipp Sodmann",
          "author_url": "",
          "post_date": "2022-07-10T08:21:34.963000",
          "content": "<p>Single Model Efficientnet-b5:<br>\nMean Macro F1: 0.75, Median Macro F1 0.89<br>\nLB: 0.69</p>",
          "votes": 2,
          "replies": []
        },
        {
          "id": 1857850,
          "author_name": "Manyu Li",
          "author_url": "",
          "post_date": "2022-07-16T12:55:58.257000",
          "content": "<p>Did you use the tiles images to training? and what's your CV datasets? I use efficientnet b1 got CV 0.83 but LB only 0.24…😭</p>",
          "votes": 1,
          "replies": []
        },
        {
          "id": 1857914,
          "author_name": "hengck23",
          "author_url": "",
          "post_date": "2022-07-16T13:58:11.043000",
          "content": "<p>\"CV 0.83 but LB only 0.24\"</p>\n<p>most likely it is due to:</p>\n<p>\"All HPA images have a pixel size of 0.4 µm. For HuBMAP imagery the pixel size is 0.5 µm for kidney, 0.2290 µm for large intestine, 0.7562 µm for lung, 0.4945 µm for spleen, and 6.263 µm for prostate.\"</p>\n<p>you can verify by making separate submission for HuBMAP and HPA</p>",
          "votes": 6,
          "replies": []
        },
        {
          "id": 1858158,
          "author_name": "Philipp Sodmann",
          "author_url": "",
          "post_date": "2022-07-16T17:52:28.880000",
          "content": "<p>Oh i dont adjust for pixel size (yet), my micro f1/dice is 0.86 are you using micro or macro f1?<br>\nI am currently using a downscaling of 4 with 320x320 px sized \"tiles\".<br>\nCV is on 10% stratified over all classes.</p>\n<p>Have you visualized your predictions on the one (lol) public validation image?<br>\nAre there any tiling aretefacts?<br>\nDo your augmentations also account for the fact, that the test images are stained differently?</p>",
          "votes": 0,
          "replies": []
        },
        {
          "id": 1860592,
          "author_name": "hengck23",
          "author_url": "",
          "post_date": "2022-07-18T12:07:57.717000",
          "content": "<p>refer to <a href=\"https://www.kaggle.com/competitions/hubmap-organ-segmentation/discussion/332941\" target=\"_blank\">https://www.kaggle.com/competitions/hubmap-organ-segmentation/discussion/332941</a></p>\n<p>5-fold ensmble of  smp-unet-effnet7-aug3-768</p>\n<ul>\n<li>oof local cv 0.78857 </li>\n<li>public LB : 0.75 <br>\n        - HPA LB 0.75444 (0.21)<br>\n        - Hubmap LB 0.74829  (0.54)</li>\n</ul>",
          "votes": 0,
          "replies": []
        },
        {
          "id": 1860605,
          "author_name": "Ali",
          "author_url": "",
          "post_date": "2022-07-18T12:15:54.640000",
          "content": "<p><a href=\"https://www.kaggle.com/hengck23\" target=\"_blank\">@hengck23</a> No matter what I try (so far !) I can't go over 0.54 with Hubmap ! <br>\nI am trying with cellpose, ran into memory issues and current tests are bad ! </p>",
          "votes": 1,
          "replies": []
        },
        {
          "id": 1861591,
          "author_name": "huyidao",
          "author_url": "",
          "post_date": "2022-07-19T05:34:01.167000",
          "content": "<p>tried pixel size norm, however, the lb score still very low.</p>",
          "votes": 0,
          "replies": []
        },
        {
          "id": 1863058,
          "author_name": "hengck23",
          "author_url": "",
          "post_date": "2022-07-20T06:20:03.320000",
          "content": "<p>for my submission with public LB =0.77, Hubmap score is 0.55, HPA is 0.22</p>",
          "votes": 1,
          "replies": []
        },
        {
          "id": 1864686,
          "author_name": "hengck23",
          "author_url": "",
          "post_date": "2022-07-21T08:42:01.503000",
          "content": "<p>yet another strong model</p>\n<p>uper-net-convnext-large (5-fold) : <br>\nLB=0.75<br>\noof CV = 0.781449</p>",
          "votes": 2,
          "replies": []
        },
        {
          "id": 1886984,
          "author_name": "Jaideep",
          "author_url": "",
          "post_date": "2022-08-06T10:30:21.817000",
          "content": "<p><a href=\"https://www.kaggle.com/hengck23\" target=\"_blank\">@hengck23</a>  could you point me to the repo please.<br>\nin google i could find only convnext</p>",
          "votes": 0,
          "replies": []
        }
      ]
    },
    {
      "id": 1838366,
      "author_name": "Jebastin Nadar",
      "author_url": "",
      "post_date": "2022-06-30T12:59:50.610000",
      "content": "<p>Single fold<br>\nCV - 0.7624,  LB - 0.62</p>\n<p>Per class:<br>\nprostate - 0.8385<br>\nspleen - 0.6436<br>\nlung - 0.1976<br>\nkidney - 0.9224<br>\nlarge intestine - 0.8873</p>",
      "votes": 2,
      "replies": [
        {
          "id": 1856194,
          "author_name": "Quan",
          "author_url": "",
          "post_date": "2022-07-15T07:16:15.707000",
          "content": "<p>Did you train on patch or resized image? </p>",
          "votes": 1,
          "replies": []
        },
        {
          "id": 1856372,
          "author_name": "Jebastin Nadar",
          "author_url": "",
          "post_date": "2022-07-15T09:58:03.567000",
          "content": "<p>I have had my best scores on LB (0.62, 0.6) using resized image. Training on patch lead to better CV, but LB score around 0.46. Looks like patching leads to overfitting for me, need to increase augmentations.</p>",
          "votes": 1,
          "replies": []
        }
      ]
    },
    {
      "id": 1893321,
      "author_name": "kaggler",
      "author_url": "",
      "post_date": "2022-08-10T17:53:49.970000",
      "content": "<p>Model : efficientnetb4 + deeplab (patch tiling)<br>\nsingle fold cv : 0.70<br>\nsingle fold lb : 0.58  <br>\nhubmap : 38  <br>\nhpa : 21</p>",
      "votes": 0,
      "replies": []
    },
    {
      "id": 1841013,
      "author_name": "Bibhabasu Mohapatra",
      "author_url": "",
      "post_date": "2022-07-02T19:08:18.193000",
      "content": "<p>To confirm: fold cv is the score for the training of patches or you did resize and trained and the CV is 0.79291</p>",
      "votes": 0,
      "replies": [
        {
          "id": 1864898,
          "author_name": "shiroe",
          "author_url": "",
          "post_date": "2022-07-21T11:24:02.577000",
          "content": "<p>resize    </p>",
          "votes": 2,
          "replies": []
        }
      ]
    }
  ],
  "raw_markdown_by_id": {
    "1835135": "I know it's a bit early but every competition needs one so here it goes :)\nModel:- Unet+effiecentnet-b0\nsingle fold cv:-0.79291 \nsingle fold lb (no TTA):- 0.59",
    "1838907": "information needed to split LB-public into LB-public-Hubmap and LB-public-HPA \n\n\n\"roughly 550 test images \"\nthere are exactly 529 test images, of which Hubmap=448, HPA=81\n\npublic test : 55% of the test data()\n291 --> Hubmap=210 (0.7216), HPA=81 (0.2783)\n\nprivate test = 45%\n238--> Hubmap= 238\n\n\n",
    "1835768": "You should make 2 submissions. One that only predicts mask for HPA and one that only predicts mask for HuBMAP. Then you can compute two LB scores and compare both LB scores to your CV score. My guess is that your HPA public LB score is closer to your CV score than your HuBMAP public LB score.",
    "1877615": "* fold_4 out of 5 fold\n* local: 0.81\n* lb: 0.73\nkidney : 0.94\nprostate : 0.81\nlargeintestine : 0.92\nspleen : 0.84\nlung : 0.38\n[mmsegmentation](https://www.kaggle.com/code/w3579628328/multi-class-mmsegmentation-training)",
    "1919519": "DeeplabV3 with EfficientNetB4\nCV: 0.863 (out of folds, over 4 folds)\nLB: 0.79 (minimal threshold tweaking)",
    "1856203": "Unet2D 32x64x128x256x320\n5 Fold CV - 0.748672\nLB - 0.44 🙄 (Whyy?)",
    "1839460": "I think for a proper CV strategy we need HubMap data too otherwise we are simply training it on HPA data and LB is mostly HubMap. that is why our CV is high but LB is low. \nbtw my CV is 0.84 and LB is 0.56 😄",
    "1849216": "Efficientnet b4, unet, bce/dice (Combo loss)\nSingle Fold CV 0.76 macro dice, containing 3x 0 dice because of lung. Median is 0.88.\nSingle Fold LB 0.66 ",
    "1838366": "Single fold\nCV - 0.7624,  LB - 0.62\n\nPer class:\nprostate - 0.8385\nspleen - 0.6436\nlung - 0.1976\nkidney - 0.9224\nlarge intestine - 0.8873",
    "1893321": "Model : efficientnetb4 + deeplab (patch tiling)\nsingle fold cv : 0.70\nsingle fold lb : 0.58  \nhubmap : 38  \nhpa : 21",
    "1841013": "To confirm: fold cv is the score for the training of patches or you did resize and trained and the CV is 0.79291"
  }
}