{
  "id": 448277,
  "title": "Why I got “threw exception” erorr while doing multi-img-size ensembel？QAQ",
  "url": "/competitions/UBC-OCEAN/discussion/448277",
  "author_name": "Seeing Times",
  "post_date": "2023-10-19T00:16:50.306000",
  "votes": 1,
  "comment_count": 5,
  "views": 0,
  "content": "<p><em>Why I got “threw exception” erorr while doing multi-img-size ensembel？QAQ</em>😭<br>\n<a href=\"url\" target=\"_blank\">https://www.kaggle.com/code/seeingtimes/threw-exception-error/notebook?scriptVersionId=147158439</a><br>\nlog：<br>\nSuccessfully ran in 33.6s<br>\nAccelerator<br>\nGPU P100</p>\n<p>Environment<br>\nLatest Container Image</p>\n<p>Output<br>\n21 B</p>\n<p>Time<br>\n#<br>\nLog Message<br>\n10.7s    1   /opt/conda/lib/python3.10/site-packages/scipy/<strong>init</strong>.py:146: UserWarning: A NumPy version &gt;=1.16.5 and &lt;1.23.0 is required for this version of SciPy (detected version 1.23.5\n10.7s    2     warnings.warn(f\"A NumPy version &gt;={np_minversion} and &lt;{np_maxversion}\"<br>\n13.7s    3   /opt/conda/lib/python3.10/site-packages/sklearn/base.py:318: UserWarning: Trying to unpickle estimator LabelEncoder from version 1.3.0 when using version 1.2.2. This might lead to breaking code or invalid results. Use at your own risk. For more info please refer to:<br>\n13.7s    4   <a href=\"https://scikit-learn.org/stable/model_persistence.html#security-maintainability-limitations\" target=\"_blank\">https://scikit-learn.org/stable/model_persistence.html#security-maintainability-limitations</a><br>\n13.7s    5     warnings.warn(<br>\n17.0s    6   Test_768:   0%|          | 0/1 [00:00&lt;?, ?it/s]<br>\n23.7s    7   Test_1024:   0%|          | 0/1 [00:00&lt;?, ?it/s]\u001b[ATest_768: 100%|██████████| 1/1 [00:06&lt;00:00,  6.53s/it]Test_768: 100%|██████████| 1/1 [00:06&lt;00:00,  6.53s/it]<br>\n27.2s    8   <br>\n27.2s    9   Test_1024: 100%|██████████| 1/1 [00:10&lt;00:00, 10.18s/it]\u001b[ATest_1024: 100%|██████████| 1/1 [00:10&lt;00:00, 10.19s/it]<br>\n31.1s    10  /opt/conda/lib/python3.10/site-packages/traitlets/traitlets.py:2930: FutureWarning: --Exporter.preprocessors=[\"remove_papermill_header.RemovePapermillHeader\"] for containers is deprecated in traitlets 5.0. You can pass <code>--Exporter.preprocessors item</code> … multiple times to add items to a list.<br>\n31.1s    11    warn(<br>\n31.1s    12  [NbConvertApp] WARNING | Config option <code>kernel_spec_manager_class</code> not recognized by <code>NbConvertApp</code>.<br>\n31.1s    13  [NbConvertApp] Converting notebook <strong>notebook</strong>.ipynb to notebook<br>\n31.4s    14  [NbConvertApp] Writing 30362 bytes to <strong>notebook</strong>.ipynb<br>\n32.7s    15  /opt/conda/lib/python3.10/site-packages/traitlets/traitlets.py:2930: FutureWarning: --Exporter.preprocessors=[\"nbconvert.preprocessors.ExtractOutputPreprocessor\"] for containers is deprecated in traitlets 5.0. You can pass <code>--Exporter.preprocessors item</code> … multiple times to add items to a list.<br>\n32.7s    16    warn(<br>\n32.7s    17  [NbConvertApp] WARNING | Config option <code>kernel_spec_manager_class</code> not recognized by <code>NbConvertApp</code>.<br>\n32.8s    18  [NbConvertApp] Converting notebook <strong>notebook</strong>.ipynb to html<br>\n33.5s    19  [NbConvertApp] Writing 336373 bytes to <strong>results</strong>.html</p>",
  "messages": [
    {
      "id": 2487997,
      "postDate": "2023-10-19T00:16:50.307Z",
      "content": "<p><em>Why I got “threw exception” erorr while doing multi-img-size ensembel？QAQ</em>😭<br>\n<a href=\"url\" target=\"_blank\">https://www.kaggle.com/code/seeingtimes/threw-exception-error/notebook?scriptVersionId=147158439</a><br>\nlog：<br>\nSuccessfully ran in 33.6s<br>\nAccelerator<br>\nGPU P100</p>\n<p>Environment<br>\nLatest Container Image</p>\n<p>Output<br>\n21 B</p>\n<p>Time<br>\n#<br>\nLog Message<br>\n10.7s    1   /opt/conda/lib/python3.10/site-packages/scipy/<strong>init</strong>.py:146: UserWarning: A NumPy version &gt;=1.16.5 and &lt;1.23.0 is required for this version of SciPy (detected version 1.23.5\n10.7s    2     warnings.warn(f\"A NumPy version &gt;={np_minversion} and &lt;{np_maxversion}\"<br>\n13.7s    3   /opt/conda/lib/python3.10/site-packages/sklearn/base.py:318: UserWarning: Trying to unpickle estimator LabelEncoder from version 1.3.0 when using version 1.2.2. This might lead to breaking code or invalid results. Use at your own risk. For more info please refer to:<br>\n13.7s    4   <a href=\"https://scikit-learn.org/stable/model_persistence.html#security-maintainability-limitations\" target=\"_blank\">https://scikit-learn.org/stable/model_persistence.html#security-maintainability-limitations</a><br>\n13.7s    5     warnings.warn(<br>\n17.0s    6   Test_768:   0%|          | 0/1 [00:00&lt;?, ?it/s]<br>\n23.7s    7   Test_1024:   0%|          | 0/1 [00:00&lt;?, ?it/s]\u001b[ATest_768: 100%|██████████| 1/1 [00:06&lt;00:00,  6.53s/it]Test_768: 100%|██████████| 1/1 [00:06&lt;00:00,  6.53s/it]<br>\n27.2s    8   <br>\n27.2s    9   Test_1024: 100%|██████████| 1/1 [00:10&lt;00:00, 10.18s/it]\u001b[ATest_1024: 100%|██████████| 1/1 [00:10&lt;00:00, 10.19s/it]<br>\n31.1s    10  /opt/conda/lib/python3.10/site-packages/traitlets/traitlets.py:2930: FutureWarning: --Exporter.preprocessors=[\"remove_papermill_header.RemovePapermillHeader\"] for containers is deprecated in traitlets 5.0. You can pass <code>--Exporter.preprocessors item</code> … multiple times to add items to a list.<br>\n31.1s    11    warn(<br>\n31.1s    12  [NbConvertApp] WARNING | Config option <code>kernel_spec_manager_class</code> not recognized by <code>NbConvertApp</code>.<br>\n31.1s    13  [NbConvertApp] Converting notebook <strong>notebook</strong>.ipynb to notebook<br>\n31.4s    14  [NbConvertApp] Writing 30362 bytes to <strong>notebook</strong>.ipynb<br>\n32.7s    15  /opt/conda/lib/python3.10/site-packages/traitlets/traitlets.py:2930: FutureWarning: --Exporter.preprocessors=[\"nbconvert.preprocessors.ExtractOutputPreprocessor\"] for containers is deprecated in traitlets 5.0. You can pass <code>--Exporter.preprocessors item</code> … multiple times to add items to a list.<br>\n32.7s    16    warn(<br>\n32.7s    17  [NbConvertApp] WARNING | Config option <code>kernel_spec_manager_class</code> not recognized by <code>NbConvertApp</code>.<br>\n32.8s    18  [NbConvertApp] Converting notebook <strong>notebook</strong>.ipynb to html<br>\n33.5s    19  [NbConvertApp] Writing 336373 bytes to <strong>results</strong>.html</p>",
      "rawMarkdown": "*Why I got “threw exception” erorr while doing multi-img-size ensembel？QAQ*😭\n[https://www.kaggle.com/code/seeingtimes/threw-exception-error/notebook?scriptVersionId=147158439](url)\nlog：\nSuccessfully ran in 33.6s\nAccelerator\nGPU P100\n\nEnvironment\nLatest Container Image\n\nOutput\n21 B\n\nTime\n#\nLog Message\n10.7s\t1\t/opt/conda/lib/python3.10/site-packages/scipy/__init__.py:146: UserWarning: A NumPy version >=1.16.5 and <1.23.0 is required for this version of SciPy (detected version 1.23.5\n10.7s\t2\t  warnings.warn(f\"A NumPy version >={np_minversion} and <{np_maxversion}\"\n13.7s\t3\t/opt/conda/lib/python3.10/site-packages/sklearn/base.py:318: UserWarning: Trying to unpickle estimator LabelEncoder from version 1.3.0 when using version 1.2.2. This might lead to breaking code or invalid results. Use at your own risk. For more info please refer to:\n13.7s\t4\thttps://scikit-learn.org/stable/model_persistence.html#security-maintainability-limitations\n13.7s\t5\t  warnings.warn(\n17.0s\t6\tTest_768:   0%|          | 0/1 [00:00<?, ?it/s]\n23.7s\t7\tTest_1024:   0%|          | 0/1 [00:00<?, ?it/s]\u001b[ATest_768: 100%|██████████| 1/1 [00:06<00:00,  6.53s/it]Test_768: 100%|██████████| 1/1 [00:06<00:00,  6.53s/it]\n27.2s\t8\t\n27.2s\t9\tTest_1024: 100%|██████████| 1/1 [00:10<00:00, 10.18s/it]\u001b[ATest_1024: 100%|██████████| 1/1 [00:10<00:00, 10.19s/it]\n31.1s\t10\t/opt/conda/lib/python3.10/site-packages/traitlets/traitlets.py:2930: FutureWarning: --Exporter.preprocessors=[\"remove_papermill_header.RemovePapermillHeader\"] for containers is deprecated in traitlets 5.0. You can pass `--Exporter.preprocessors item` ... multiple times to add items to a list.\n31.1s\t11\t  warn(\n31.1s\t12\t[NbConvertApp] WARNING | Config option `kernel_spec_manager_class` not recognized by `NbConvertApp`.\n31.1s\t13\t[NbConvertApp] Converting notebook __notebook__.ipynb to notebook\n31.4s\t14\t[NbConvertApp] Writing 30362 bytes to __notebook__.ipynb\n32.7s\t15\t/opt/conda/lib/python3.10/site-packages/traitlets/traitlets.py:2930: FutureWarning: --Exporter.preprocessors=[\"nbconvert.preprocessors.ExtractOutputPreprocessor\"] for containers is deprecated in traitlets 5.0. You can pass `--Exporter.preprocessors item` ... multiple times to add items to a list.\n32.7s\t16\t  warn(\n32.7s\t17\t[NbConvertApp] WARNING | Config option `kernel_spec_manager_class` not recognized by `NbConvertApp`.\n32.8s\t18\t[NbConvertApp] Converting notebook __notebook__.ipynb to html\n33.5s\t19\t[NbConvertApp] Writing 336373 bytes to __results__.html",
      "votes": 1
    },
    {
      "id": 2490910,
      "postDate": "2023-10-21T07:26:31.740Z",
      "content": "<p>I tried to crop every image into 128*128 for training.In order to save time I try to dropout some of them in random when I submission it,<br>\nbut after 8 hours I get the same error as well. I think it's because I am so lucky that my model dropout every image,so there nothing in the prediction.But I can't make sure,the only thing I know is that when I add a count to make sure every prediction is based on at lest 25 small images,there is no error at all.</p>",
      "rawMarkdown": "I tried to crop every image into 128*128 for training.In order to save time I try to dropout some of them in random when I submission it,\nbut after 8 hours I get the same error as well. I think it's because I am so lucky that my model dropout every image,so there nothing in the prediction.But I can't make sure,the only thing I know is that when I add a count to make sure every prediction is based on at lest 25 small images,there is no error at all.",
      "replies": [
        {
          "id": 2490912,
          "postDate": "2023-10-21T07:28:49.427Z",
          "content": "<p>It is the first year in college so I ability is limited.</p>",
          "rawMarkdown": "It is the first year in college so I ability is limited.",
          "replies": [
            {
              "id": 2490926,
              "postDate": "2023-10-21T07:48:21.463Z",
              "content": "<p>I tried to predict the train set locally and it worked perfectly， it's probably because their hardware is not strong enough. It is excellent you are in the first year and got 37th LB in this competition at this moment，if you are interest to work together with my team， that would be great！ I have teammate study in Tsinghua university and he is also from<br>\nAnhui！</p>",
              "rawMarkdown": "I tried to predict the train set locally and it worked perfectly， it's probably because their hardware is not strong enough. It is excellent you are in the first year and got 37th LB in this competition at this moment，if you are interest to work together with my team， that would be great！ I have teammate study in Tsinghua university and he is also from\nAnhui！",
              "votes": 1
            },
            {
              "id": 2498843,
              "postDate": "2023-10-25T14:45:23.493Z",
              "content": "<p>Emmmmm……I really want to know how you work it out know because I submitted 5 submissions <br>\nbut nearly all of them returned “threw exception”.And I noticed this <a href=\"url\" target=\"_blank\">https://www.kaggle.com/code/yukkyo/probing-all-test-sample-have-thumbnail</a>,it really confused me.</p>",
              "rawMarkdown": "Emmmmm……I really want to know how you work it out know because I submitted 5 submissions \nbut nearly all of them returned “threw exception”.And I noticed this [https://www.kaggle.com/code/yukkyo/probing-all-test-sample-have-thumbnail](url),it really confused me."
            },
            {
              "id": 2498860,
              "postDate": "2023-10-25T14:56:31.410Z",
              "content": "<p><img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F16761666%2F53a8c0d183437b30003dfe780add995a%2FIMG_0756.jpeg?generation=1698245486096252&amp;alt=media\" alt=\"\">  maybe I just need this…</p>",
              "rawMarkdown": "![](https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F16761666%2F53a8c0d183437b30003dfe780add995a%2FIMG_0756.jpeg?generation=1698245486096252&alt=media)  maybe I just need this…"
            }
          ]
        }
      ]
    }
  ],
  "comments": [
    {
      "id": 2490910,
      "author_name": "LuoZiqian",
      "author_url": "",
      "post_date": "2023-10-21T07:26:31.740000",
      "content": "<p>I tried to crop every image into 128*128 for training.In order to save time I try to dropout some of them in random when I submission it,<br>\nbut after 8 hours I get the same error as well. I think it's because I am so lucky that my model dropout every image,so there nothing in the prediction.But I can't make sure,the only thing I know is that when I add a count to make sure every prediction is based on at lest 25 small images,there is no error at all.</p>",
      "votes": 0,
      "replies": [
        {
          "id": 2490912,
          "author_name": "LuoZiqian",
          "author_url": "",
          "post_date": "2023-10-21T07:28:49.427000",
          "content": "<p>It is the first year in college so I ability is limited.</p>",
          "votes": 0,
          "replies": [
            {
              "id": 2490926,
              "author_name": "Seeing Times",
              "author_url": "",
              "post_date": "2023-10-21T07:48:21.463000",
              "content": "<p>I tried to predict the train set locally and it worked perfectly， it's probably because their hardware is not strong enough. It is excellent you are in the first year and got 37th LB in this competition at this moment，if you are interest to work together with my team， that would be great！ I have teammate study in Tsinghua university and he is also from<br>\nAnhui！</p>",
              "votes": 1,
              "replies": []
            },
            {
              "id": 2498843,
              "author_name": "LuoZiqian",
              "author_url": "",
              "post_date": "2023-10-25T14:45:23.493000",
              "content": "<p>Emmmmm……I really want to know how you work it out know because I submitted 5 submissions <br>\nbut nearly all of them returned “threw exception”.And I noticed this <a href=\"url\" target=\"_blank\">https://www.kaggle.com/code/yukkyo/probing-all-test-sample-have-thumbnail</a>,it really confused me.</p>",
              "votes": 0,
              "replies": []
            },
            {
              "id": 2498860,
              "author_name": "LuoZiqian",
              "author_url": "",
              "post_date": "2023-10-25T14:56:31.410000",
              "content": "<p><img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F16761666%2F53a8c0d183437b30003dfe780add995a%2FIMG_0756.jpeg?generation=1698245486096252&amp;alt=media\" alt=\"\">  maybe I just need this…</p>",
              "votes": 0,
              "replies": []
            }
          ]
        }
      ]
    }
  ],
  "raw_markdown_by_id": {
    "2487997": "*Why I got “threw exception” erorr while doing multi-img-size ensembel？QAQ*😭\n[https://www.kaggle.com/code/seeingtimes/threw-exception-error/notebook?scriptVersionId=147158439](url)\nlog：\nSuccessfully ran in 33.6s\nAccelerator\nGPU P100\n\nEnvironment\nLatest Container Image\n\nOutput\n21 B\n\nTime\n#\nLog Message\n10.7s\t1\t/opt/conda/lib/python3.10/site-packages/scipy/__init__.py:146: UserWarning: A NumPy version >=1.16.5 and <1.23.0 is required for this version of SciPy (detected version 1.23.5\n10.7s\t2\t  warnings.warn(f\"A NumPy version >={np_minversion} and <{np_maxversion}\"\n13.7s\t3\t/opt/conda/lib/python3.10/site-packages/sklearn/base.py:318: UserWarning: Trying to unpickle estimator LabelEncoder from version 1.3.0 when using version 1.2.2. This might lead to breaking code or invalid results. Use at your own risk. For more info please refer to:\n13.7s\t4\thttps://scikit-learn.org/stable/model_persistence.html#security-maintainability-limitations\n13.7s\t5\t  warnings.warn(\n17.0s\t6\tTest_768:   0%|          | 0/1 [00:00<?, ?it/s]\n23.7s\t7\tTest_1024:   0%|          | 0/1 [00:00<?, ?it/s]\u001b[ATest_768: 100%|██████████| 1/1 [00:06<00:00,  6.53s/it]Test_768: 100%|██████████| 1/1 [00:06<00:00,  6.53s/it]\n27.2s\t8\t\n27.2s\t9\tTest_1024: 100%|██████████| 1/1 [00:10<00:00, 10.18s/it]\u001b[ATest_1024: 100%|██████████| 1/1 [00:10<00:00, 10.19s/it]\n31.1s\t10\t/opt/conda/lib/python3.10/site-packages/traitlets/traitlets.py:2930: FutureWarning: --Exporter.preprocessors=[\"remove_papermill_header.RemovePapermillHeader\"] for containers is deprecated in traitlets 5.0. You can pass `--Exporter.preprocessors item` ... multiple times to add items to a list.\n31.1s\t11\t  warn(\n31.1s\t12\t[NbConvertApp] WARNING | Config option `kernel_spec_manager_class` not recognized by `NbConvertApp`.\n31.1s\t13\t[NbConvertApp] Converting notebook __notebook__.ipynb to notebook\n31.4s\t14\t[NbConvertApp] Writing 30362 bytes to __notebook__.ipynb\n32.7s\t15\t/opt/conda/lib/python3.10/site-packages/traitlets/traitlets.py:2930: FutureWarning: --Exporter.preprocessors=[\"nbconvert.preprocessors.ExtractOutputPreprocessor\"] for containers is deprecated in traitlets 5.0. You can pass `--Exporter.preprocessors item` ... multiple times to add items to a list.\n32.7s\t16\t  warn(\n32.7s\t17\t[NbConvertApp] WARNING | Config option `kernel_spec_manager_class` not recognized by `NbConvertApp`.\n32.8s\t18\t[NbConvertApp] Converting notebook __notebook__.ipynb to html\n33.5s\t19\t[NbConvertApp] Writing 336373 bytes to __results__.html",
    "2490910": "I tried to crop every image into 128*128 for training.In order to save time I try to dropout some of them in random when I submission it,\nbut after 8 hours I get the same error as well. I think it's because I am so lucky that my model dropout every image,so there nothing in the prediction.But I can't make sure,the only thing I know is that when I add a count to make sure every prediction is based on at lest 25 small images,there is no error at all."
  }
}