{
  "id": 335507,
  "title": "Need Help.... Submission Score Error.... ?",
  "url": "/competitions/hubmap-organ-segmentation/discussion/335507",
  "author_name": "",
  "post_date": "2022-07-06T13:42:35.640670700Z",
  "votes": 7,
  "comment_count": 10,
  "views": 0,
  "content": "<p>Here is my submission notebook run for a long time and returens submission score error.<br>\n<a href=\"https://www.kaggle.com/code/muki2003/submission-hubmap-hpa-u-net-cnn\" target=\"_blank\">https://www.kaggle.com/code/muki2003/submission-hubmap-hpa-u-net-cnn</a></p>\n<p>what I have done wrong ?</p>",
  "messages": [
    {
      "id": "1845649",
      "postDate": "07/06/2022 13:42:35",
      "content": "<p>Here is my submission notebook run for a long time and returens submission score error.<br>\n<a href=\"https://www.kaggle.com/code/muki2003/submission-hubmap-hpa-u-net-cnn\" target=\"_blank\">https://www.kaggle.com/code/muki2003/submission-hubmap-hpa-u-net-cnn</a></p>\n<p>what I have done wrong ?</p>",
      "rawMarkdown": "Here is my submission notebook run for a long time and returens submission score error.\nhttps://www.kaggle.com/code/muki2003/submission-hubmap-hpa-u-net-cnn\n\nwhat I have done wrong ?",
      "votes": null
    },
    {
      "id": "1845933",
      "postDate": "07/06/2022 17:30:37",
      "content": "<p>Hi, </p>\n<p>I think the problem could be that the memory is not big enough to load the raw tiff file.<br>\nIn the data description, they said: </p>\n<p>\"Expect roughly 550 images in the hidden test set. All HPA images are 3000 x 3000 pixels with a tissue area within the image around 2500 x 2500 pixels. The HuBMAP images range in size from 4500x4500 down to 160x160 pixels.\"</p>",
      "rawMarkdown": "Hi, \n\nI think the problem could be that the memory is not big enough to load the raw tiff file.\nIn the data description, they said: \n\n\"Expect roughly 550 images in the hidden test set. All HPA images are 3000 x 3000 pixels with a tissue area within the image around 2500 x 2500 pixels. The HuBMAP images range in size from 4500x4500 down to 160x160 pixels.\"",
      "votes": null
    },
    {
      "id": "1845965",
      "postDate": "07/06/2022 18:09:41",
      "content": "<p>Yeah <a href=\"https://www.kaggle.com/zhijianli\" target=\"_blank\">@zhijianli</a> but <strong>I am not loaded all image</strong></p>\n<pre><code>for i, filename in tqdm(enumerate(glob.glob('../input/hubmap-organ-segmentation/test_images/*.tiff')), \n                        total = len(list(glob.glob('../input/hubmap-organ-segmentation/test_images/*.tiff')))):\n\n    test_image = tiff.imread(filename) / 255.\n    test_image = resize(test_image, (256, 256, 3))\n\n    predicted = model.predict(test_image.reshape(-1,256,256,3))  # Predicting the Imagee\n    predicted = predicted.reshape(256,256)\n\n    final_preds_mask.append(predicted.round()) # Mask\n    final_pred_image.append(test_image) # Image\n</code></pre>\n<p><strong>Loading image one by one and resizing to 256x256.</strong></p>\n<p>Also, the Error is Submission Score Error</p>",
      "rawMarkdown": "Yeah @zhijianli but **I am not loaded all image**\n\n```\nfor i, filename in tqdm(enumerate(glob.glob('../input/hubmap-organ-segmentation/test_images/*.tiff')), \n                        total = len(list(glob.glob('../input/hubmap-organ-segmentation/test_images/*.tiff')))):\n\n    test_image = tiff.imread(filename) / 255.\n    test_image = resize(test_image, (256, 256, 3))\n    \n    predicted = model.predict(test_image.reshape(-1,256,256,3))  # Predicting the Imagee\n    predicted = predicted.reshape(256,256)\n    \n    final_preds_mask.append(predicted.round()) # Mask\n    final_pred_image.append(test_image) # Image\n```\n\n**Loading image one by one and resizing to 256x256.**\n\nAlso, the Error is Submission Score Error",
      "votes": null
    },
    {
      "id": "1846785",
      "postDate": "07/07/2022 11:02:05",
      "content": "<p>Is the size of mask right? I think the size of mask should be the original shape in test.csv</p>",
      "rawMarkdown": "Is the size of mask right? I think the size of mask should be the original shape in test.csv",
      "votes": null
    },
    {
      "id": "1846854",
      "postDate": "07/07/2022 12:02:00",
      "content": "<p><a href=\"https://www.kaggle.com/muki2003\" target=\"_blank\">@muki2003</a> Sure I will check it up.</p>",
      "rawMarkdown": "muki2003 Sure I will check it up.",
      "votes": null
    },
    {
      "id": "1847966",
      "postDate": "07/08/2022 09:29:40",
      "content": "<p>I think this is a simple error on saving the submission. Set the index=False for the save function. </p>\n<p><code>df_ssub.to_csv('submission.csv', index=False)</code></p>\n<p>I encountered such error once before, hope this helps.</p>",
      "rawMarkdown": "I think this is a simple error on saving the submission. Set the index=False for the save function. \n\n`df_ssub.to_csv('submission.csv', index=False)`\n\nI encountered such error once before, hope this helps.",
      "votes": null
    },
    {
      "id": "1849194",
      "postDate": "07/09/2022 09:43:14",
      "content": "<p>There may be a problem with the function mask2rle? Try <strong>rle_encode_less_memory</strong> from here<br>\n<a href=\"https://www.kaggle.com/code/realneuralnetwork/fork-of-inference-fastai-baseline\" target=\"_blank\">https://www.kaggle.com/code/realneuralnetwork/fork-of-inference-fastai-baseline</a></p>",
      "rawMarkdown": "There may be a problem with the function mask2rle? Try **rle_encode_less_memory** from here\nhttps://www.kaggle.com/code/realneuralnetwork/fork-of-inference-fastai-baseline",
      "votes": null
    },
    {
      "id": "1888182",
      "postDate": "08/07/2022 12:07:47",
      "content": "<p>Hello <a href=\"https://www.kaggle.com/muki2003\" target=\"_blank\">@muki2003</a>, I am facing the same problem. Have you solved it?</p>",
      "rawMarkdown": "Hello @muki2003, I am facing the same problem. Have you solved it?",
      "votes": null
    },
    {
      "id": "1888374",
      "postDate": "08/07/2022 14:14:40",
      "content": "<p>Yeah <a href=\"https://www.kaggle.com/vominhcong05\" target=\"_blank\">@vominhcong05</a> </p>\n<p>Check Out my Submission Notebook<br>\n<a href=\"https://www.kaggle.com/code/muki2003/submission-hubmap-hpa-u-net-cnn\" target=\"_blank\">https://www.kaggle.com/code/muki2003/submission-hubmap-hpa-u-net-cnn</a></p>\n<p>Still you have any issue tag me !</p>",
      "rawMarkdown": "Yeah @vominhcong05 \n\nCheck Out my Submission Notebook\nhttps://www.kaggle.com/code/muki2003/submission-hubmap-hpa-u-net-cnn\n\nStill you have any issue tag me !",
      "votes": null
    },
    {
      "id": "1890064",
      "postDate": "08/08/2022 14:21:29",
      "content": "<p>Hi <a href=\"https://www.kaggle.com/muki2003\" target=\"_blank\">@muki2003</a> , thank you very much. I finally submitted my own submission successfully. <br>\nI just loaded <code>sample_submission.csv</code> file and then replace <code>rle</code> values with my predicted rle. <br>\nI still have no idea why it works. It seems that <code>rle</code> dtype should be \"something\" exactly same to \"rle\" dtype from <code>sample_submission.csv</code>.  </p>",
      "rawMarkdown": "Hi @muki2003 , thank you very much. I finally submitted my own submission successfully. \nI just loaded `sample_submission.csv` file and then replace `rle` values with my predicted rle. \nI still have no idea why it works. It seems that `rle` dtype should be \"something\" exactly same to \"rle\" dtype from `sample_submission.csv`.",
      "votes": null
    },
    {
      "id": "1890146",
      "postDate": "08/08/2022 15:13:08",
      "content": "<p><a href=\"https://www.kaggle.com/vominhcong05\" target=\"_blank\">@vominhcong05</a> Keep going !</p>",
      "rawMarkdown": "vominhcong05 Keep going !",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 1845933,
      "author_name": "zhijianli",
      "author_url": "",
      "post_date": "07/06/2022 17:30:37",
      "content": "<p>Hi, </p>\n<p>I think the problem could be that the memory is not big enough to load the raw tiff file.<br>\nIn the data description, they said: </p>\n<p>\"Expect roughly 550 images in the hidden test set. All HPA images are 3000 x 3000 pixels with a tissue area within the image around 2500 x 2500 pixels. The HuBMAP images range in size from 4500x4500 down to 160x160 pixels.\"</p>",
      "votes": null,
      "replies": [
        {
          "id": 1845965,
          "author_name": "muki2003",
          "author_url": "",
          "post_date": "07/06/2022 18:09:41",
          "content": "<p>Yeah <a href=\"https://www.kaggle.com/zhijianli\" target=\"_blank\">@zhijianli</a> but <strong>I am not loaded all image</strong></p>\n<pre><code>for i, filename in tqdm(enumerate(glob.glob('../input/hubmap-organ-segmentation/test_images/*.tiff')), \n                        total = len(list(glob.glob('../input/hubmap-organ-segmentation/test_images/*.tiff')))):\n\n    test_image = tiff.imread(filename) / 255.\n    test_image = resize(test_image, (256, 256, 3))\n\n    predicted = model.predict(test_image.reshape(-1,256,256,3))  # Predicting the Imagee\n    predicted = predicted.reshape(256,256)\n\n    final_preds_mask.append(predicted.round()) # Mask\n    final_pred_image.append(test_image) # Image\n</code></pre>\n<p><strong>Loading image one by one and resizing to 256x256.</strong></p>\n<p>Also, the Error is Submission Score Error</p>",
          "votes": null,
          "replies": []
        }
      ]
    },
    {
      "id": 1846785,
      "author_name": "jiageng",
      "author_url": "",
      "post_date": "07/07/2022 11:02:05",
      "content": "<p>Is the size of mask right? I think the size of mask should be the original shape in test.csv</p>",
      "votes": null,
      "replies": [
        {
          "id": 1846854,
          "author_name": "muki2003",
          "author_url": "",
          "post_date": "07/07/2022 12:02:00",
          "content": "<p><a href=\"https://www.kaggle.com/muki2003\" target=\"_blank\">@muki2003</a> Sure I will check it up.</p>",
          "votes": null,
          "replies": []
        }
      ]
    },
    {
      "id": 1847966,
      "author_name": "seraphwedd18",
      "author_url": "",
      "post_date": "07/08/2022 09:29:40",
      "content": "<p>I think this is a simple error on saving the submission. Set the index=False for the save function. </p>\n<p><code>df_ssub.to_csv('submission.csv', index=False)</code></p>\n<p>I encountered such error once before, hope this helps.</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 1849194,
      "author_name": "aleksandrkruchinin",
      "author_url": "",
      "post_date": "07/09/2022 09:43:14",
      "content": "<p>There may be a problem with the function mask2rle? Try <strong>rle_encode_less_memory</strong> from here<br>\n<a href=\"https://www.kaggle.com/code/realneuralnetwork/fork-of-inference-fastai-baseline\" target=\"_blank\">https://www.kaggle.com/code/realneuralnetwork/fork-of-inference-fastai-baseline</a></p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 1888182,
      "author_name": "vominhcong05",
      "author_url": "",
      "post_date": "08/07/2022 12:07:47",
      "content": "<p>Hello <a href=\"https://www.kaggle.com/muki2003\" target=\"_blank\">@muki2003</a>, I am facing the same problem. Have you solved it?</p>",
      "votes": null,
      "replies": [
        {
          "id": 1888374,
          "author_name": "muki2003",
          "author_url": "",
          "post_date": "08/07/2022 14:14:40",
          "content": "<p>Yeah <a href=\"https://www.kaggle.com/vominhcong05\" target=\"_blank\">@vominhcong05</a> </p>\n<p>Check Out my Submission Notebook<br>\n<a href=\"https://www.kaggle.com/code/muki2003/submission-hubmap-hpa-u-net-cnn\" target=\"_blank\">https://www.kaggle.com/code/muki2003/submission-hubmap-hpa-u-net-cnn</a></p>\n<p>Still you have any issue tag me !</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 1890064,
          "author_name": "vominhcong05",
          "author_url": "",
          "post_date": "08/08/2022 14:21:29",
          "content": "<p>Hi <a href=\"https://www.kaggle.com/muki2003\" target=\"_blank\">@muki2003</a> , thank you very much. I finally submitted my own submission successfully. <br>\nI just loaded <code>sample_submission.csv</code> file and then replace <code>rle</code> values with my predicted rle. <br>\nI still have no idea why it works. It seems that <code>rle</code> dtype should be \"something\" exactly same to \"rle\" dtype from <code>sample_submission.csv</code>.  </p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 1890146,
          "author_name": "muki2003",
          "author_url": "",
          "post_date": "08/08/2022 15:13:08",
          "content": "<p><a href=\"https://www.kaggle.com/vominhcong05\" target=\"_blank\">@vominhcong05</a> Keep going !</p>",
          "votes": null,
          "replies": []
        }
      ]
    }
  ],
  "raw_markdown_by_id": {
    "1845649": "Here is my submission notebook run for a long time and returens submission score error.\nhttps://www.kaggle.com/code/muki2003/submission-hubmap-hpa-u-net-cnn\n\nwhat I have done wrong ?",
    "1845933": "Hi, \n\nI think the problem could be that the memory is not big enough to load the raw tiff file.\nIn the data description, they said: \n\n\"Expect roughly 550 images in the hidden test set. All HPA images are 3000 x 3000 pixels with a tissue area within the image around 2500 x 2500 pixels. The HuBMAP images range in size from 4500x4500 down to 160x160 pixels.\"",
    "1845965": "Yeah @zhijianli but **I am not loaded all image**\n\n```\nfor i, filename in tqdm(enumerate(glob.glob('../input/hubmap-organ-segmentation/test_images/*.tiff')), \n                        total = len(list(glob.glob('../input/hubmap-organ-segmentation/test_images/*.tiff')))):\n\n    test_image = tiff.imread(filename) / 255.\n    test_image = resize(test_image, (256, 256, 3))\n    \n    predicted = model.predict(test_image.reshape(-1,256,256,3))  # Predicting the Imagee\n    predicted = predicted.reshape(256,256)\n    \n    final_preds_mask.append(predicted.round()) # Mask\n    final_pred_image.append(test_image) # Image\n```\n\n**Loading image one by one and resizing to 256x256.**\n\nAlso, the Error is Submission Score Error",
    "1846785": "Is the size of mask right? I think the size of mask should be the original shape in test.csv",
    "1846854": "muki2003 Sure I will check it up.",
    "1847966": "I think this is a simple error on saving the submission. Set the index=False for the save function. \n\n`df_ssub.to_csv('submission.csv', index=False)`\n\nI encountered such error once before, hope this helps.",
    "1849194": "There may be a problem with the function mask2rle? Try **rle_encode_less_memory** from here\nhttps://www.kaggle.com/code/realneuralnetwork/fork-of-inference-fastai-baseline",
    "1888182": "Hello @muki2003, I am facing the same problem. Have you solved it?",
    "1888374": "Yeah @vominhcong05 \n\nCheck Out my Submission Notebook\nhttps://www.kaggle.com/code/muki2003/submission-hubmap-hpa-u-net-cnn\n\nStill you have any issue tag me !",
    "1890064": "Hi @muki2003 , thank you very much. I finally submitted my own submission successfully. \nI just loaded `sample_submission.csv` file and then replace `rle` values with my predicted rle. \nI still have no idea why it works. It seems that `rle` dtype should be \"something\" exactly same to \"rle\" dtype from `sample_submission.csv`.",
    "1890146": "vominhcong05 Keep going !"
  },
  "source": "meta"
}