{
  "id": 109476,
  "title": "Broken files, ./stage_1_train_images/ID_6431af929.dcm",
  "url": "/competitions/rsna-intracranial-hemorrhage-detection/discussion/109476",
  "author_name": "kambarakun",
  "post_date": "2019-09-19T12:55:45.609000",
  "votes": 8,
  "comment_count": 2,
  "views": 0,
  "content": "<p><code>pydicom.read_file('../input/rsna-intracranial-hemorrhage-detection/stage_1_train_images/ID_6431af929.dcm').pixel_array\n</code> returns <code>AttributeError: Amount of pixel data 153710 does not match the expected data 524288</code>  </p>\n\n<p>The labels of this id are all 0, so I think to replace this image to <code>np.zeros((512, 512))</code></p>",
  "messages": [
    {
      "id": 629906,
      "postDate": "2019-09-19T12:55:45.610Z",
      "content": "<p><code>pydicom.read_file('../input/rsna-intracranial-hemorrhage-detection/stage_1_train_images/ID_6431af929.dcm').pixel_array\n</code> returns <code>AttributeError: Amount of pixel data 153710 does not match the expected data 524288</code>  </p>\n\n<p>The labels of this id are all 0, so I think to replace this image to <code>np.zeros((512, 512))</code></p>",
      "rawMarkdown": "`pydicom.read_file('../input/rsna-intracranial-hemorrhage-detection/stage_1_train_images/ID_6431af929.dcm').pixel_array\n` returns `AttributeError: Amount of pixel data 153710 does not match the expected data 524288`  \n\nThe labels of this id are all 0, so I think to replace this image to `np.zeros((512, 512))`",
      "votes": 8
    },
    {
      "id": 631832,
      "postDate": "2019-09-22T19:09:57.430Z",
      "content": "<p>Thanks for sharing!</p>\n\n<p>I've had issues with image <code>ID_0144e4030</code>, metadata seems corrupt?</p>\n\n<p>```\nError in file(con, \"rb\"): invalid 'description' argument\nTraceback:</p>\n\n<ol>\n<li>oro.dicom::readDICOM(\"../input/rsna-intracranial-hemorrhage-detection/stage_1_train_images/ID_0144e4030\")</li>\n<li>readDICOMFile(filenames[i], ...)</li>\n<li>readBin(fname, \"raw\", n = as.integer(fsize), endian = endian)</li>\n<li>file(con, \"rb\")\n```</li>\n</ol>",
      "rawMarkdown": "Thanks for sharing!\n\nI've had issues with image `ID_0144e4030`, metadata seems corrupt?\n\n```\nError in file(con, \"rb\"): invalid 'description' argument\nTraceback:\n\n1. oro.dicom::readDICOM(\"../input/rsna-intracranial-hemorrhage-detection/stage_1_train_images/ID_0144e4030\")\n2. readDICOMFile(filenames[i], ...)\n3. readBin(fname, \"raw\", n = as.integer(fsize), endian = endian)\n4. file(con, \"rb\")\n```"
    },
    {
      "id": 630838,
      "postDate": "2019-09-20T20:31:26.197Z",
      "content": "<p>I have the same problem :/ Hopefully it is train set and we can skip that image, there is another problem with data... </p>\n\n<p>When I downloaded data 'Download All' i have many corrupted files in train set ;/ I need to do this once again and I hope that will help </p>",
      "rawMarkdown": "I have the same problem :/ Hopefully it is train set and we can skip that image, there is another problem with data... \n\nWhen I downloaded data 'Download All' i have many corrupted files in train set ;/ I need to do this once again and I hope that will help "
    }
  ],
  "comments": [
    {
      "id": 631832,
      "author_name": "LaurensGeffert",
      "author_url": "",
      "post_date": "2019-09-22T19:09:57.430000",
      "content": "<p>Thanks for sharing!</p>\n\n<p>I've had issues with image <code>ID_0144e4030</code>, metadata seems corrupt?</p>\n\n<p>```\nError in file(con, \"rb\"): invalid 'description' argument\nTraceback:</p>\n\n<ol>\n<li>oro.dicom::readDICOM(\"../input/rsna-intracranial-hemorrhage-detection/stage_1_train_images/ID_0144e4030\")</li>\n<li>readDICOMFile(filenames[i], ...)</li>\n<li>readBin(fname, \"raw\", n = as.integer(fsize), endian = endian)</li>\n<li>file(con, \"rb\")\n```</li>\n</ol>",
      "votes": 0,
      "replies": []
    },
    {
      "id": 630838,
      "author_name": "Meyk",
      "author_url": "",
      "post_date": "2019-09-20T20:31:26.197000",
      "content": "<p>I have the same problem :/ Hopefully it is train set and we can skip that image, there is another problem with data... </p>\n\n<p>When I downloaded data 'Download All' i have many corrupted files in train set ;/ I need to do this once again and I hope that will help </p>",
      "votes": 0,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "629906": "`pydicom.read_file('../input/rsna-intracranial-hemorrhage-detection/stage_1_train_images/ID_6431af929.dcm').pixel_array\n` returns `AttributeError: Amount of pixel data 153710 does not match the expected data 524288`  \n\nThe labels of this id are all 0, so I think to replace this image to `np.zeros((512, 512))`",
    "631832": "Thanks for sharing!\n\nI've had issues with image `ID_0144e4030`, metadata seems corrupt?\n\n```\nError in file(con, \"rb\"): invalid 'description' argument\nTraceback:\n\n1. oro.dicom::readDICOM(\"../input/rsna-intracranial-hemorrhage-detection/stage_1_train_images/ID_0144e4030\")\n2. readDICOMFile(filenames[i], ...)\n3. readBin(fname, \"raw\", n = as.integer(fsize), endian = endian)\n4. file(con, \"rb\")\n```",
    "630838": "I have the same problem :/ Hopefully it is train set and we can skip that image, there is another problem with data... \n\nWhen I downloaded data 'Download All' i have many corrupted files in train set ;/ I need to do this once again and I hope that will help "
  }
}