{
  "id": 429343,
  "title": "Some train_dicom_tags rows are pointing to missing dicom.",
  "url": "/competitions/rsna-2023-abdominal-trauma-detection/discussion/429343",
  "author_name": "i-aki.y",
  "post_date": "2023-08-05T06:22:44.772000",
  "votes": 3,
  "comment_count": 2,
  "views": 0,
  "content": "<p>I could not find some dicom files in train_images.<br>\nAm I missing something important?</p>\n<p>ex. </p>\n<pre><code> pathlib\n pandas as pd\n\n\ntrain_dicom_tags = pd.read_parquet(, engine=)\nINPUT_DIR = pathlib.Path()\n\nimage_path1 = INPUT_DIR / train_dicom_tags.loc[][]\nimage_path2 = INPUT_DIR / train_dicom_tags.loc[][]\n\n(image_path1, , image_path1.exists())\n(image_path2, , image_path2.exists())\n\n# nputtrain_images/.dcm \n#  =&gt; \n# nputtrain_images/.dcm \n#  =&gt; \n</code></pre>",
  "messages": [
    {
      "id": 2374657,
      "postDate": "2023-08-05T06:22:44.773Z",
      "content": "<p>I could not find some dicom files in train_images.<br>\nAm I missing something important?</p>\n<p>ex. </p>\n<pre><code> pathlib\n pandas as pd\n\n\ntrain_dicom_tags = pd.read_parquet(, engine=)\nINPUT_DIR = pathlib.Path()\n\nimage_path1 = INPUT_DIR / train_dicom_tags.loc[][]\nimage_path2 = INPUT_DIR / train_dicom_tags.loc[][]\n\n(image_path1, , image_path1.exists())\n(image_path2, , image_path2.exists())\n\n# nputtrain_images/.dcm \n#  =&gt; \n# nputtrain_images/.dcm \n#  =&gt; \n</code></pre>",
      "rawMarkdown": "I could not find some dicom files in train_images.\nAm I missing something important?\n\nex. \n```\nimport pathlib\nimport pandas as pd\n\n\ntrain_dicom_tags = pd.read_parquet('/kaggle/input/rsna-2023-abdominal-trauma-detection/train_dicom_tags.parquet', engine='pyarrow')\nINPUT_DIR = pathlib.Path(\"/kaggle/input/rsna-2023-abdominal-trauma-detection/\")\n\nimage_path1 = INPUT_DIR / train_dicom_tags.loc[0][\"path\"]\nimage_path2 = INPUT_DIR / train_dicom_tags.loc[1798][\"path\"]\n\nprint(image_path1, \"\\n =>\", image_path1.exists())\nprint(image_path2, \"\\n =>\", image_path2.exists())\n\n# /kaggle/input/rsna-2023-abdominal-trauma-detection/train_images/49954/41479/532.dcm \n#  => True\n# /kaggle/input/rsna-2023-abdominal-trauma-detection/train_images/51078/53398/161.dcm \n#  => False\n\n```\n\n\n\n\n",
      "votes": 2
    },
    {
      "id": 2375747,
      "postDate": "2023-08-05T21:21:43.270Z",
      "content": "<p>I notice the same. I am thinking it is part of data cleaning process.</p>",
      "rawMarkdown": "I notice the same. I am thinking it is part of data cleaning process.",
      "replies": [
        {
          "id": 2376159,
          "postDate": "2023-08-06T08:05:49.927Z",
          "content": "<p>I found a related issue.</p>\n<p><a href=\"https://www.kaggle.com/competitions/rsna-2023-abdominal-trauma-detection/discussion/428962\" target=\"_blank\">https://www.kaggle.com/competitions/rsna-2023-abdominal-trauma-detection/discussion/428962</a></p>\n<p>I think we can ignore rows pointing to dicom files that don't exist.</p>",
          "rawMarkdown": "I found a related issue.\n\nhttps://www.kaggle.com/competitions/rsna-2023-abdominal-trauma-detection/discussion/428962\n\nI think we can ignore rows pointing to dicom files that don't exist."
        }
      ]
    }
  ],
  "comments": [
    {
      "id": 2375747,
      "author_name": "Franklin Shih0617",
      "author_url": "",
      "post_date": "2023-08-05T21:21:43.270000",
      "content": "<p>I notice the same. I am thinking it is part of data cleaning process.</p>",
      "votes": 0,
      "replies": [
        {
          "id": 2376159,
          "author_name": "i-aki.y",
          "author_url": "",
          "post_date": "2023-08-06T08:05:49.927000",
          "content": "<p>I found a related issue.</p>\n<p><a href=\"https://www.kaggle.com/competitions/rsna-2023-abdominal-trauma-detection/discussion/428962\" target=\"_blank\">https://www.kaggle.com/competitions/rsna-2023-abdominal-trauma-detection/discussion/428962</a></p>\n<p>I think we can ignore rows pointing to dicom files that don't exist.</p>",
          "votes": 0,
          "replies": []
        }
      ]
    }
  ],
  "raw_markdown_by_id": {
    "2374657": "I could not find some dicom files in train_images.\nAm I missing something important?\n\nex. \n```\nimport pathlib\nimport pandas as pd\n\n\ntrain_dicom_tags = pd.read_parquet('/kaggle/input/rsna-2023-abdominal-trauma-detection/train_dicom_tags.parquet', engine='pyarrow')\nINPUT_DIR = pathlib.Path(\"/kaggle/input/rsna-2023-abdominal-trauma-detection/\")\n\nimage_path1 = INPUT_DIR / train_dicom_tags.loc[0][\"path\"]\nimage_path2 = INPUT_DIR / train_dicom_tags.loc[1798][\"path\"]\n\nprint(image_path1, \"\\n =>\", image_path1.exists())\nprint(image_path2, \"\\n =>\", image_path2.exists())\n\n# /kaggle/input/rsna-2023-abdominal-trauma-detection/train_images/49954/41479/532.dcm \n#  => True\n# /kaggle/input/rsna-2023-abdominal-trauma-detection/train_images/51078/53398/161.dcm \n#  => False\n\n```\n\n\n\n\n",
    "2375747": "I notice the same. I am thinking it is part of data cleaning process."
  }
}