{
  "id": 58975,
  "title": "Some images in train_jpg throwing error when they are being fetched..",
  "url": "/competitions/avito-demand-prediction/discussion/58975",
  "author_name": "",
  "post_date": "2018-06-16T07:34:48.046747500Z",
  "votes": null,
  "comment_count": 2,
  "views": 0,
  "content": "<p>Simple function:</p>\n\n<pre><code>def getSize(filename):\n    filename = test_images_path + filename\n    st = os.stat(filename)\n    return st.st_size\n\nfeatures['image_size'] = features['image'].apply(getSize)\n</code></pre>\n\n<p>Error:\ncannot identify image file '/Avito/Data/train_jpg/8513a91e55670c709069b5f85e12a59095b802877715903abef16b7a6f306e58.jpg'</p>\n\n<p>What could be the cause, Apologies if it already been discussed:\nI have tried to search for solution but git returns :\n<a href=\"https://github.com/python-pillow/Pillow/issues/2628#issuecomment-315962612\">https://github.com/python-pillow/Pillow/issues/2628#issuecomment-315962612</a></p>\n\n<p>Any thoughts from others..</p>",
  "messages": [
    {
      "id": "343814",
      "postDate": "06/16/2018 07:34:48",
      "content": "<p>Simple function:</p>\n\n<pre><code>def getSize(filename):\n    filename = test_images_path + filename\n    st = os.stat(filename)\n    return st.st_size\n\nfeatures['image_size'] = features['image'].apply(getSize)\n</code></pre>\n\n<p>Error:\ncannot identify image file '/Avito/Data/train_jpg/8513a91e55670c709069b5f85e12a59095b802877715903abef16b7a6f306e58.jpg'</p>\n\n<p>What could be the cause, Apologies if it already been discussed:\nI have tried to search for solution but git returns :\n<a href=\"https://github.com/python-pillow/Pillow/issues/2628#issuecomment-315962612\">https://github.com/python-pillow/Pillow/issues/2628#issuecomment-315962612</a></p>\n\n<p>Any thoughts from others..</p>",
      "rawMarkdown": "Simple function:\n\n    def getSize(filename):\n        filename = test_images_path + filename\n        st = os.stat(filename)\n        return st.st_size\n    \n    features['image_size'] = features['image'].apply(getSize)\n\nError:\ncannot identify image file '/Avito/Data/train_jpg/8513a91e55670c709069b5f85e12a59095b802877715903abef16b7a6f306e58.jpg'\n\nWhat could be the cause, Apologies if it already been discussed:\nI have tried to search for solution but git returns :\nhttps://github.com/python-pillow/Pillow/issues/2628#issuecomment-315962612\n\nAny thoughts from others..",
      "votes": null
    },
    {
      "id": "343949",
      "postDate": "06/16/2018 15:05:07",
      "content": "<p>I figured out in the kernels that there are 4 images which have this issue. After removing this  it was all good..\n<a href=\"https://www.kaggle.com/liujilong/four-image-has-zero-size\">https://www.kaggle.com/liujilong/four-image-has-zero-size</a></p>",
      "rawMarkdown": "I figured out in the kernels that there are 4 images which have this issue. After removing this  it was all good..\nhttps://www.kaggle.com/liujilong/four-image-has-zero-size",
      "votes": null
    },
    {
      "id": "345784",
      "postDate": "06/20/2018 13:03:37",
      "content": "<p>just try：\nexcept：pass</p>",
      "rawMarkdown": "just try：\nexcept：pass",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 343949,
      "author_name": "viswanathravindran",
      "author_url": "",
      "post_date": "06/16/2018 15:05:07",
      "content": "<p>I figured out in the kernels that there are 4 images which have this issue. After removing this  it was all good..\n<a href=\"https://www.kaggle.com/liujilong/four-image-has-zero-size\">https://www.kaggle.com/liujilong/four-image-has-zero-size</a></p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 345784,
      "author_name": "gaojun",
      "author_url": "",
      "post_date": "06/20/2018 13:03:37",
      "content": "<p>just try：\nexcept：pass</p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "343814": "Simple function:\n\n    def getSize(filename):\n        filename = test_images_path + filename\n        st = os.stat(filename)\n        return st.st_size\n    \n    features['image_size'] = features['image'].apply(getSize)\n\nError:\ncannot identify image file '/Avito/Data/train_jpg/8513a91e55670c709069b5f85e12a59095b802877715903abef16b7a6f306e58.jpg'\n\nWhat could be the cause, Apologies if it already been discussed:\nI have tried to search for solution but git returns :\nhttps://github.com/python-pillow/Pillow/issues/2628#issuecomment-315962612\n\nAny thoughts from others..",
    "343949": "I figured out in the kernels that there are 4 images which have this issue. After removing this  it was all good..\nhttps://www.kaggle.com/liujilong/four-image-has-zero-size",
    "345784": "just try：\nexcept：pass"
  },
  "source": "meta"
}