{
  "id": 165081,
  "title": "[SOLVED] How to use Colab TPUs for training?",
  "url": "/competitions/alaska2-image-steganalysis/discussion/165081",
  "author_name": "Urvish",
  "post_date": "2020-07-08T13:47:37.617000",
  "votes": 3,
  "comment_count": 8,
  "views": 0,
  "content": "<p>Hi,</p>\n\n<p>I have almost exhausted my TPU quota for this week and there is still lolot of time in reset. So, I was trying to use colab for training my models using TPU instance. It is not colab Pro nor do I have GCP account. I am using the free version at the moment. But, while trying to create TF dataset object I got an error. \n<code>UnimplementedError: File system scheme '[local]' not implemented (file: '/content/01-5000.tfrec')</code>\nIt is clear to me that we need a GCP bucket in order to feed the data. On Kaggle we can do so <code>using KaggleDataset</code> module. But on Colab we do not have such a module to use. I tried lot of googling and other things but none of them worked for me. </p>\n\n<p>Any help would be appreciated. Thanks</p>",
  "messages": [
    {
      "id": 920312,
      "postDate": "2020-07-08T13:47:37.617Z",
      "content": "<p>Hi,</p>\n\n<p>I have almost exhausted my TPU quota for this week and there is still lolot of time in reset. So, I was trying to use colab for training my models using TPU instance. It is not colab Pro nor do I have GCP account. I am using the free version at the moment. But, while trying to create TF dataset object I got an error. \n<code>UnimplementedError: File system scheme '[local]' not implemented (file: '/content/01-5000.tfrec')</code>\nIt is clear to me that we need a GCP bucket in order to feed the data. On Kaggle we can do so <code>using KaggleDataset</code> module. But on Colab we do not have such a module to use. I tried lot of googling and other things but none of them worked for me. </p>\n\n<p>Any help would be appreciated. Thanks</p>",
      "rawMarkdown": "Hi,\n\nI have almost exhausted my TPU quota for this week and there is still lolot of time in reset. So, I was trying to use colab for training my models using TPU instance. It is not colab Pro nor do I have GCP account. I am using the free version at the moment. But, while trying to create TF dataset object I got an error. \n`UnimplementedError: File system scheme '[local]' not implemented (file: '/content/01-5000.tfrec')`\nIt is clear to me that we need a GCP bucket in order to feed the data. On Kaggle we can do so `using KaggleDataset` module. But on Colab we do not have such a module to use. I tried lot of googling and other things but none of them worked for me. \n\nAny help would be appreciated. Thanks",
      "votes": 3
    },
    {
      "id": 921070,
      "postDate": "2020-07-09T04:08:56.950Z",
      "content": "<p>There is a way to do so. Here is the discussion link where you can find more details. <a href=\"https://www.kaggle.com/c/alaska2-image-steganalysis/discussion/165130#920639\">https://www.kaggle.com/c/alaska2-image-steganalysis/discussion/165130#920639</a></p>\n\n<p>The idea is to give Kaggle Dataset GCS path in your colab notebook data and it will work. But, the links will expire after some time so be cautious about it. </p>",
      "rawMarkdown": "There is a way to do so. Here is the discussion link where you can find more details. [https://www.kaggle.com/c/alaska2-image-steganalysis/discussion/165130#920639](https://www.kaggle.com/c/alaska2-image-steganalysis/discussion/165130#920639)\n\nThe idea is to give Kaggle Dataset GCS path in your colab notebook data and it will work. But, the links will expire after some time so be cautious about it. ",
      "votes": 1
    },
    {
      "id": 924707,
      "postDate": "2020-07-11T15:32:32.360Z",
      "content": "<p>but what is to stop someone uses multiple accounts to train on the competition, but only use one account to make submissions?</p>\n\n<p>Also, We know from previous experience that people used multiple accounts to create submissions, and then later joined multiple accounts into one team, and in the end they stayed on the LB</p>\n\n<p>Just to make clear, not encouraging such behaviour, but that is what people are doing - just saying</p>",
      "rawMarkdown": "but what is to stop someone uses multiple accounts to train on the competition, but only use one account to make submissions?\n\nAlso, We know from previous experience that people used multiple accounts to create submissions, and then later joined multiple accounts into one team, and in the end they stayed on the LB\n\nJust to make clear, not encouraging such behaviour, but that is what people are doing - just saying",
      "replies": [
        {
          "id": 924749,
          "postDate": "2020-07-11T15:59:37.800Z",
          "content": "<p>That is true at some extent. But, we can't tackle all different scenarios. We can take part in competition and follow the rules. And can encourage others to do the same. That's best what a good competitor can do. Play and take part with good spirit. </p>",
          "rawMarkdown": "That is true at some extent. But, we can't tackle all different scenarios. We can take part in competition and follow the rules. And can encourage others to do the same. That's best what a good competitor can do. Play and take part with good spirit. "
        },
        {
          "id": 924764,
          "postDate": "2020-07-11T16:11:05.793Z",
          "content": "<p>anyone is entitled to use the platform in possible ways as long as they don't get DQed </p>\n\n<p>also pretty sure I am not a good competitor anymore :) </p>",
          "rawMarkdown": "anyone is entitled to use the platform in possible ways as long as they don't get DQed \n\nalso pretty sure I am not a good competitor anymore :) "
        },
        {
          "id": 924804,
          "postDate": "2020-07-11T16:27:07.660Z",
          "content": "<p>Why are not you good competitor anymore? 😂</p>",
          "rawMarkdown": "Why are not you good competitor anymore? 😂"
        }
      ]
    },
    {
      "id": 922983,
      "postDate": "2020-07-10T13:12:47.247Z",
      "rawMarkdown": "",
      "votes": -3,
      "isDeleted": true,
      "replies": [
        {
          "id": 923087,
          "postDate": "2020-07-10T14:21:29.120Z",
          "content": "<p>You should know that multiple accounts are banned on Kaggle. That is against the rules.</p>",
          "rawMarkdown": "You should know that multiple accounts are banned on Kaggle. That is against the rules."
        },
        {
          "id": 923169,
          "postDate": "2020-07-10T15:27:14.737Z",
          "content": "<p>RIght, it is the first rule even.</p>",
          "rawMarkdown": "RIght, it is the first rule even."
        }
      ]
    }
  ],
  "comments": [
    {
      "id": 921070,
      "author_name": "Urvish",
      "author_url": "",
      "post_date": "2020-07-09T04:08:56.950000",
      "content": "<p>There is a way to do so. Here is the discussion link where you can find more details. <a href=\"https://www.kaggle.com/c/alaska2-image-steganalysis/discussion/165130#920639\">https://www.kaggle.com/c/alaska2-image-steganalysis/discussion/165130#920639</a></p>\n\n<p>The idea is to give Kaggle Dataset GCS path in your colab notebook data and it will work. But, the links will expire after some time so be cautious about it. </p>",
      "votes": 1,
      "replies": []
    },
    {
      "id": 924707,
      "author_name": "Yifan Xie",
      "author_url": "",
      "post_date": "2020-07-11T15:32:32.360000",
      "content": "<p>but what is to stop someone uses multiple accounts to train on the competition, but only use one account to make submissions?</p>\n\n<p>Also, We know from previous experience that people used multiple accounts to create submissions, and then later joined multiple accounts into one team, and in the end they stayed on the LB</p>\n\n<p>Just to make clear, not encouraging such behaviour, but that is what people are doing - just saying</p>",
      "votes": 0,
      "replies": [
        {
          "id": 924749,
          "author_name": "Urvish",
          "author_url": "",
          "post_date": "2020-07-11T15:59:37.800000",
          "content": "<p>That is true at some extent. But, we can't tackle all different scenarios. We can take part in competition and follow the rules. And can encourage others to do the same. That's best what a good competitor can do. Play and take part with good spirit. </p>",
          "votes": 0,
          "replies": []
        },
        {
          "id": 924764,
          "author_name": "Yifan Xie",
          "author_url": "",
          "post_date": "2020-07-11T16:11:05.793000",
          "content": "<p>anyone is entitled to use the platform in possible ways as long as they don't get DQed </p>\n\n<p>also pretty sure I am not a good competitor anymore :) </p>",
          "votes": 0,
          "replies": []
        },
        {
          "id": 924804,
          "author_name": "Urvish",
          "author_url": "",
          "post_date": "2020-07-11T16:27:07.660000",
          "content": "<p>Why are not you good competitor anymore? 😂</p>",
          "votes": 0,
          "replies": []
        }
      ]
    },
    {
      "id": 922983,
      "author_name": "",
      "author_url": "",
      "post_date": "2020-07-10T13:12:47.247000",
      "content": "",
      "votes": -3,
      "replies": [
        {
          "id": 923087,
          "author_name": "Urvish",
          "author_url": "",
          "post_date": "2020-07-10T14:21:29.120000",
          "content": "<p>You should know that multiple accounts are banned on Kaggle. That is against the rules.</p>",
          "votes": 0,
          "replies": []
        },
        {
          "id": 923169,
          "author_name": "CPMP",
          "author_url": "",
          "post_date": "2020-07-10T15:27:14.737000",
          "content": "<p>RIght, it is the first rule even.</p>",
          "votes": 0,
          "replies": []
        }
      ]
    }
  ],
  "raw_markdown_by_id": {
    "920312": "Hi,\n\nI have almost exhausted my TPU quota for this week and there is still lolot of time in reset. So, I was trying to use colab for training my models using TPU instance. It is not colab Pro nor do I have GCP account. I am using the free version at the moment. But, while trying to create TF dataset object I got an error. \n`UnimplementedError: File system scheme '[local]' not implemented (file: '/content/01-5000.tfrec')`\nIt is clear to me that we need a GCP bucket in order to feed the data. On Kaggle we can do so `using KaggleDataset` module. But on Colab we do not have such a module to use. I tried lot of googling and other things but none of them worked for me. \n\nAny help would be appreciated. Thanks",
    "921070": "There is a way to do so. Here is the discussion link where you can find more details. [https://www.kaggle.com/c/alaska2-image-steganalysis/discussion/165130#920639](https://www.kaggle.com/c/alaska2-image-steganalysis/discussion/165130#920639)\n\nThe idea is to give Kaggle Dataset GCS path in your colab notebook data and it will work. But, the links will expire after some time so be cautious about it. ",
    "924707": "but what is to stop someone uses multiple accounts to train on the competition, but only use one account to make submissions?\n\nAlso, We know from previous experience that people used multiple accounts to create submissions, and then later joined multiple accounts into one team, and in the end they stayed on the LB\n\nJust to make clear, not encouraging such behaviour, but that is what people are doing - just saying",
    "922983": ""
  }
}