{
  "id": 425999,
  "title": "[mmdet3.1 submit error]Submission CSV Not Found",
  "url": "/competitions/hubmap-hacking-the-human-vasculature/discussion/425999",
  "author_name": "Ksana",
  "post_date": "2023-07-21T09:58:07.667000",
  "votes": 1,
  "comment_count": 20,
  "views": 0,
  "content": "<p>I just use the inference notebook from <br>\n<a href=\"https://www.kaggle.com/Rabbit\" target=\"_blank\">@Rabbit</a> <a href=\"https://www.kaggle.com/code/nghiahoangtrung/hubmap-mmdet3-1-single-fold-inference\" target=\"_blank\">https://www.kaggle.com/code/nghiahoangtrung/hubmap-mmdet3-1-single-fold-inference</a>.<br>\nThis submission usually works fine, but sometimes it gets [Submission CSV Not Found], especially when the file size is large.</p>",
  "messages": [
    {
      "id": 2356222,
      "postDate": "2023-07-24T03:41:36.227Z",
      "content": "<p>Finally, I got it, It's a matter of formatting. You can found the different with <a href=\"https://www.kaggle.com/code/atom1231/hubmap-mmdet-2-26-public-inference\" target=\"_blank\">https://www.kaggle.com/code/atom1231/hubmap-mmdet-2-26-public-inference</a>.</p>",
      "rawMarkdown": "Finally, I got it, It's a matter of formatting. You can found the different with https://www.kaggle.com/code/atom1231/hubmap-mmdet-2-26-public-inference.",
      "votes": 1,
      "replies": [
        {
          "id": 2359863,
          "postDate": "2023-07-26T12:03:29.817Z",
          "content": "<p>I can't find the difference from them.Could you tell me?</p>",
          "rawMarkdown": "I can't find the difference from them.Could you tell me?",
          "replies": [
            {
              "id": 2360756,
              "postDate": "2023-07-27T02:07:19.473Z",
              "content": "<p>m = 0<br>\nfor label, score, mask in zip(labels, scores, masks):<br>\n    if(label==0): #blood case <br>\n        sg = mask.astype(np.uint8)<br>\n        kernel = np.ones(shape=(3, 3), dtype=np.uint8)<br>\n        binary_mask = cv2.dilate(sg, kernel, 3)    <br>\n        binary_mask = binary_mask.astype(bool)                    <br>\n        #-------------------------<br>\n         encoded = encode_binary_mask(binary_mask)<br>\n        if m==0:  # difference<br>\n            pred_string += f\"0 {score} {encoded.decode('utf-8')}\"<br>\n            m=m+1<br>\n        else:<br>\n            pred_string += f\" 0 {score} {encoded.decode('utf-8')}\"</p>",
              "rawMarkdown": "    m = 0\n    for label, score, mask in zip(labels, scores, masks):\n        if(label==0): #blood case \n            sg = mask.astype(np.uint8)\n            kernel = np.ones(shape=(3, 3), dtype=np.uint8)\n            binary_mask = cv2.dilate(sg, kernel, 3)    \n            binary_mask = binary_mask.astype(bool)                    \n            #-------------------------\n\n            encoded = encode_binary_mask(binary_mask)\n            if m==0:  # difference\n                pred_string += f\"0 {score} {encoded.decode('utf-8')}\"\n                m=m+1\n            else:\n                pred_string += f\" 0 {score} {encoded.decode('utf-8')}\""
            },
            {
              "id": 2360767,
              "postDate": "2023-07-27T02:31:36.980Z",
              "rawMarkdown": "",
              "isDeleted": true
            },
            {
              "id": 2360769,
              "postDate": "2023-07-27T02:32:54.617Z",
              "rawMarkdown": "",
              "isDeleted": true
            },
            {
              "id": 2360770,
              "postDate": "2023-07-27T02:33:59.617Z",
              "content": "<p>`pred_strings = []</p>\n<p>for label, score, mask in zip(labels,scores, masks):</p>\n<pre><code>pred_strings_txt = \n\n label==:\n\n    pred_strings_txt += \n\n:\n\n    pred_strings_txt += \n\npred_strings.append(pred_strings_txt)\n</code></pre>\n<p>prediction_string.append(\" \".join(pred_strings)) # here, I think this is equal to 'm==0' in result,but 'submission csv not found still exists'`</p>",
              "rawMarkdown": "`pred_strings = []\n\nfor label, score, mask in zip(labels,scores, masks):\n\n    pred_strings_txt = \"\"\n\n    if label==0:\n\n        pred_strings_txt += f\"0 {score} {encode_binary_mask(mask.astype(np.bool_)).decode('utf-8')}\"\n\n    else:\n\n        pred_strings_txt += f\"0 {score} {encode_binary_mask(mask.astype(np.bool_)).decode('utf-8')}\"\n\n    pred_strings.append(pred_strings_txt)\n\nprediction_string.append(\" \".join(pred_strings)) # here, I think this is equal to 'm==0' in result,but 'submission csv not found still exists'`"
            },
            {
              "id": 2360784,
              "postDate": "2023-07-27T02:49:05.730Z",
              "content": "<blockquote>\n  <p>I think this is equal to 'm==0' in result<br>\n  no, <code>lable = 0</code> only mean it's blood case,  <code>m=0</code> mean it's the result's first mask.</p>\n</blockquote>",
              "rawMarkdown": "> I think this is equal to 'm==0' in result\nno, `lable = 0` only mean it's blood case,  `m=0` mean it's the result's first mask."
            },
            {
              "id": 2360821,
              "postDate": "2023-07-27T03:34:20.773Z",
              "content": "<p>Yes.But \" \".join(pred_strings) make every mask separate by blank space</p>",
              "rawMarkdown": "Yes.But \" \".join(pred_strings) make every mask separate by blank space"
            },
            {
              "id": 2360873,
              "postDate": "2023-07-27T04:30:39.417Z",
              "content": "<p>I checked it again, guess the error like that.Pay attention to the number of spaces.</p>\n<blockquote>\n  <blockquote>\n    <blockquote>\n      <p>\"\"+\"how\"+\" are\"+\"\"+\" you\"<br>\n      'how are you'<br>\n      \" \".join([\"how\", \"are\",\"\", \"you\"])<br>\n      'how are  you'</p>\n    </blockquote>\n  </blockquote>\n</blockquote>",
              "rawMarkdown": "I checked it again, guess the error like that.Pay attention to the number of spaces.\n\n>>> \"\"+\"how\"+\" are\"+\"\"+\" you\"\n'how are you'\n>>> \" \".join([\"how\", \"are\",\"\", \"you\"])\n'how are  you'\n"
            }
          ]
        }
      ]
    },
    {
      "id": 2352872,
      "postDate": "2023-07-21T10:09:57.480Z",
      "content": "<p>It doesn’t seem to be a GPU problem.I encountered this problem when I used the same model and configuration but only changed the rcnn score_thr.</p>",
      "rawMarkdown": "It doesn’t seem to be a GPU problem.I encountered this problem when I used the same model and configuration but only changed the rcnn score_thr.",
      "votes": 1
    },
    {
      "id": 2352849,
      "postDate": "2023-07-21T09:58:07.667Z",
      "content": "<p>I just use the inference notebook from <br>\n<a href=\"https://www.kaggle.com/Rabbit\" target=\"_blank\">@Rabbit</a> <a href=\"https://www.kaggle.com/code/nghiahoangtrung/hubmap-mmdet3-1-single-fold-inference\" target=\"_blank\">https://www.kaggle.com/code/nghiahoangtrung/hubmap-mmdet3-1-single-fold-inference</a>.<br>\nThis submission usually works fine, but sometimes it gets [Submission CSV Not Found], especially when the file size is large.</p>",
      "rawMarkdown": "I just use the inference notebook from \n@Rabbit https://www.kaggle.com/code/nghiahoangtrung/hubmap-mmdet3-1-single-fold-inference.\nThis submission usually works fine, but sometimes it gets [Submission CSV Not Found], especially when the file size is large.",
      "votes": 1
    },
    {
      "id": 2358876,
      "postDate": "2023-07-25T20:04:06.087Z",
      "content": "<p>have you solved the problem? I'm facing the same error. </p>",
      "rawMarkdown": "have you solved the problem? I'm facing the same error. ",
      "replies": [
        {
          "id": 2359123,
          "postDate": "2023-07-26T02:30:27.097Z",
          "content": "<p>It's a matter of formatting. You can found the different with <a href=\"https://www.kaggle.com/code/atom1231/hubmap-mmdet-2-26-public-inference\" target=\"_blank\">https://www.kaggle.com/code/atom1231/hubmap-mmdet-2-26-public-inference</a>.</p>",
          "rawMarkdown": "It's a matter of formatting. You can found the different with https://www.kaggle.com/code/atom1231/hubmap-mmdet-2-26-public-inference."
        }
      ]
    },
    {
      "id": 2354518,
      "postDate": "2023-07-22T14:25:55.243Z",
      "content": "<p>Out of curiosity: did you mange to make TTA work with 3.x version of mmdet?</p>",
      "rawMarkdown": "Out of curiosity: did you mange to make TTA work with 3.x version of mmdet?",
      "replies": [
        {
          "id": 2354541,
          "postDate": "2023-07-22T14:45:16.650Z",
          "content": "<p>I tried to add the TTA module, but there seems to be some errors,andLB score dropped to 0.09 instead. I am a Kaggle novice.I want to  share the result that I added TTA module and It didn't work as expected to boost LB score, maybe something wrong as I add and modify code. Here is my code and I am working on finding the problem.Link:  <a href=\"https://www.kaggle.com/shangjianzhong/try-adding-tta-to-maskrcnn-but-failed-lb-0-09\" target=\"_blank\">https://www.kaggle.com/shangjianzhong/try-adding-tta-to-maskrcnn-but-failed-lb-0-09</a></p>",
          "rawMarkdown": "I tried to add the TTA module, but there seems to be some errors,andLB score dropped to 0.09 instead. I am a Kaggle novice.I want to  share the result that I added TTA module and It didn't work as expected to boost LB score, maybe something wrong as I add and modify code. Here is my code and I am working on finding the problem.Link:  https://www.kaggle.com/shangjianzhong/try-adding-tta-to-maskrcnn-but-failed-lb-0-09",
          "isDeleted": true
        },
        {
          "id": 2354551,
          "postDate": "2023-07-22T14:53:17.503Z",
          "content": "<p>My original idea was to flip the image from multiple angles before inputting the model. After inputting the model, I rotated the mask and box respectively without changing the score and label. Did I drop the LB because I didn't consider Non-Maximum Suppression?</p>",
          "rawMarkdown": "My original idea was to flip the image from multiple angles before inputting the model. After inputting the model, I rotated the mask and box respectively without changing the score and label. Did I drop the LB because I didn't consider Non-Maximum Suppression?",
          "votes": 1,
          "isDeleted": true,
          "replies": [
            {
              "id": 2354568,
              "postDate": "2023-07-22T15:14:59.057Z",
              "content": "<p>That's a good question, it could be. I am also new to TTA for segmentation. My idea was to use the TTA from mmdet <code>MultiScaleFlipAug</code> but it seems to be broken in the 3.x version.<br>\nI will give this more tries and share if I find something interesting.</p>",
              "rawMarkdown": "That's a good question, it could be. I am also new to TTA for segmentation. My idea was to use the TTA from mmdet `MultiScaleFlipAug` but it seems to be broken in the 3.x version.\nI will give this more tries and share if I find something interesting."
            },
            {
              "id": 2356372,
              "postDate": "2023-07-24T06:14:16.037Z",
              "content": "<p>I found this migration guide <a href=\"https://mmdetection.readthedocs.io/en/latest/migration/config_migration.html\" target=\"_blank\">https://mmdetection.readthedocs.io/en/latest/migration/config_migration.html</a>.<br>\nIt seems that the <code>MultiScaleFlipAug</code> has been removed.</p>",
              "rawMarkdown": "I found this migration guide https://mmdetection.readthedocs.io/en/latest/migration/config_migration.html.\nIt seems that the `MultiScaleFlipAug` has been removed."
            },
            {
              "id": 2356376,
              "postDate": "2023-07-24T06:19:00.377Z",
              "content": "<p>I try tta use the solution.<a href=\"https://github.com/open-mmlab/mmyolo/blob/dc85144fab20a970341550794857a2f2f9b11564/demo/large_image_demo.py#L109-L129\" target=\"_blank\">https://github.com/open-mmlab/mmyolo/blob/dc85144fab20a970341550794857a2f2f9b11564/demo/large_image_demo.py#L109-L129</a>.<br>\nbut get the error  <code>AssertionError: TTA of instance segmentation does not support now.</code><br>\nmaybe should try this. <a href=\"https://www.kaggle.com/competitions/hubmap-hacking-the-human-vasculature/discussion/424919\" target=\"_blank\">https://www.kaggle.com/competitions/hubmap-hacking-the-human-vasculature/discussion/424919</a></p>",
              "rawMarkdown": "I try tta use the solution.https://github.com/open-mmlab/mmyolo/blob/dc85144fab20a970341550794857a2f2f9b11564/demo/large_image_demo.py#L109-L129.\nbut get the error  `AssertionError: TTA of instance segmentation does not support now.`\nmaybe should try this. https://www.kaggle.com/competitions/hubmap-hacking-the-human-vasculature/discussion/424919",
              "votes": 1
            }
          ]
        }
      ]
    },
    {
      "id": 2353809,
      "postDate": "2023-07-22T03:29:31.167Z",
      "content": "<p>The situation may be related to the wrong environment of some packages. I also encountered such a situation. You can put your notebook log in the comment area. The original author updated the name of the installation package dataset, etc., and the code needs to be adjusted accordingly.</p>",
      "rawMarkdown": "The situation may be related to the wrong environment of some packages. I also encountered such a situation. You can put your notebook log in the comment area. The original author updated the name of the installation package dataset, etc., and the code needs to be adjusted accordingly.",
      "isDeleted": true,
      "replies": [
        {
          "id": 2353856,
          "postDate": "2023-07-22T04:43:29.697Z",
          "content": "<p>Thanks, i 'll try it later.</p>",
          "rawMarkdown": "Thanks, i 'll try it later."
        }
      ]
    }
  ],
  "comments": [
    {
      "id": 2356222,
      "author_name": "Ksana",
      "author_url": "",
      "post_date": "2023-07-24T03:41:36.227000",
      "content": "<p>Finally, I got it, It's a matter of formatting. You can found the different with <a href=\"https://www.kaggle.com/code/atom1231/hubmap-mmdet-2-26-public-inference\" target=\"_blank\">https://www.kaggle.com/code/atom1231/hubmap-mmdet-2-26-public-inference</a>.</p>",
      "votes": 1,
      "replies": [
        {
          "id": 2359863,
          "author_name": "yinan-kaggle",
          "author_url": "",
          "post_date": "2023-07-26T12:03:29.817000",
          "content": "<p>I can't find the difference from them.Could you tell me?</p>",
          "votes": 0,
          "replies": [
            {
              "id": 2360756,
              "author_name": "Ksana",
              "author_url": "",
              "post_date": "2023-07-27T02:07:19.473000",
              "content": "<p>m = 0<br>\nfor label, score, mask in zip(labels, scores, masks):<br>\n    if(label==0): #blood case <br>\n        sg = mask.astype(np.uint8)<br>\n        kernel = np.ones(shape=(3, 3), dtype=np.uint8)<br>\n        binary_mask = cv2.dilate(sg, kernel, 3)    <br>\n        binary_mask = binary_mask.astype(bool)                    <br>\n        #-------------------------<br>\n         encoded = encode_binary_mask(binary_mask)<br>\n        if m==0:  # difference<br>\n            pred_string += f\"0 {score} {encoded.decode('utf-8')}\"<br>\n            m=m+1<br>\n        else:<br>\n            pred_string += f\" 0 {score} {encoded.decode('utf-8')}\"</p>",
              "votes": 0,
              "replies": []
            },
            {
              "id": 2360767,
              "author_name": "",
              "author_url": "",
              "post_date": "2023-07-27T02:31:36.980000",
              "content": "",
              "votes": 0,
              "replies": []
            },
            {
              "id": 2360769,
              "author_name": "",
              "author_url": "",
              "post_date": "2023-07-27T02:32:54.617000",
              "content": "",
              "votes": 0,
              "replies": []
            },
            {
              "id": 2360770,
              "author_name": "yinan-kaggle",
              "author_url": "",
              "post_date": "2023-07-27T02:33:59.617000",
              "content": "<p>`pred_strings = []</p>\n<p>for label, score, mask in zip(labels,scores, masks):</p>\n<pre><code>pred_strings_txt = \n\n label==:\n\n    pred_strings_txt += \n\n:\n\n    pred_strings_txt += \n\npred_strings.append(pred_strings_txt)\n</code></pre>\n<p>prediction_string.append(\" \".join(pred_strings)) # here, I think this is equal to 'm==0' in result,but 'submission csv not found still exists'`</p>",
              "votes": 0,
              "replies": []
            },
            {
              "id": 2360784,
              "author_name": "Ksana",
              "author_url": "",
              "post_date": "2023-07-27T02:49:05.730000",
              "content": "<blockquote>\n  <p>I think this is equal to 'm==0' in result<br>\n  no, <code>lable = 0</code> only mean it's blood case,  <code>m=0</code> mean it's the result's first mask.</p>\n</blockquote>",
              "votes": 0,
              "replies": []
            },
            {
              "id": 2360821,
              "author_name": "yinan-kaggle",
              "author_url": "",
              "post_date": "2023-07-27T03:34:20.773000",
              "content": "<p>Yes.But \" \".join(pred_strings) make every mask separate by blank space</p>",
              "votes": 0,
              "replies": []
            },
            {
              "id": 2360873,
              "author_name": "Ksana",
              "author_url": "",
              "post_date": "2023-07-27T04:30:39.417000",
              "content": "<p>I checked it again, guess the error like that.Pay attention to the number of spaces.</p>\n<blockquote>\n  <blockquote>\n    <blockquote>\n      <p>\"\"+\"how\"+\" are\"+\"\"+\" you\"<br>\n      'how are you'<br>\n      \" \".join([\"how\", \"are\",\"\", \"you\"])<br>\n      'how are  you'</p>\n    </blockquote>\n  </blockquote>\n</blockquote>",
              "votes": 0,
              "replies": []
            }
          ]
        }
      ]
    },
    {
      "id": 2352872,
      "author_name": "Ksana",
      "author_url": "",
      "post_date": "2023-07-21T10:09:57.480000",
      "content": "<p>It doesn’t seem to be a GPU problem.I encountered this problem when I used the same model and configuration but only changed the rcnn score_thr.</p>",
      "votes": 1,
      "replies": []
    },
    {
      "id": 2358876,
      "author_name": "CocaKoala77",
      "author_url": "",
      "post_date": "2023-07-25T20:04:06.087000",
      "content": "<p>have you solved the problem? I'm facing the same error. </p>",
      "votes": 0,
      "replies": [
        {
          "id": 2359123,
          "author_name": "Ksana",
          "author_url": "",
          "post_date": "2023-07-26T02:30:27.097000",
          "content": "<p>It's a matter of formatting. You can found the different with <a href=\"https://www.kaggle.com/code/atom1231/hubmap-mmdet-2-26-public-inference\" target=\"_blank\">https://www.kaggle.com/code/atom1231/hubmap-mmdet-2-26-public-inference</a>.</p>",
          "votes": 0,
          "replies": []
        }
      ]
    },
    {
      "id": 2354518,
      "author_name": "Yassine Alouini",
      "author_url": "",
      "post_date": "2023-07-22T14:25:55.243000",
      "content": "<p>Out of curiosity: did you mange to make TTA work with 3.x version of mmdet?</p>",
      "votes": 0,
      "replies": [
        {
          "id": 2354541,
          "author_name": "",
          "author_url": "",
          "post_date": "2023-07-22T14:45:16.650000",
          "content": "<p>I tried to add the TTA module, but there seems to be some errors,andLB score dropped to 0.09 instead. I am a Kaggle novice.I want to  share the result that I added TTA module and It didn't work as expected to boost LB score, maybe something wrong as I add and modify code. Here is my code and I am working on finding the problem.Link:  <a href=\"https://www.kaggle.com/shangjianzhong/try-adding-tta-to-maskrcnn-but-failed-lb-0-09\" target=\"_blank\">https://www.kaggle.com/shangjianzhong/try-adding-tta-to-maskrcnn-but-failed-lb-0-09</a></p>",
          "votes": 0,
          "replies": []
        },
        {
          "id": 2354551,
          "author_name": "",
          "author_url": "",
          "post_date": "2023-07-22T14:53:17.503000",
          "content": "<p>My original idea was to flip the image from multiple angles before inputting the model. After inputting the model, I rotated the mask and box respectively without changing the score and label. Did I drop the LB because I didn't consider Non-Maximum Suppression?</p>",
          "votes": 1,
          "replies": [
            {
              "id": 2354568,
              "author_name": "Yassine Alouini",
              "author_url": "",
              "post_date": "2023-07-22T15:14:59.057000",
              "content": "<p>That's a good question, it could be. I am also new to TTA for segmentation. My idea was to use the TTA from mmdet <code>MultiScaleFlipAug</code> but it seems to be broken in the 3.x version.<br>\nI will give this more tries and share if I find something interesting.</p>",
              "votes": 0,
              "replies": []
            },
            {
              "id": 2356372,
              "author_name": "Yassine Alouini",
              "author_url": "",
              "post_date": "2023-07-24T06:14:16.037000",
              "content": "<p>I found this migration guide <a href=\"https://mmdetection.readthedocs.io/en/latest/migration/config_migration.html\" target=\"_blank\">https://mmdetection.readthedocs.io/en/latest/migration/config_migration.html</a>.<br>\nIt seems that the <code>MultiScaleFlipAug</code> has been removed.</p>",
              "votes": 0,
              "replies": []
            },
            {
              "id": 2356376,
              "author_name": "Ksana",
              "author_url": "",
              "post_date": "2023-07-24T06:19:00.377000",
              "content": "<p>I try tta use the solution.<a href=\"https://github.com/open-mmlab/mmyolo/blob/dc85144fab20a970341550794857a2f2f9b11564/demo/large_image_demo.py#L109-L129\" target=\"_blank\">https://github.com/open-mmlab/mmyolo/blob/dc85144fab20a970341550794857a2f2f9b11564/demo/large_image_demo.py#L109-L129</a>.<br>\nbut get the error  <code>AssertionError: TTA of instance segmentation does not support now.</code><br>\nmaybe should try this. <a href=\"https://www.kaggle.com/competitions/hubmap-hacking-the-human-vasculature/discussion/424919\" target=\"_blank\">https://www.kaggle.com/competitions/hubmap-hacking-the-human-vasculature/discussion/424919</a></p>",
              "votes": 1,
              "replies": []
            }
          ]
        }
      ]
    },
    {
      "id": 2353809,
      "author_name": "",
      "author_url": "",
      "post_date": "2023-07-22T03:29:31.167000",
      "content": "<p>The situation may be related to the wrong environment of some packages. I also encountered such a situation. You can put your notebook log in the comment area. The original author updated the name of the installation package dataset, etc., and the code needs to be adjusted accordingly.</p>",
      "votes": 0,
      "replies": [
        {
          "id": 2353856,
          "author_name": "Ksana",
          "author_url": "",
          "post_date": "2023-07-22T04:43:29.697000",
          "content": "<p>Thanks, i 'll try it later.</p>",
          "votes": 0,
          "replies": []
        }
      ]
    }
  ],
  "raw_markdown_by_id": {
    "2356222": "Finally, I got it, It's a matter of formatting. You can found the different with https://www.kaggle.com/code/atom1231/hubmap-mmdet-2-26-public-inference.",
    "2352872": "It doesn’t seem to be a GPU problem.I encountered this problem when I used the same model and configuration but only changed the rcnn score_thr.",
    "2352849": "I just use the inference notebook from \n@Rabbit https://www.kaggle.com/code/nghiahoangtrung/hubmap-mmdet3-1-single-fold-inference.\nThis submission usually works fine, but sometimes it gets [Submission CSV Not Found], especially when the file size is large.",
    "2358876": "have you solved the problem? I'm facing the same error. ",
    "2354518": "Out of curiosity: did you mange to make TTA work with 3.x version of mmdet?",
    "2353809": "The situation may be related to the wrong environment of some packages. I also encountered such a situation. You can put your notebook log in the comment area. The original author updated the name of the installation package dataset, etc., and the code needs to be adjusted accordingly."
  }
}