{
  "id": 130574,
  "title": "Download dataset on Google Colab",
  "url": "/competitions/rsna-pneumonia-detection-challenge/discussion/130574",
  "author_name": "",
  "post_date": "2020-02-15T00:40:35.696473300Z",
  "votes": 5,
  "comment_count": 4,
  "views": 0,
  "content": "<p>Hi. I tried to download this dataset on google colab however, the downloaded dataset is incomplete. It didn't download the full train and test file. I used the code below to download the dataset. Please correct me.  </p>\n\n<h1>Install Kaggle API for download competition data</h1>\n\n<p>!pip3 install -q kaggle</p>\n\n<h1>enter your Kaggle credentionals here</h1>\n\n<p>import os\nos.environ['KAGGLE_USERNAME']=\"\"\nos.environ['KAGGLE_KEY']=\"\"</p>\n\n<h1>Root directory of the project</h1>\n\n<p>ROOT_DIR = os.path.abspath('./lesson3-data')</p>\n\n<h1>Directory to save logs and trained model</h1>\n\n<p>MODEL_DIR = os.path.join(ROOT_DIR, 'logs')</p>\n\n<p>if not os.path.exists(ROOT_DIR):\n    os.makedirs(ROOT_DIR)\nos.chdir(ROOT_DIR)</p>\n\n<p>!kaggle competitions download -c rsna-pneumonia-detection-challenge</p>",
  "messages": [
    {
      "id": "746404",
      "postDate": "02/15/2020 00:40:35",
      "content": "<p>Hi. I tried to download this dataset on google colab however, the downloaded dataset is incomplete. It didn't download the full train and test file. I used the code below to download the dataset. Please correct me.  </p>\n\n<h1>Install Kaggle API for download competition data</h1>\n\n<p>!pip3 install -q kaggle</p>\n\n<h1>enter your Kaggle credentionals here</h1>\n\n<p>import os\nos.environ['KAGGLE_USERNAME']=\"\"\nos.environ['KAGGLE_KEY']=\"\"</p>\n\n<h1>Root directory of the project</h1>\n\n<p>ROOT_DIR = os.path.abspath('./lesson3-data')</p>\n\n<h1>Directory to save logs and trained model</h1>\n\n<p>MODEL_DIR = os.path.join(ROOT_DIR, 'logs')</p>\n\n<p>if not os.path.exists(ROOT_DIR):\n    os.makedirs(ROOT_DIR)\nos.chdir(ROOT_DIR)</p>\n\n<p>!kaggle competitions download -c rsna-pneumonia-detection-challenge</p>",
      "rawMarkdown": "Hi. I tried to download this dataset on google colab however, the downloaded dataset is incomplete. It didn't download the full train and test file. I used the code below to download the dataset. Please correct me.  \n\n\n# Install Kaggle API for download competition data\n!pip3 install -q kaggle\n\n# enter your Kaggle credentionals here\nimport os\nos.environ['KAGGLE_USERNAME']=\"\"\nos.environ['KAGGLE_KEY']=\"\"\n\n# Root directory of the project\nROOT_DIR = os.path.abspath('./lesson3-data')\n\n# Directory to save logs and trained model\nMODEL_DIR = os.path.join(ROOT_DIR, 'logs')\n\nif not os.path.exists(ROOT_DIR):\n    os.makedirs(ROOT_DIR)\nos.chdir(ROOT_DIR)\n\n!kaggle competitions download -c rsna-pneumonia-detection-challenge",
      "votes": null
    },
    {
      "id": "792620",
      "postDate": "03/31/2020 11:40:51",
      "content": "<p>and I can't download it. Do you solve the problem</p>",
      "rawMarkdown": "and I can't download it. Do you solve the problem",
      "votes": null
    },
    {
      "id": "793181",
      "postDate": "03/31/2020 21:28:32",
      "content": "<p>Hey, I ended up uploading the zipped dataset to my google drive then mount my drive on google Colab. Then I unzip my dataset everytime I run the google Colab. I find it more stable that way. </p>",
      "rawMarkdown": "Hey, I ended up uploading the zipped dataset to my google drive then mount my drive on google Colab. Then I unzip my dataset everytime I run the google Colab. I find it more stable that way.",
      "votes": null
    },
    {
      "id": "804608",
      "postDate": "04/11/2020 18:18:07",
      "content": "<p>what problem are you facing while downloading it.</p>",
      "rawMarkdown": "what problem are you facing while downloading it.",
      "votes": null
    },
    {
      "id": "804610",
      "postDate": "04/11/2020 18:20:22",
      "content": "<p>if using kaggle api you are only getting 20 images dowloaded in your content folder , then i would suggest you to kindly upgrade your kaggle version in google colab.\nRun these commands .\n!pip install --upgrade pip\n!pip uninstall kaggle\n!pip install kaggle</p>\n\n<p>After this just check: \n!kaggle --version.  It should be 1.5.6 . If it is so, then try again downloading the dataset ,it will work fine.</p>",
      "rawMarkdown": "if using kaggle api you are only getting 20 images dowloaded in your content folder , then i would suggest you to kindly upgrade your kaggle version in google colab.\nRun these commands .\n!pip install --upgrade pip\n!pip uninstall kaggle\n!pip install kaggle\n\nAfter this just check: \n!kaggle --version.  It should be 1.5.6 . If it is so, then try again downloading the dataset ,it will work fine.",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 792620,
      "author_name": "dinasamir",
      "author_url": "",
      "post_date": "03/31/2020 11:40:51",
      "content": "<p>and I can't download it. Do you solve the problem</p>",
      "votes": null,
      "replies": [
        {
          "id": 793181,
          "author_name": "jennifervoon",
          "author_url": "",
          "post_date": "03/31/2020 21:28:32",
          "content": "<p>Hey, I ended up uploading the zipped dataset to my google drive then mount my drive on google Colab. Then I unzip my dataset everytime I run the google Colab. I find it more stable that way. </p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 804608,
          "author_name": "prashantarorat",
          "author_url": "",
          "post_date": "04/11/2020 18:18:07",
          "content": "<p>what problem are you facing while downloading it.</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 804610,
          "author_name": "prashantarorat",
          "author_url": "",
          "post_date": "04/11/2020 18:20:22",
          "content": "<p>if using kaggle api you are only getting 20 images dowloaded in your content folder , then i would suggest you to kindly upgrade your kaggle version in google colab.\nRun these commands .\n!pip install --upgrade pip\n!pip uninstall kaggle\n!pip install kaggle</p>\n\n<p>After this just check: \n!kaggle --version.  It should be 1.5.6 . If it is so, then try again downloading the dataset ,it will work fine.</p>",
          "votes": null,
          "replies": []
        }
      ]
    }
  ],
  "raw_markdown_by_id": {
    "746404": "Hi. I tried to download this dataset on google colab however, the downloaded dataset is incomplete. It didn't download the full train and test file. I used the code below to download the dataset. Please correct me.  \n\n\n# Install Kaggle API for download competition data\n!pip3 install -q kaggle\n\n# enter your Kaggle credentionals here\nimport os\nos.environ['KAGGLE_USERNAME']=\"\"\nos.environ['KAGGLE_KEY']=\"\"\n\n# Root directory of the project\nROOT_DIR = os.path.abspath('./lesson3-data')\n\n# Directory to save logs and trained model\nMODEL_DIR = os.path.join(ROOT_DIR, 'logs')\n\nif not os.path.exists(ROOT_DIR):\n    os.makedirs(ROOT_DIR)\nos.chdir(ROOT_DIR)\n\n!kaggle competitions download -c rsna-pneumonia-detection-challenge",
    "792620": "and I can't download it. Do you solve the problem",
    "793181": "Hey, I ended up uploading the zipped dataset to my google drive then mount my drive on google Colab. Then I unzip my dataset everytime I run the google Colab. I find it more stable that way.",
    "804608": "what problem are you facing while downloading it.",
    "804610": "if using kaggle api you are only getting 20 images dowloaded in your content folder , then i would suggest you to kindly upgrade your kaggle version in google colab.\nRun these commands .\n!pip install --upgrade pip\n!pip uninstall kaggle\n!pip install kaggle\n\nAfter this just check: \n!kaggle --version.  It should be 1.5.6 . If it is so, then try again downloading the dataset ,it will work fine."
  },
  "source": "meta"
}