{
  "id": 161207,
  "title": "TPU get_gcs_path for local files",
  "url": "/competitions/siim-isic-melanoma-classification/discussion/161207",
  "author_name": "",
  "post_date": "2020-06-24T07:02:04.507413800Z",
  "votes": null,
  "comment_count": 1,
  "views": 0,
  "content": "<p>Kaggle,\nPlease help me fix this error.\nhow do I get the local files to work with TPU?\n<strong>UnimplementedError: File system scheme '[local]' not implemented (file: './train12-1035.tfrec')</strong></p>",
  "messages": [
    {
      "id": "899330",
      "postDate": "06/24/2020 07:02:04",
      "content": "<p>Kaggle,\nPlease help me fix this error.\nhow do I get the local files to work with TPU?\n<strong>UnimplementedError: File system scheme '[local]' not implemented (file: './train12-1035.tfrec')</strong></p>",
      "rawMarkdown": "Kaggle,\nPlease help me fix this error.\nhow do I get the local files to work with TPU?\n**UnimplementedError: File system scheme '[local]' not implemented (file: './train12-1035.tfrec')**",
      "votes": null
    },
    {
      "id": "899563",
      "postDate": "06/24/2020 10:00:30",
      "content": "<p>```python\nfrom kaggle_datasets import KaggleDatasets</p>\n\n<p>GCS_DS_PATH = KaggleDatasets().get_gcs_path('siim-isic-melanoma-classification')\nTRAIN_FILES = tf.io.gfile.glob(self.GCS_DS_PATH + '/tfrecords/train*')\nTEST_FILES = tf.io.gfile.glob(self.GCS_DS_PATH + '/tfrecords/test*')\n```\nUse like this</p>",
      "rawMarkdown": "```python\nfrom kaggle_datasets import KaggleDatasets\n\nGCS_DS_PATH = KaggleDatasets().get_gcs_path('siim-isic-melanoma-classification')\nTRAIN_FILES = tf.io.gfile.glob(self.GCS_DS_PATH + '/tfrecords/train*')\nTEST_FILES = tf.io.gfile.glob(self.GCS_DS_PATH + '/tfrecords/test*')\n```\nUse like this",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 899563,
      "author_name": "orionpax00",
      "author_url": "",
      "post_date": "06/24/2020 10:00:30",
      "content": "<p>```python\nfrom kaggle_datasets import KaggleDatasets</p>\n\n<p>GCS_DS_PATH = KaggleDatasets().get_gcs_path('siim-isic-melanoma-classification')\nTRAIN_FILES = tf.io.gfile.glob(self.GCS_DS_PATH + '/tfrecords/train*')\nTEST_FILES = tf.io.gfile.glob(self.GCS_DS_PATH + '/tfrecords/test*')\n```\nUse like this</p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "899330": "Kaggle,\nPlease help me fix this error.\nhow do I get the local files to work with TPU?\n**UnimplementedError: File system scheme '[local]' not implemented (file: './train12-1035.tfrec')**",
    "899563": "```python\nfrom kaggle_datasets import KaggleDatasets\n\nGCS_DS_PATH = KaggleDatasets().get_gcs_path('siim-isic-melanoma-classification')\nTRAIN_FILES = tf.io.gfile.glob(self.GCS_DS_PATH + '/tfrecords/train*')\nTEST_FILES = tf.io.gfile.glob(self.GCS_DS_PATH + '/tfrecords/test*')\n```\nUse like this"
  },
  "source": "meta"
}