{
  "id": 100417,
  "title": "FileNotFoundError: [Errno 2] No such file or directory: '../input/resnet101-5d3b4d8f.pth'",
  "url": "/competitions/aptos2019-blindness-detection/discussion/100417",
  "author_name": "",
  "post_date": "2019-07-18T12:15:04.586480Z",
  "votes": null,
  "comment_count": 3,
  "views": 0,
  "content": "<p>When i am trying to load resnet 101 from pytorch pretrained models, \nmodel = torchvision.models.resnet101(pretrained=False)\nmodel.load_state_dict(torch.load(\"../input/pytorch-pretrained-models/resnet101-5d3b4d8f.pth\"))\nits saying the error as below.\nFileNotFoundError: [Errno 2] No such file or directory: '../input/resnet101-5d3b4d8f.pth'. If i am not loading them properly, could you please help me how to do. Thanks in advance</p>",
  "messages": [
    {
      "id": "579030",
      "postDate": "07/18/2019 12:15:04",
      "content": "<p>When i am trying to load resnet 101 from pytorch pretrained models, \nmodel = torchvision.models.resnet101(pretrained=False)\nmodel.load_state_dict(torch.load(\"../input/pytorch-pretrained-models/resnet101-5d3b4d8f.pth\"))\nits saying the error as below.\nFileNotFoundError: [Errno 2] No such file or directory: '../input/resnet101-5d3b4d8f.pth'. If i am not loading them properly, could you please help me how to do. Thanks in advance</p>",
      "rawMarkdown": "When i am trying to load resnet 101 from pytorch pretrained models, \nmodel = torchvision.models.resnet101(pretrained=False)\nmodel.load_state_dict(torch.load(\"../input/pytorch-pretrained-models/resnet101-5d3b4d8f.pth\"))\nits saying the error as below.\nFileNotFoundError: [Errno 2] No such file or directory: '../input/resnet101-5d3b4d8f.pth'. If i am not loading them properly, could you please help me how to do. Thanks in advance",
      "votes": null
    },
    {
      "id": "579042",
      "postDate": "07/18/2019 12:20:08",
      "content": "<p>you can use <code>print(os.listdir('../input'))</code> to see if your weight file is there, otherwise, you have to add dataset first</p>",
      "rawMarkdown": "you can use `print(os.listdir('../input'))` to see if your weight file is there, otherwise, you have to add dataset first",
      "votes": null
    },
    {
      "id": "579246",
      "postDate": "07/18/2019 16:40:41",
      "content": "<p>Try this. '../input/resnet101/resnet101-5d3b4d8f.pth' </p>",
      "rawMarkdown": "Try this. '../input/resnet101/resnet101-5d3b4d8f.pth'",
      "votes": null
    },
    {
      "id": "579645",
      "postDate": "07/19/2019 03:54:30",
      "content": "<p>still throwing the same error. Any way thank you.</p>",
      "rawMarkdown": "still throwing the same error. Any way thank you.",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 579042,
      "author_name": "runninglion",
      "author_url": "",
      "post_date": "07/18/2019 12:20:08",
      "content": "<p>you can use <code>print(os.listdir('../input'))</code> to see if your weight file is there, otherwise, you have to add dataset first</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 579246,
      "author_name": "manojprabhaakr",
      "author_url": "",
      "post_date": "07/18/2019 16:40:41",
      "content": "<p>Try this. '../input/resnet101/resnet101-5d3b4d8f.pth' </p>",
      "votes": null,
      "replies": [
        {
          "id": 579645,
          "author_name": "purnasaig",
          "author_url": "",
          "post_date": "07/19/2019 03:54:30",
          "content": "<p>still throwing the same error. Any way thank you.</p>",
          "votes": null,
          "replies": []
        }
      ]
    }
  ],
  "raw_markdown_by_id": {
    "579030": "When i am trying to load resnet 101 from pytorch pretrained models, \nmodel = torchvision.models.resnet101(pretrained=False)\nmodel.load_state_dict(torch.load(\"../input/pytorch-pretrained-models/resnet101-5d3b4d8f.pth\"))\nits saying the error as below.\nFileNotFoundError: [Errno 2] No such file or directory: '../input/resnet101-5d3b4d8f.pth'. If i am not loading them properly, could you please help me how to do. Thanks in advance",
    "579042": "you can use `print(os.listdir('../input'))` to see if your weight file is there, otherwise, you have to add dataset first",
    "579246": "Try this. '../input/resnet101/resnet101-5d3b4d8f.pth'",
    "579645": "still throwing the same error. Any way thank you."
  },
  "source": "meta"
}