{
  "id": 344339,
  "title": "DICOM Files Memory Leak",
  "url": "/competitions/rsna-2022-cervical-spine-fracture-detection/discussion/344339",
  "author_name": "Sáng Huỳnh",
  "post_date": "2022-08-14T22:21:10.703000",
  "votes": 2,
  "comment_count": 1,
  "views": 0,
  "content": "<p>I just iterate over the DICOM files to read them by pydicom.dcmread(), but the memory keeps increasing. I don't know why. Can someone help me with&nbsp;this?<br>\n<img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F2491983%2F2da90023a09b9621f4f835fe93941f43%2FScreenshot%202022-08-15%20050620.png?generation=1660515774466371&amp;alt=media\" alt=\"\"></p>",
  "messages": [
    {
      "id": 1900967,
      "postDate": "2022-08-16T11:41:16.203Z",
      "content": "<p>Could you please post your code so we can take a look?<br>\nAre you loading all the DICOM files into memory at once? If so, that could be your issue. You may want to try loading them one at a time or in batches.<br>\nIt is really hard to tell without the code.. </p>\n<p>The Devastator.</p>",
      "rawMarkdown": "Could you please post your code so we can take a look?\nAre you loading all the DICOM files into memory at once? If so, that could be your issue. You may want to try loading them one at a time or in batches.\nIt is really hard to tell without the code.. \n\nThe Devastator.\n",
      "votes": 1
    },
    {
      "id": 1898862,
      "postDate": "2022-08-14T22:21:10.703Z",
      "content": "<p>I just iterate over the DICOM files to read them by pydicom.dcmread(), but the memory keeps increasing. I don't know why. Can someone help me with&nbsp;this?<br>\n<img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F2491983%2F2da90023a09b9621f4f835fe93941f43%2FScreenshot%202022-08-15%20050620.png?generation=1660515774466371&amp;alt=media\" alt=\"\"></p>",
      "rawMarkdown": "I just iterate over the DICOM files to read them by pydicom.dcmread(), but the memory keeps increasing. I don't know why. Can someone help me with this?\n![](https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F2491983%2F2da90023a09b9621f4f835fe93941f43%2FScreenshot%202022-08-15%20050620.png?generation=1660515774466371&alt=media)",
      "votes": 2
    }
  ],
  "comments": [
    {
      "id": 1900967,
      "author_name": "The Devastator",
      "author_url": "",
      "post_date": "2022-08-16T11:41:16.203000",
      "content": "<p>Could you please post your code so we can take a look?<br>\nAre you loading all the DICOM files into memory at once? If so, that could be your issue. You may want to try loading them one at a time or in batches.<br>\nIt is really hard to tell without the code.. </p>\n<p>The Devastator.</p>",
      "votes": 1,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "1900967": "Could you please post your code so we can take a look?\nAre you loading all the DICOM files into memory at once? If so, that could be your issue. You may want to try loading them one at a time or in batches.\nIt is really hard to tell without the code.. \n\nThe Devastator.\n",
    "1898862": "I just iterate over the DICOM files to read them by pydicom.dcmread(), but the memory keeps increasing. I don't know why. Can someone help me with this?\n![](https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F2491983%2F2da90023a09b9621f4f835fe93941f43%2FScreenshot%202022-08-15%20050620.png?generation=1660515774466371&alt=media)"
  }
}