{
  "id": 241321,
  "title": "For people who are facing  403 Forbidden error while downloading the resnest50 pretrained model",
  "url": "/competitions/birdclef-2021/discussion/241321",
  "author_name": "Afia Ibnath",
  "post_date": "2021-05-24T05:09:01.410000",
  "votes": 2,
  "comment_count": 7,
  "views": 0,
  "content": "<p>I was facing issue while downloading ResNET 50 on my notebook then I tried following steps and now I can train my model without any error. <br>\nfirstly <br>\n<code>!pip install git+https://github.com/zhanghang1989/ResNeSt</code><br>\nthen load pretrained models, using ResNeSt-50 as an example<br>\n<code>net = torch.hub.load('zhanghang1989/ResNeSt', 'resnest50', pretrained=True)</code></p>",
  "messages": [
    {
      "id": 1320739,
      "postDate": "2021-05-24T09:45:11.730Z",
      "content": "<p>This will not work when you submit because internet connection must be removed:</p>\n<pre><code>!pip install git+https://github.com/zhanghang1989/ResNeSt\n</code></pre>\n<p>You have to install from a kaggle dataset as shows in many public notebooks.</p>",
      "rawMarkdown": "This will not work when you submit because internet connection must be removed:\n\n```\n!pip install git+https://github.com/zhanghang1989/ResNeSt\n\n```\nYou have to install from a kaggle dataset as shows in many public notebooks.",
      "votes": 4,
      "replies": [
        {
          "id": 1320933,
          "postDate": "2021-05-24T12:28:49.243Z",
          "content": "<p><a href=\"https://www.kaggle.com/CPMP\" target=\"_blank\">@CPMP</a> Thank you for the info but I did one submission and it worked</p>",
          "rawMarkdown": "@CPMP Thank you for the info but I did one submission and it worked"
        },
        {
          "id": 1320992,
          "postDate": "2021-05-24T13:17:50.507Z",
          "content": "<p>What worked?  pip install from github?  </p>",
          "rawMarkdown": "What worked?  pip install from github?  "
        },
        {
          "id": 1320998,
          "postDate": "2021-05-24T13:20:27.150Z",
          "content": "<p><a href=\"https://www.kaggle.com/CPMP\" target=\"_blank\">@CPMP</a> submission was successful</p>",
          "rawMarkdown": "@CPMP submission was successful"
        },
        {
          "id": 1321658,
          "postDate": "2021-05-24T20:38:35.023Z",
          "content": "<p>CPMP is right, the internet connection must be turned off, the kernel won't let you submit to evaluation if you have the internet turned on.</p>\n<p>There's a catch with those type of errors that is <strong>your kernel won't stop running</strong> if you get prompted an error, it will just skip that code cell and run the next ones, in your case your code probably creates the submission file despite of the missing library, so it will show the submission is successful, but you might find that its not the way you intended it to be</p>\n<p>There are datasets that you can use to install that library offline, like this one<br>\n<a href=\"https://www.kaggle.com/ttahara/resnest-package\" target=\"_blank\">https://www.kaggle.com/ttahara/resnest-package</a></p>\n<p><code>!pip install -q \"../input/resnest-package/resnest-0.0.6b20200701/resnest\"</code></p>",
          "rawMarkdown": "CPMP is right, the internet connection must be turned off, the kernel won't let you submit to evaluation if you have the internet turned on.\n\nThere's a catch with those type of errors that is **your kernel won't stop running** if you get prompted an error, it will just skip that code cell and run the next ones, in your case your code probably creates the submission file despite of the missing library, so it will show the submission is successful, but you might find that its not the way you intended it to be\n\nThere are datasets that you can use to install that library offline, like this one\nhttps://www.kaggle.com/ttahara/resnest-package\n\n`!pip install -q \"../input/resnest-package/resnest-0.0.6b20200701/resnest\"`\n\n",
          "votes": 3
        },
        {
          "id": 1321801,
          "postDate": "2021-05-25T01:44:25.617Z",
          "content": "<p><a href=\"https://www.kaggle.com/victorasso\" target=\"_blank\">@victorasso</a> Thank you I get it.</p>",
          "rawMarkdown": "@victorasso Thank you I get it.",
          "votes": 1
        }
      ]
    },
    {
      "id": 1320444,
      "postDate": "2021-05-24T05:09:01.410Z",
      "content": "<p>I was facing issue while downloading ResNET 50 on my notebook then I tried following steps and now I can train my model without any error. <br>\nfirstly <br>\n<code>!pip install git+https://github.com/zhanghang1989/ResNeSt</code><br>\nthen load pretrained models, using ResNeSt-50 as an example<br>\n<code>net = torch.hub.load('zhanghang1989/ResNeSt', 'resnest50', pretrained=True)</code></p>",
      "rawMarkdown": "I was facing issue while downloading ResNET 50 on my notebook then I tried following steps and now I can train my model without any error. \nfirstly \n`!pip install git+https://github.com/zhanghang1989/ResNeSt`\nthen load pretrained models, using ResNeSt-50 as an example\n`net = torch.hub.load('zhanghang1989/ResNeSt', 'resnest50', pretrained=True)`",
      "votes": 2
    },
    {
      "id": 1320928,
      "postDate": "2021-05-24T12:26:51.377Z",
      "rawMarkdown": "",
      "isDeleted": true
    }
  ],
  "comments": [
    {
      "id": 1320739,
      "author_name": "CPMP",
      "author_url": "",
      "post_date": "2021-05-24T09:45:11.730000",
      "content": "<p>This will not work when you submit because internet connection must be removed:</p>\n<pre><code>!pip install git+https://github.com/zhanghang1989/ResNeSt\n</code></pre>\n<p>You have to install from a kaggle dataset as shows in many public notebooks.</p>",
      "votes": 4,
      "replies": [
        {
          "id": 1320933,
          "author_name": "Afia Ibnath",
          "author_url": "",
          "post_date": "2021-05-24T12:28:49.243000",
          "content": "<p><a href=\"https://www.kaggle.com/CPMP\" target=\"_blank\">@CPMP</a> Thank you for the info but I did one submission and it worked</p>",
          "votes": 0,
          "replies": []
        },
        {
          "id": 1320992,
          "author_name": "CPMP",
          "author_url": "",
          "post_date": "2021-05-24T13:17:50.507000",
          "content": "<p>What worked?  pip install from github?  </p>",
          "votes": 0,
          "replies": []
        },
        {
          "id": 1320998,
          "author_name": "Afia Ibnath",
          "author_url": "",
          "post_date": "2021-05-24T13:20:27.150000",
          "content": "<p><a href=\"https://www.kaggle.com/CPMP\" target=\"_blank\">@CPMP</a> submission was successful</p>",
          "votes": 0,
          "replies": []
        },
        {
          "id": 1321658,
          "author_name": "victorasso",
          "author_url": "",
          "post_date": "2021-05-24T20:38:35.023000",
          "content": "<p>CPMP is right, the internet connection must be turned off, the kernel won't let you submit to evaluation if you have the internet turned on.</p>\n<p>There's a catch with those type of errors that is <strong>your kernel won't stop running</strong> if you get prompted an error, it will just skip that code cell and run the next ones, in your case your code probably creates the submission file despite of the missing library, so it will show the submission is successful, but you might find that its not the way you intended it to be</p>\n<p>There are datasets that you can use to install that library offline, like this one<br>\n<a href=\"https://www.kaggle.com/ttahara/resnest-package\" target=\"_blank\">https://www.kaggle.com/ttahara/resnest-package</a></p>\n<p><code>!pip install -q \"../input/resnest-package/resnest-0.0.6b20200701/resnest\"</code></p>",
          "votes": 3,
          "replies": []
        },
        {
          "id": 1321801,
          "author_name": "Afia Ibnath",
          "author_url": "",
          "post_date": "2021-05-25T01:44:25.617000",
          "content": "<p><a href=\"https://www.kaggle.com/victorasso\" target=\"_blank\">@victorasso</a> Thank you I get it.</p>",
          "votes": 1,
          "replies": []
        }
      ]
    },
    {
      "id": 1320928,
      "author_name": "",
      "author_url": "",
      "post_date": "2021-05-24T12:26:51.377000",
      "content": "",
      "votes": 0,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "1320739": "This will not work when you submit because internet connection must be removed:\n\n```\n!pip install git+https://github.com/zhanghang1989/ResNeSt\n\n```\nYou have to install from a kaggle dataset as shows in many public notebooks.",
    "1320444": "I was facing issue while downloading ResNET 50 on my notebook then I tried following steps and now I can train my model without any error. \nfirstly \n`!pip install git+https://github.com/zhanghang1989/ResNeSt`\nthen load pretrained models, using ResNeSt-50 as an example\n`net = torch.hub.load('zhanghang1989/ResNeSt', 'resnest50', pretrained=True)`",
    "1320928": ""
  }
}