{
  "id": 402420,
  "title": "I'm not able to find the location of the file",
  "url": "/competitions/vesuvius-challenge-ink-detection/discussion/402420",
  "author_name": "",
  "post_date": "2023-04-18T10:37:33.868970500Z",
  "votes": null,
  "comment_count": 2,
  "views": 0,
  "content": "<p>`Perfix='/kaggle/input/vesuvius-challenge/train/1/'<br>\nBUFFER = 30<br>\nZ_START = 27<br>\nZ_DIM = 10   # Number of slices in the z direction<br>\nDEVICE = torch.device('cuda' if torch.cuda.is_available() else \"cpu\")</p>\n<p>plt.imshow(Image.open(Perfix+\"ir.png\"), cmap=\"gray\")`</p>\n<p>what want wrong <br>\n`---------------------------------------------------------------------------<br>\nFileNotFoundError                         Traceback (most recent call last)<br>\n/tmp/ipykernel_23/2963959872.py in <br>\n      6 #plt.imshow(Image.open(Perfix+\"ir.png\"),cmap='gray')<br>\n      7 <br>\n----&gt; 8 plt.imshow(Image.open(Perfix+\"ir.png\"), cmap=\"gray\")</p>\n<p>/opt/conda/lib/python3.7/site-packages/PIL/Image.py in open(fp, mode, formats)<br>\n   3225 <br>\n   3226     if filename:<br>\n-&gt; 3227         fp = builtins.open(filename, \"rb\")<br>\n   3228         exclusive_fp = True<br>\n   3229 </p>\n<p>FileNotFoundError: [Errno 2] No such file or directory: '/kaggle/input/vesuvius-challenge/train/1/ir.png'`</p>",
  "messages": [
    {
      "id": "2225659",
      "postDate": "04/18/2023 10:37:33",
      "content": "<p>`Perfix='/kaggle/input/vesuvius-challenge/train/1/'<br>\nBUFFER = 30<br>\nZ_START = 27<br>\nZ_DIM = 10   # Number of slices in the z direction<br>\nDEVICE = torch.device('cuda' if torch.cuda.is_available() else \"cpu\")</p>\n<p>plt.imshow(Image.open(Perfix+\"ir.png\"), cmap=\"gray\")`</p>\n<p>what want wrong <br>\n`---------------------------------------------------------------------------<br>\nFileNotFoundError                         Traceback (most recent call last)<br>\n/tmp/ipykernel_23/2963959872.py in <br>\n      6 #plt.imshow(Image.open(Perfix+\"ir.png\"),cmap='gray')<br>\n      7 <br>\n----&gt; 8 plt.imshow(Image.open(Perfix+\"ir.png\"), cmap=\"gray\")</p>\n<p>/opt/conda/lib/python3.7/site-packages/PIL/Image.py in open(fp, mode, formats)<br>\n   3225 <br>\n   3226     if filename:<br>\n-&gt; 3227         fp = builtins.open(filename, \"rb\")<br>\n   3228         exclusive_fp = True<br>\n   3229 </p>\n<p>FileNotFoundError: [Errno 2] No such file or directory: '/kaggle/input/vesuvius-challenge/train/1/ir.png'`</p>",
      "rawMarkdown": "`Perfix='/kaggle/input/vesuvius-challenge/train/1/'\nBUFFER = 30\nZ_START = 27\nZ_DIM = 10   # Number of slices in the z direction\nDEVICE = torch.device('cuda' if torch.cuda.is_available() else \"cpu\")\n\nplt.imshow(Image.open(Perfix+\"ir.png\"), cmap=\"gray\")`\n\nwhat want wrong \n`---------------------------------------------------------------------------\nFileNotFoundError                         Traceback (most recent call last)\n/tmp/ipykernel_23/2963959872.py in <module>\n      6 #plt.imshow(Image.open(Perfix+\"ir.png\"),cmap='gray')\n      7 \n----> 8 plt.imshow(Image.open(Perfix+\"ir.png\"), cmap=\"gray\")\n\n/opt/conda/lib/python3.7/site-packages/PIL/Image.py in open(fp, mode, formats)\n   3225 \n   3226     if filename:\n-> 3227         fp = builtins.open(filename, \"rb\")\n   3228         exclusive_fp = True\n   3229 \n\nFileNotFoundError: [Errno 2] No such file or directory: '/kaggle/input/vesuvius-challenge/train/1/ir.png'`",
      "votes": null
    },
    {
      "id": "2225763",
      "postDate": "04/18/2023 12:19:04",
      "content": "<p>because you have used wrong path, name of the competition is vesuvius-challenge-ink-detection  and you have used vesuvius-challenge, try this path instead /kaggle/input/vesuvius-challenge-ink-detection/train/1/ir.png</p>",
      "rawMarkdown": "because you have used wrong path, name of the competition is vesuvius-challenge-ink-detection  and you have used vesuvius-challenge, try this path instead /kaggle/input/vesuvius-challenge-ink-detection/train/1/ir.png",
      "votes": null
    },
    {
      "id": "2226813",
      "postDate": "04/19/2023 08:45:42",
      "content": "<p>Thanks Maksimov</p>",
      "rawMarkdown": "Thanks Maksimov",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 2225763,
      "author_name": "maksimovka",
      "author_url": "",
      "post_date": "04/18/2023 12:19:04",
      "content": "<p>because you have used wrong path, name of the competition is vesuvius-challenge-ink-detection  and you have used vesuvius-challenge, try this path instead /kaggle/input/vesuvius-challenge-ink-detection/train/1/ir.png</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 2226813,
      "author_name": "sureshsuri",
      "author_url": "",
      "post_date": "04/19/2023 08:45:42",
      "content": "<p>Thanks Maksimov</p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "2225659": "`Perfix='/kaggle/input/vesuvius-challenge/train/1/'\nBUFFER = 30\nZ_START = 27\nZ_DIM = 10   # Number of slices in the z direction\nDEVICE = torch.device('cuda' if torch.cuda.is_available() else \"cpu\")\n\nplt.imshow(Image.open(Perfix+\"ir.png\"), cmap=\"gray\")`\n\nwhat want wrong \n`---------------------------------------------------------------------------\nFileNotFoundError                         Traceback (most recent call last)\n/tmp/ipykernel_23/2963959872.py in <module>\n      6 #plt.imshow(Image.open(Perfix+\"ir.png\"),cmap='gray')\n      7 \n----> 8 plt.imshow(Image.open(Perfix+\"ir.png\"), cmap=\"gray\")\n\n/opt/conda/lib/python3.7/site-packages/PIL/Image.py in open(fp, mode, formats)\n   3225 \n   3226     if filename:\n-> 3227         fp = builtins.open(filename, \"rb\")\n   3228         exclusive_fp = True\n   3229 \n\nFileNotFoundError: [Errno 2] No such file or directory: '/kaggle/input/vesuvius-challenge/train/1/ir.png'`",
    "2225763": "because you have used wrong path, name of the competition is vesuvius-challenge-ink-detection  and you have used vesuvius-challenge, try this path instead /kaggle/input/vesuvius-challenge-ink-detection/train/1/ir.png",
    "2226813": "Thanks Maksimov"
  },
  "source": "meta"
}