{
  "id": 460317,
  "title": "[Solved] Notebook Threw Exception problem",
  "url": "/competitions/UBC-OCEAN/discussion/460317",
  "author_name": "Araik Tamazian",
  "post_date": "2023-12-08T17:11:23.347000",
  "votes": 4,
  "comment_count": 8,
  "views": 0,
  "content": "<p>I'm trying to use TF Swin tile-based model (using image preprocessing pipeline by <a href=\"https://www.kaggle.com/jirkaborovec\" target=\"_blank\">@jirkaborovec</a>), but I'm getting <code>Notebook Threw Exception</code> errors at the same time (approx. ~45 min after submitting). I wonder what's the reason for it? Here's my submission notebook:<br>\n<a href=\"https://www.kaggle.com/code/atamazian/ubc-ocean-tf-swin-large-inference-debug\" target=\"_blank\">https://www.kaggle.com/code/atamazian/ubc-ocean-tf-swin-large-inference-debug</a></p>",
  "messages": [
    {
      "id": 2553985,
      "postDate": "2023-12-08T17:11:23.347Z",
      "content": "<p>I'm trying to use TF Swin tile-based model (using image preprocessing pipeline by <a href=\"https://www.kaggle.com/jirkaborovec\" target=\"_blank\">@jirkaborovec</a>), but I'm getting <code>Notebook Threw Exception</code> errors at the same time (approx. ~45 min after submitting). I wonder what's the reason for it? Here's my submission notebook:<br>\n<a href=\"https://www.kaggle.com/code/atamazian/ubc-ocean-tf-swin-large-inference-debug\" target=\"_blank\">https://www.kaggle.com/code/atamazian/ubc-ocean-tf-swin-large-inference-debug</a></p>",
      "rawMarkdown": "I'm trying to use TF Swin tile-based model (using image preprocessing pipeline by @jirkaborovec), but I'm getting `Notebook Threw Exception ` errors at the same time (approx. ~45 min after submitting). I wonder what's the reason for it? Here's my submission notebook:\nhttps://www.kaggle.com/code/atamazian/ubc-ocean-tf-swin-large-inference-debug",
      "votes": 4
    },
    {
      "id": 2554153,
      "postDate": "2023-12-08T20:26:26.687Z",
      "content": "<p>Could you share the exception as the linked notebook does not show any outputs?</p>",
      "rawMarkdown": "Could you share the exception as the linked notebook does not show any outputs?",
      "votes": 1,
      "replies": [
        {
          "id": 2554160,
          "postDate": "2023-12-08T20:48:37.260Z",
          "content": "<p>The notebook successfully runs on the public test set, but crashes on the private test set. Therefore, I'm unable to provide any details (that's the problem).</p>",
          "rawMarkdown": "The notebook successfully runs on the public test set, but crashes on the private test set. Therefore, I'm unable to provide any details (that's the problem)."
        },
        {
          "id": 2555148,
          "postDate": "2023-12-09T17:57:53.043Z",
          "content": "<p>I managed to solve this issue by reducing slicing size from 2048 to 1024.</p>",
          "rawMarkdown": "I managed to solve this issue by reducing slicing size from 2048 to 1024.",
          "votes": 1,
          "replies": [
            {
              "id": 2557236,
              "postDate": "2023-12-11T09:58:08.840Z",
              "content": "<p>Do you think it's helpful? does it change the prediction after reducing the slice size?</p>",
              "rawMarkdown": "Do you think it's helpful? does it change the prediction after reducing the slice size?"
            },
            {
              "id": 2558847,
              "postDate": "2023-12-12T11:47:19.717Z",
              "content": "<p>In fact it does - my model scored terrible since I trained it with slice size of 2048</p>",
              "rawMarkdown": "In fact it does - my model scored terrible since I trained it with slice size of 2048"
            },
            {
              "id": 2558862,
              "postDate": "2023-12-12T11:56:02.987Z",
              "content": "<p>So you still kept the scale factor 0.25 also for your 1024px tiles?</p>",
              "rawMarkdown": "So you still kept the scale factor 0.25 also for your 1024px tiles?"
            },
            {
              "id": 2558949,
              "postDate": "2023-12-12T13:26:44.370Z",
              "content": "<p>No, TF  Swin has weights only for image sizes of 224 and 384. I've modified your code a little, replacing <code>scale</code> parameter with direct definition of final image size (in my case it's 384). Scale parameter of 0.25 corresponds to image size of 512 (for slice size of 2048), and 256 (for slice size of 1024).</p>",
              "rawMarkdown": "No, TF  Swin has weights only for image sizes of 224 and 384. I've modified your code a little, replacing `scale` parameter with direct definition of final image size (in my case it's 384). Scale parameter of 0.25 corresponds to image size of 512 (for slice size of 2048), and 256 (for slice size of 1024)."
            }
          ]
        }
      ]
    },
    {
      "id": 2555953,
      "postDate": "2023-12-10T10:31:43.667Z",
      "content": "<p>The notebook successfully runs</p>",
      "rawMarkdown": "The notebook successfully runs"
    }
  ],
  "comments": [
    {
      "id": 2554153,
      "author_name": "Jirka",
      "author_url": "",
      "post_date": "2023-12-08T20:26:26.687000",
      "content": "<p>Could you share the exception as the linked notebook does not show any outputs?</p>",
      "votes": 1,
      "replies": [
        {
          "id": 2554160,
          "author_name": "Araik Tamazian",
          "author_url": "",
          "post_date": "2023-12-08T20:48:37.260000",
          "content": "<p>The notebook successfully runs on the public test set, but crashes on the private test set. Therefore, I'm unable to provide any details (that's the problem).</p>",
          "votes": 0,
          "replies": []
        },
        {
          "id": 2555148,
          "author_name": "Araik Tamazian",
          "author_url": "",
          "post_date": "2023-12-09T17:57:53.043000",
          "content": "<p>I managed to solve this issue by reducing slicing size from 2048 to 1024.</p>",
          "votes": 1,
          "replies": [
            {
              "id": 2557236,
              "author_name": "Batool Alghamdi",
              "author_url": "",
              "post_date": "2023-12-11T09:58:08.840000",
              "content": "<p>Do you think it's helpful? does it change the prediction after reducing the slice size?</p>",
              "votes": 0,
              "replies": []
            },
            {
              "id": 2558847,
              "author_name": "Araik Tamazian",
              "author_url": "",
              "post_date": "2023-12-12T11:47:19.717000",
              "content": "<p>In fact it does - my model scored terrible since I trained it with slice size of 2048</p>",
              "votes": 0,
              "replies": []
            },
            {
              "id": 2558862,
              "author_name": "Jirka",
              "author_url": "",
              "post_date": "2023-12-12T11:56:02.987000",
              "content": "<p>So you still kept the scale factor 0.25 also for your 1024px tiles?</p>",
              "votes": 0,
              "replies": []
            },
            {
              "id": 2558949,
              "author_name": "Araik Tamazian",
              "author_url": "",
              "post_date": "2023-12-12T13:26:44.370000",
              "content": "<p>No, TF  Swin has weights only for image sizes of 224 and 384. I've modified your code a little, replacing <code>scale</code> parameter with direct definition of final image size (in my case it's 384). Scale parameter of 0.25 corresponds to image size of 512 (for slice size of 2048), and 256 (for slice size of 1024).</p>",
              "votes": 0,
              "replies": []
            }
          ]
        }
      ]
    },
    {
      "id": 2555953,
      "author_name": "",
      "author_url": "",
      "post_date": "2023-12-10T10:31:43.667000",
      "content": "<p>The notebook successfully runs</p>",
      "votes": 0,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "2553985": "I'm trying to use TF Swin tile-based model (using image preprocessing pipeline by @jirkaborovec), but I'm getting `Notebook Threw Exception ` errors at the same time (approx. ~45 min after submitting). I wonder what's the reason for it? Here's my submission notebook:\nhttps://www.kaggle.com/code/atamazian/ubc-ocean-tf-swin-large-inference-debug",
    "2554153": "Could you share the exception as the linked notebook does not show any outputs?",
    "2555953": "The notebook successfully runs"
  }
}