{
  "id": 412628,
  "title": "Couldn't get the submission work, keep getting \"Notebook threw exception\"",
  "url": "/competitions/benetech-making-graphs-accessible/discussion/412628",
  "author_name": "",
  "post_date": "2023-05-24T14:07:21.841249600Z",
  "votes": 2,
  "comment_count": 6,
  "views": 0,
  "content": "<p>The notebook works all fine on the test examples and on a big set of training data. <br>\nI searched for solutions on kaggle and tried the fixes mentioned by other ppl,<br>\nso far I've tried</p>\n<ul>\n<li>cleaned up the data type in prediction, </li>\n<li>set the num_worker to 1,  </li>\n<li>and checked the resource usage on both CPU and GPU.  </li>\n</ul>\n<p>but still couldn't get it working.  Is there anything else I missed? </p>\n<p>With the only info. <strong>Notebook threw exception</strong>,  it's really hard to debug.  </p>\n<p>--------Update---------<br>\nEnded up using a try-catch around a big chunk of my newly added functions then make it work. </p>",
  "messages": [
    {
      "id": "2272463",
      "postDate": "05/24/2023 14:07:21",
      "content": "<p>The notebook works all fine on the test examples and on a big set of training data. <br>\nI searched for solutions on kaggle and tried the fixes mentioned by other ppl,<br>\nso far I've tried</p>\n<ul>\n<li>cleaned up the data type in prediction, </li>\n<li>set the num_worker to 1,  </li>\n<li>and checked the resource usage on both CPU and GPU.  </li>\n</ul>\n<p>but still couldn't get it working.  Is there anything else I missed? </p>\n<p>With the only info. <strong>Notebook threw exception</strong>,  it's really hard to debug.  </p>\n<p>--------Update---------<br>\nEnded up using a try-catch around a big chunk of my newly added functions then make it work. </p>",
      "rawMarkdown": "The notebook works all fine on the test examples and on a big set of training data. \nI searched for solutions on kaggle and tried the fixes mentioned by other ppl,\nso far I've tried\n* cleaned up the data type in prediction, \n* set the num_worker to 1,  \n* and checked the resource usage on both CPU and GPU.  \n\nbut still couldn't get it working.  Is there anything else I missed? \n\nWith the only info. **Notebook threw exception**,  it's really hard to debug.  \n\n--------Update---------\nEnded up using a try-catch around a big chunk of my newly added functions then make it work.",
      "votes": null
    },
    {
      "id": "2272718",
      "postDate": "05/24/2023 17:18:55",
      "content": "<p>Unfortunately the <code>Notebook threw exception</code> is very code-dependent. In the past I've solved this error by executing my code up to a certain cell and then submitting a dummy submission. This allowed me to narrow down which cell caused the problem. </p>\n<p>Other fix would be to implement <code>try</code> and <code>except</code> logics in places where you suspect the error may exist. Good luck.</p>",
      "rawMarkdown": "Unfortunately the `Notebook threw exception` is very code-dependent. In the past I've solved this error by executing my code up to a certain cell and then submitting a dummy submission. This allowed me to narrow down which cell caused the problem. \n\nOther fix would be to implement `try` and `except` logics in places where you suspect the error may exist. Good luck.",
      "votes": null
    },
    {
      "id": "2272887",
      "postDate": "05/24/2023 20:18:12",
      "content": "<p><code>In the past I've solved this error by executing my code up to a certain cell and then submitting a dummy submission.</code></p>\n<p>This sounds a bit tedious, hope I don't need to go that way. 👀 Thanks for the tips. </p>",
      "rawMarkdown": "` In the past I've solved this error by executing my code up to a certain cell and then submitting a dummy submission.`\n\nThis sounds a bit tedious, hope I don't need to go that way. 👀 Thanks for the tips.",
      "votes": null
    },
    {
      "id": "2272971",
      "postDate": "05/24/2023 22:06:08",
      "content": "<p>You may try to use training data (or part of it) as test data and run the notebook to examine the behaviour when the test data is not just 5 images. This might generate the error you get.  </p>",
      "rawMarkdown": "You may try to use training data (or part of it) as test data and run the notebook to examine the behaviour when the test data is not just 5 images. This might generate the error you get.",
      "votes": null
    },
    {
      "id": "2274052",
      "postDate": "05/25/2023 15:28:48",
      "content": "<p>Yeah, I did.</p>",
      "rawMarkdown": "Yeah, I did.",
      "votes": null
    },
    {
      "id": "2276430",
      "postDate": "05/26/2023 19:42:11",
      "content": "<p>did you find the solution? I also couldn't solve this problem yet. you can help me ?</p>",
      "rawMarkdown": "did you find the solution? I also couldn't solve this problem yet. you can help me ?",
      "votes": null
    },
    {
      "id": "2276588",
      "postDate": "05/27/2023 03:41:01",
      "content": "<p>Have you tried all these steps I mentioned in the post? <br>\nI solved this issue with a combination of <code>executing my code up to a certain cell and then submitting a dummy submission.</code> and <code>implement try and except logic in places where you suspect the error may exist</code> as <a href=\"https://www.kaggle.com/alejopaullier\" target=\"_blank\">@alejopaullier</a>  mentioned above.</p>",
      "rawMarkdown": "Have you tried all these steps I mentioned in the post? \nI solved this issue with a combination of `executing my code up to a certain cell and then submitting a dummy submission.` and `implement try and except logic in places where you suspect the error may exist` as @alejopaullier  mentioned above.",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 2272718,
      "author_name": "alejopaullier",
      "author_url": "",
      "post_date": "05/24/2023 17:18:55",
      "content": "<p>Unfortunately the <code>Notebook threw exception</code> is very code-dependent. In the past I've solved this error by executing my code up to a certain cell and then submitting a dummy submission. This allowed me to narrow down which cell caused the problem. </p>\n<p>Other fix would be to implement <code>try</code> and <code>except</code> logics in places where you suspect the error may exist. Good luck.</p>",
      "votes": null,
      "replies": [
        {
          "id": 2272887,
          "author_name": "cooleel",
          "author_url": "",
          "post_date": "05/24/2023 20:18:12",
          "content": "<p><code>In the past I've solved this error by executing my code up to a certain cell and then submitting a dummy submission.</code></p>\n<p>This sounds a bit tedious, hope I don't need to go that way. 👀 Thanks for the tips. </p>",
          "votes": null,
          "replies": []
        }
      ]
    },
    {
      "id": 2272971,
      "author_name": "asalhi",
      "author_url": "",
      "post_date": "05/24/2023 22:06:08",
      "content": "<p>You may try to use training data (or part of it) as test data and run the notebook to examine the behaviour when the test data is not just 5 images. This might generate the error you get.  </p>",
      "votes": null,
      "replies": [
        {
          "id": 2274052,
          "author_name": "cooleel",
          "author_url": "",
          "post_date": "05/25/2023 15:28:48",
          "content": "<p>Yeah, I did.</p>",
          "votes": null,
          "replies": [
            {
              "id": 2276430,
              "author_name": "chaimaekharbouch",
              "author_url": "",
              "post_date": "05/26/2023 19:42:11",
              "content": "<p>did you find the solution? I also couldn't solve this problem yet. you can help me ?</p>",
              "votes": null,
              "replies": [
                {
                  "id": 2276588,
                  "author_name": "cooleel",
                  "author_url": "",
                  "post_date": "05/27/2023 03:41:01",
                  "content": "<p>Have you tried all these steps I mentioned in the post? <br>\nI solved this issue with a combination of <code>executing my code up to a certain cell and then submitting a dummy submission.</code> and <code>implement try and except logic in places where you suspect the error may exist</code> as <a href=\"https://www.kaggle.com/alejopaullier\" target=\"_blank\">@alejopaullier</a>  mentioned above.</p>",
                  "votes": null,
                  "replies": []
                }
              ]
            }
          ]
        }
      ]
    }
  ],
  "raw_markdown_by_id": {
    "2272463": "The notebook works all fine on the test examples and on a big set of training data. \nI searched for solutions on kaggle and tried the fixes mentioned by other ppl,\nso far I've tried\n* cleaned up the data type in prediction, \n* set the num_worker to 1,  \n* and checked the resource usage on both CPU and GPU.  \n\nbut still couldn't get it working.  Is there anything else I missed? \n\nWith the only info. **Notebook threw exception**,  it's really hard to debug.  \n\n--------Update---------\nEnded up using a try-catch around a big chunk of my newly added functions then make it work.",
    "2272718": "Unfortunately the `Notebook threw exception` is very code-dependent. In the past I've solved this error by executing my code up to a certain cell and then submitting a dummy submission. This allowed me to narrow down which cell caused the problem. \n\nOther fix would be to implement `try` and `except` logics in places where you suspect the error may exist. Good luck.",
    "2272887": "` In the past I've solved this error by executing my code up to a certain cell and then submitting a dummy submission.`\n\nThis sounds a bit tedious, hope I don't need to go that way. 👀 Thanks for the tips.",
    "2272971": "You may try to use training data (or part of it) as test data and run the notebook to examine the behaviour when the test data is not just 5 images. This might generate the error you get.",
    "2274052": "Yeah, I did.",
    "2276430": "did you find the solution? I also couldn't solve this problem yet. you can help me ?",
    "2276588": "Have you tried all these steps I mentioned in the post? \nI solved this issue with a combination of `executing my code up to a certain cell and then submitting a dummy submission.` and `implement try and except logic in places where you suspect the error may exist` as @alejopaullier  mentioned above."
  },
  "source": "meta"
}