{
  "id": 416806,
  "title": "Submission Scoring error- YOLOv8",
  "url": "/competitions/hubmap-hacking-the-human-vasculature/discussion/416806",
  "author_name": "",
  "post_date": "2023-06-13T03:47:17.208164Z",
  "votes": null,
  "comment_count": 8,
  "views": 0,
  "content": "<p><img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F3951798%2F386f3f14b435ff5a7b415fe10e7f7300%2FScreenshot%202023-06-13%20091117.png?generation=1686627956113898&amp;alt=media\" alt=\"\"></p>\n<p>Tried a lot of things, Notebook works fine with Test data, Train data, but throws a submission scoring error everytime. Any help would be appreciated. </p>",
  "messages": [
    {
      "id": "2300139",
      "postDate": "06/13/2023 03:47:17",
      "content": "<p><img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F3951798%2F386f3f14b435ff5a7b415fe10e7f7300%2FScreenshot%202023-06-13%20091117.png?generation=1686627956113898&amp;alt=media\" alt=\"\"></p>\n<p>Tried a lot of things, Notebook works fine with Test data, Train data, but throws a submission scoring error everytime. Any help would be appreciated. </p>",
      "rawMarkdown": "![](https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F3951798%2F386f3f14b435ff5a7b415fe10e7f7300%2FScreenshot%202023-06-13%20091117.png?generation=1686627956113898&alt=media)\n\n\nTried a lot of things, Notebook works fine with Test data, Train data, but throws a submission scoring error everytime. Any help would be appreciated.",
      "votes": null
    },
    {
      "id": "2300140",
      "postDate": "06/13/2023 03:48:39",
      "content": "<p><code>\ndef convYOLOtoCode(multimaskImage, confidence):\n    listString  = []\n    for indx, cc in enumerate(confidence):\n        curMask = np.array(multimaskImage[indx].cpu().numpy(), dtype=np.bool)\n        #print(curMask.shape)\n        rle_code = encode_binary_mask(curMask)\n        listString.append(f\"{0} {cc} {rle_code.decode('utf-8')}\")\n    return \" \".join(listString) \n</code></p>\n<p>Above function is used to generate the masks </p>",
      "rawMarkdown": "`\ndef convYOLOtoCode(multimaskImage, confidence):\n    listString  = []\n    for indx, cc in enumerate(confidence):\n        curMask = np.array(multimaskImage[indx].cpu().numpy(), dtype=np.bool)\n        #print(curMask.shape)\n        rle_code = encode_binary_mask(curMask)\n        listString.append(f\"{0} {cc} {rle_code.decode('utf-8')}\")\n    return \" \".join(listString) \n`\n\nAbove function is used to generate the masks",
      "votes": null
    },
    {
      "id": "2300482",
      "postDate": "06/13/2023 08:10:58",
      "content": "<p>It is solved now. You need all test images id to be present in the submission csv for the scoring to work properly. </p>",
      "rawMarkdown": "It is solved now. You need all test images id to be present in the submission csv for the scoring to work properly.",
      "votes": null
    },
    {
      "id": "2307760",
      "postDate": "06/18/2023 11:54:57",
      "content": "<p>I currently have the exact same issue. Can you elaborate on what you exactly changed and give code examples? Thanks in advance</p>",
      "rawMarkdown": "I currently have the exact same issue. Can you elaborate on what you exactly changed and give code examples? Thanks in advance",
      "votes": null
    },
    {
      "id": "2313615",
      "postDate": "06/22/2023 19:14:22",
      "content": "<p>do you have the:</p>\n<p>TypeError: 'cell' object is not subscriptable [instance segmentation]  </p>\n<p>if you trained and saved yolov8 model on loca machine and used in kaggle notebook?</p>\n<p><a href=\"https://github.com/ultralytics/ultralytics/issues/3165\" target=\"_blank\">https://github.com/ultralytics/ultralytics/issues/3165</a></p>",
      "rawMarkdown": "do you have the:\n\nTypeError: 'cell' object is not subscriptable [instance segmentation]  \n\nif you trained and saved yolov8 model on loca machine and used in kaggle notebook?\n\n\n https://github.com/ultralytics/ultralytics/issues/3165",
      "votes": null
    },
    {
      "id": "2315445",
      "postDate": "06/24/2023 06:20:01",
      "content": "<p>python 3.10 no problem with 3.7<br>\nedit: oh yeah i thought you try to resolve it</p>",
      "rawMarkdown": "python 3.10 no problem with 3.7\nedit: oh yeah i thought you try to resolve it",
      "votes": null
    },
    {
      "id": "2332114",
      "postDate": "07/06/2023 02:15:03",
      "content": "<p>I have encountered the same problem as you. Can you elaborate on the solution? Or could you take a look at your submission.csv. Looking forward to your reply, thank you in advance</p>",
      "rawMarkdown": "I have encountered the same problem as you. Can you elaborate on the solution? Or could you take a look at your submission.csv. Looking forward to your reply, thank you in advance",
      "votes": null
    },
    {
      "id": "2342799",
      "postDate": "07/13/2023 06:57:27",
      "content": "<p>Do you slove this problem? \"72e40acccadf\" is not all test images id?</p>",
      "rawMarkdown": "Do you slove this problem? \"72e40acccadf\" is not all test images id?",
      "votes": null
    },
    {
      "id": "2344249",
      "postDate": "07/14/2023 11:30:27",
      "content": "<p>I did not solve the problem yet, but i think in my case it is a problem of the notebook running out of memory. And yes, the id  \"72e40acccadf\" is of course not the only id in the test set.</p>",
      "rawMarkdown": "I did not solve the problem yet, but i think in my case it is a problem of the notebook running out of memory. And yes, the id  \"72e40acccadf\" is of course not the only id in the test set.",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 2300140,
      "author_name": "dhruvkhatri",
      "author_url": "",
      "post_date": "06/13/2023 03:48:39",
      "content": "<p><code>\ndef convYOLOtoCode(multimaskImage, confidence):\n    listString  = []\n    for indx, cc in enumerate(confidence):\n        curMask = np.array(multimaskImage[indx].cpu().numpy(), dtype=np.bool)\n        #print(curMask.shape)\n        rle_code = encode_binary_mask(curMask)\n        listString.append(f\"{0} {cc} {rle_code.decode('utf-8')}\")\n    return \" \".join(listString) \n</code></p>\n<p>Above function is used to generate the masks </p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 2300482,
      "author_name": "dhruvkhatri",
      "author_url": "",
      "post_date": "06/13/2023 08:10:58",
      "content": "<p>It is solved now. You need all test images id to be present in the submission csv for the scoring to work properly. </p>",
      "votes": null,
      "replies": [
        {
          "id": 2307760,
          "author_name": "felixkonrad",
          "author_url": "",
          "post_date": "06/18/2023 11:54:57",
          "content": "<p>I currently have the exact same issue. Can you elaborate on what you exactly changed and give code examples? Thanks in advance</p>",
          "votes": null,
          "replies": [
            {
              "id": 2342799,
              "author_name": "xiaoxuxu",
              "author_url": "",
              "post_date": "07/13/2023 06:57:27",
              "content": "<p>Do you slove this problem? \"72e40acccadf\" is not all test images id?</p>",
              "votes": null,
              "replies": [
                {
                  "id": 2344249,
                  "author_name": "felixkonrad",
                  "author_url": "",
                  "post_date": "07/14/2023 11:30:27",
                  "content": "<p>I did not solve the problem yet, but i think in my case it is a problem of the notebook running out of memory. And yes, the id  \"72e40acccadf\" is of course not the only id in the test set.</p>",
                  "votes": null,
                  "replies": []
                }
              ]
            }
          ]
        },
        {
          "id": 2332114,
          "author_name": "xiaochaoyang",
          "author_url": "",
          "post_date": "07/06/2023 02:15:03",
          "content": "<p>I have encountered the same problem as you. Can you elaborate on the solution? Or could you take a look at your submission.csv. Looking forward to your reply, thank you in advance</p>",
          "votes": null,
          "replies": []
        }
      ]
    },
    {
      "id": 2313615,
      "author_name": "hengck23",
      "author_url": "",
      "post_date": "06/22/2023 19:14:22",
      "content": "<p>do you have the:</p>\n<p>TypeError: 'cell' object is not subscriptable [instance segmentation]  </p>\n<p>if you trained and saved yolov8 model on loca machine and used in kaggle notebook?</p>\n<p><a href=\"https://github.com/ultralytics/ultralytics/issues/3165\" target=\"_blank\">https://github.com/ultralytics/ultralytics/issues/3165</a></p>",
      "votes": null,
      "replies": [
        {
          "id": 2315445,
          "author_name": "iraqbot",
          "author_url": "",
          "post_date": "06/24/2023 06:20:01",
          "content": "<p>python 3.10 no problem with 3.7<br>\nedit: oh yeah i thought you try to resolve it</p>",
          "votes": null,
          "replies": []
        }
      ]
    }
  ],
  "raw_markdown_by_id": {
    "2300139": "![](https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F3951798%2F386f3f14b435ff5a7b415fe10e7f7300%2FScreenshot%202023-06-13%20091117.png?generation=1686627956113898&alt=media)\n\n\nTried a lot of things, Notebook works fine with Test data, Train data, but throws a submission scoring error everytime. Any help would be appreciated.",
    "2300140": "`\ndef convYOLOtoCode(multimaskImage, confidence):\n    listString  = []\n    for indx, cc in enumerate(confidence):\n        curMask = np.array(multimaskImage[indx].cpu().numpy(), dtype=np.bool)\n        #print(curMask.shape)\n        rle_code = encode_binary_mask(curMask)\n        listString.append(f\"{0} {cc} {rle_code.decode('utf-8')}\")\n    return \" \".join(listString) \n`\n\nAbove function is used to generate the masks",
    "2300482": "It is solved now. You need all test images id to be present in the submission csv for the scoring to work properly.",
    "2307760": "I currently have the exact same issue. Can you elaborate on what you exactly changed and give code examples? Thanks in advance",
    "2313615": "do you have the:\n\nTypeError: 'cell' object is not subscriptable [instance segmentation]  \n\nif you trained and saved yolov8 model on loca machine and used in kaggle notebook?\n\n\n https://github.com/ultralytics/ultralytics/issues/3165",
    "2315445": "python 3.10 no problem with 3.7\nedit: oh yeah i thought you try to resolve it",
    "2332114": "I have encountered the same problem as you. Can you elaborate on the solution? Or could you take a look at your submission.csv. Looking forward to your reply, thank you in advance",
    "2342799": "Do you slove this problem? \"72e40acccadf\" is not all test images id?",
    "2344249": "I did not solve the problem yet, but i think in my case it is a problem of the notebook running out of memory. And yes, the id  \"72e40acccadf\" is of course not the only id in the test set."
  },
  "source": "meta"
}