{
  "id": 395387,
  "title": "input zip file issue",
  "url": "/competitions/generative-dog-images/discussion/395387",
  "author_name": "Leo_202311",
  "post_date": "2023-03-17T04:57:36.252000",
  "votes": 0,
  "comment_count": 0,
  "views": 0,
  "content": "<p>I had just followed some reference code. <br>\nHowever, due to zipfile that was not unzipped, the sample code was not executed. </p>\n<p>here, I wrote basic solution to load image files normally.</p>\n<p>solution code ======================================</p>\n<p>import shutil<br>\nimport os</p>\n<p>shutil.unpack_archive(\"../input/generative-dog-images/all-dogs.zip\", \"/kaggle/working/\")<br>\nprint(os.listdir(\"/kaggle/working/\"))</p>\n<p>PATH = '/kaggle/working/all-dogs/'<br>\nimages = os.listdir(PATH)</p>",
  "messages": [
    {
      "id": 2185470,
      "postDate": "2023-03-17T04:57:36.253Z",
      "content": "<p>I had just followed some reference code. <br>\nHowever, due to zipfile that was not unzipped, the sample code was not executed. </p>\n<p>here, I wrote basic solution to load image files normally.</p>\n<p>solution code ======================================</p>\n<p>import shutil<br>\nimport os</p>\n<p>shutil.unpack_archive(\"../input/generative-dog-images/all-dogs.zip\", \"/kaggle/working/\")<br>\nprint(os.listdir(\"/kaggle/working/\"))</p>\n<p>PATH = '/kaggle/working/all-dogs/'<br>\nimages = os.listdir(PATH)</p>",
      "rawMarkdown": "I had just followed some reference code. \nHowever, due to zipfile that was not unzipped, the sample code was not executed. \n\nhere, I wrote basic solution to load image files normally.\n\nsolution code ======================================\n\nimport shutil\nimport os\n\nshutil.unpack_archive(\"../input/generative-dog-images/all-dogs.zip\", \"/kaggle/working/\")\nprint(os.listdir(\"/kaggle/working/\"))\n\nPATH = '/kaggle/working/all-dogs/'\nimages = os.listdir(PATH)"
    }
  ],
  "comments": [],
  "raw_markdown_by_id": {
    "2185470": "I had just followed some reference code. \nHowever, due to zipfile that was not unzipped, the sample code was not executed. \n\nhere, I wrote basic solution to load image files normally.\n\nsolution code ======================================\n\nimport shutil\nimport os\n\nshutil.unpack_archive(\"../input/generative-dog-images/all-dogs.zip\", \"/kaggle/working/\")\nprint(os.listdir(\"/kaggle/working/\"))\n\nPATH = '/kaggle/working/all-dogs/'\nimages = os.listdir(PATH)"
  }
}