{
  "id": 415669,
  "title": "Detectron2 installation fails",
  "url": "/competitions/hubmap-hacking-the-human-vasculature/discussion/415669",
  "author_name": "Culture",
  "post_date": "2023-06-07T13:28:02.765000",
  "votes": 1,
  "comment_count": 0,
  "views": 0,
  "content": "<p>I am trying to install detectron2 with</p>\n<p><code>!python -m pip install 'git+https://github.com/facebookresearch/detectron2.git'</code></p>\n<p>but it fails with a </p>\n<pre><code>RuntimeError:\n      The detected CUDA version () mismatches the version that was used to \n      PyTorch (). Please make sure to use the same CUDA versions.\n</code></pre>\n<p>Does anyone know why?</p>\n<p><a href=\"url\" target=\"_blank\">https://www.kaggle.com/code/achandra1/detectron2-version-2</a></p>",
  "messages": [
    {
      "id": 2291325,
      "postDate": "2023-06-07T13:28:02.767Z",
      "content": "<p>I am trying to install detectron2 with</p>\n<p><code>!python -m pip install 'git+https://github.com/facebookresearch/detectron2.git'</code></p>\n<p>but it fails with a </p>\n<pre><code>RuntimeError:\n      The detected CUDA version () mismatches the version that was used to \n      PyTorch (). Please make sure to use the same CUDA versions.\n</code></pre>\n<p>Does anyone know why?</p>\n<p><a href=\"url\" target=\"_blank\">https://www.kaggle.com/code/achandra1/detectron2-version-2</a></p>",
      "rawMarkdown": "I am trying to install detectron2 with\n\n`!python -m pip install 'git+https://github.com/facebookresearch/detectron2.git'`\n\nbut it fails with a \n```python\nRuntimeError:\n      The detected CUDA version (12.1) mismatches the version that was used to compile\n      PyTorch (11.8). Please make sure to use the same CUDA versions.\n```\n\nDoes anyone know why?\n\n[https://www.kaggle.com/code/achandra1/detectron2-version-2](url)",
      "votes": 1
    }
  ],
  "comments": [],
  "raw_markdown_by_id": {
    "2291325": "I am trying to install detectron2 with\n\n`!python -m pip install 'git+https://github.com/facebookresearch/detectron2.git'`\n\nbut it fails with a \n```python\nRuntimeError:\n      The detected CUDA version (12.1) mismatches the version that was used to compile\n      PyTorch (11.8). Please make sure to use the same CUDA versions.\n```\n\nDoes anyone know why?\n\n[https://www.kaggle.com/code/achandra1/detectron2-version-2](url)"
  }
}